10 _selectionIndex(selectionIndex),
11 _dimensionality(dmsnlty)
16 _selectionIndex(right._selectionIndex),
17 _dimensionality(right._dimensionality)
25 if (_selectionIndex!=0)
throw std::runtime_error(
"Genfun::Variable: selection index !=0") ;
30 if (!(_selectionIndex<a.
dimension()))
throw std::runtime_error(
"Genfun::Varaible selection index out of bounds");
31 return a[_selectionIndex];
35 return _selectionIndex;
40 int kroneckerDelta = mindex==_selectionIndex ? 1 : 0;
43 for (
unsigned int i=1;i<_dimensionality;i++) {
54 return _dimensionality;
Variable(unsigned int selectionIndex=0, unsigned int dimensionality=1)
virtual double operator()(double argument) const
Derivative partial(unsigned int) const
unsigned int index() const
#define FUNCTION_OBJECT_IMP(classname)
virtual unsigned int dimensionality() const
unsigned int dimension() const
virtual AbsFunction * clone() const =0