#include <subVector.hh>
Public Member Functions | |
SubVector (Vector< F > &f, const Set< IndexRange > &indices) | |
Constructor. | |
SubVector (const Vector< F > &f, const Set< IndexRange > &indices) | |
virtual Function< F > & | operator= (const Function< F > &fnc) |
Assignment operator. | |
template<class H > | |
Function< F > & | operator= (const Function< H > &fnc) |
SubVector< F > & | operator= (F c) |
Assignement operator. | |
virtual F & | operator() (uint i) |
Index operator. | |
virtual F | operator() (uint i) const |
Index operator. | |
virtual Function< F > & | operator+= (const Function< F > &fnc) |
Addition operator. | |
virtual Function< F > & | operator+= (F c) |
Addition operator. | |
virtual Function< F > & | operator-= (const Function< F > &fnc) |
Subtraction operator. | |
virtual Function< F > & | operator-= (F c) |
Subtraction operator. | |
virtual Function< F > & | operator*= (F sc) |
Scaling 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. | |
uint | dim () const |
Returns the dimension of the function. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
uint | dim_ |
Dimension of the function (or of the space the function is defined) | |
A sub vector, defined by another vector and an index set.
The class SubVector
is not a Vector
itself, as the data may be not together as in a C array (data structure behind Vector
).
For a connected index set you use instead
Vector(uint dim, F* data)
.
Definition at line 28 of file subVector.hh.
|
inlinevirtual |
Definition at line 34 of file subVector.hh.
|
virtual |
Adds a
times fnc
to this function.
Reimplemented from concepts::Function< F >.
|
inlineinherited |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Function< F >.
|
inline |
Elements in the vector.
Definition at line 76 of file subVector.hh.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Scaling operator.
Reimplemented from concepts::Function< F >.
|
virtual |
Addition operator.
Reimplemented from concepts::Function< F >.
|
virtual |
Addition operator.
Reimplemented from concepts::Function< F >.
|
virtual |
Subtraction operator.
Reimplemented from concepts::Function< F >.
|
virtual |
Subtraction operator.
Reimplemented from concepts::Function< F >.
|
virtual |
Assignment operator.
Implements concepts::Function< F >.
Function< F > & concepts::SubVector< F >::operator= | ( | const Function< H > & | fnc | ) |
Definition at line 90 of file subVector.hh.
|
protectedinherited |