55 return (*v_)(indices_[i]); }
59 return (*v_)(indices_[i]);
60 return (*vc_)(indices_[i]);
78 virtual std::ostream&
info(std::ostream&
os)
const;
94 i != indices_.index_end(); )
95 (*v_)(i++) =
fnc(j++);
uint dim_
Dimension of the function (or of the space the function is defined)
SubVector(Vector< F > &f, const Set< IndexRange > &indices)
Constructor.
virtual Function< F > & operator-=(F c)
Subtraction operator.
virtual Function< F > & add(const Function< F > &fnc, F sc)
Adds a times fnc to this function.
uint n() const
Elements in the vector.
virtual Function< F > & operator+=(const Function< F > &fnc)
Addition operator.
virtual Function< F > & operator*=(F sc)
Scaling operator.
virtual Function< F > & operator+=(F c)
Addition operator.
virtual F & operator()(uint i)
Index operator.
virtual F operator()(uint i) const
Index operator.
SubVector< F > & operator=(F c)
Assignement operator.
virtual Function< F > & operator-=(const Function< F > &fnc)
Subtraction operator.
virtual Function< F > & operator=(const Function< F > &fnc)
Assignment operator.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
#define conceptsAssert(cond, exc)
#define conceptsAssert3(cond, exc, msg)
Set< F > makeSet(uint n, const F &first,...)