8#ifndef vectorformula_hh
9#define vectorformula_hh
24 template<
typename F,
int dim>
33 for(
int i=0; i < dim; ++i)
54 for (
int i=0; i < dim; ++i) {
55 ret[i] = formulas_[i] ? (*formulas_[i])(p, t) : F(0);
63 for (
int i=0; i < dim; ++i) {
64 ret[i] = formulas_[i] ? (*formulas_[i])(p, t) : F(0);
72 for (
int i=0; i < dim; ++i) {
73 ret[i] = formulas_[i] ? (*formulas_[i])(p, t) : F(0);
86 : formulas_(
other.formulas_)
90 virtual ~VectorFormula() { }
92 const std::vector< EntryFormulaRCP >& getFormulas()
97 EntryFormulaRCP& operator[](
int i)
105 std::vector< EntryFormulaRCP > formulas_;
107 virtual std::ostream&
info(std::ostream&
os)
const {
109 for (
int i=0; i < dim; ++i) {
#define conceptsAssert(cond, exc)
std::string typeOf(const T &t)
Set< F > makeSet(uint n, const F &first,...)