vector.hh
virtual Function< F > & operator/=(F sc)
Vector(const Vector< H > &fnc, const Set< IndexRange > &indices)
Constructor.
Definition: vector.hh:287
Vector< F > & assemble(const Space< G > &spc, const LinearForm< F, G > &lf)
Assembles the vector w.r.t. linear form lf and space spc.
const Vector< F > & write(const std::string &fname) const
Writes the vector to a file.
Vector< F > & add(const Vector< H > &fnc, F sc, uint offset=0)
Adds a vector of possible different length and type with an offset.
Definition: vector.hh:307
Set with operations, output operator, and method of the particular element types.
Definition: traces.hh:18
index_iterator index_begin(uint i=0) const
Returns an iterator to the i th index.
virtual ~Vector()
Definition: spaceSet.hh:17
virtual Function< F > & operator-=(const Function< F > &fnc)
Subtraction operator.
Vector< F > operator*(F c) const
Vector< F > & apply(F fnc(const F &))
Application operator to each component, e.g.
F operator*(const Vector< F > &fnc) const
Inner product (v = this, w = \fnc)
virtual Function< F > & operator+=(const Function< F > &fnc)
Addition operator.
virtual Function< F > & operator-=(F c)
virtual Function< F > & add(const Function< F > &fnc, F sc)
void storeMatlab(const char *filename, const char *name=0, bool append=false) const
Stores the vector in a Matlab sparse matrix.
Vector(const Vector< H > &fncX, const F &fnc(const H &))
Definition: vector.hh:277
Vector< F > operator/(F c) const
Vector< F > & add(const Vector< H > &fnc)
Adds a vector of possible different length and type.
Definition: vector.hh:209
virtual Function< F > & operator+=(F c)
const index_iterator index_end() const
Returns an iterator behind the last index.
void memorycpy(F *dest, const G *src, size_t n)
Copies n entries from src to dest (faster than std::memcpy)
Definition: vectorsMatrices.hh:31
virtual Vector< F > & operator=(const Function< F > &fnc)
virtual std::ostream & info(std::ostream &os) const
static uint storeMatlabCounter_
Counts number of Matlab outputs (used to uniquely name the vectors)
Definition: vector.hh:248
Vector< F > & operator=(const Function< H > &fnc)
Definition: vector.hh:298
#define conceptsAssert3(cond, exc, msg)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:442
Vector(const Space< G > &spc, const std::string &fname)
File read constructor.
Vector(const Vector< typename Realtype< F >::type > &V_R, const Vector< typename Realtype< F >::type > &V_I)
Constructor.
Vector< F > operator-(const Function< F > &fnc) const
void fillEntries_(const Space< G > &spc, const LinearForm< F, G > &lf)
Vector< F > operator+(const Function< F > &fnc) const