Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::SubVector< F > Class Template Reference

#include <subVector.hh>

Inheritance diagram for concepts::SubVector< F >:
concepts::Function< F > concepts::OutputOperator

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.
 
virtualoperator() (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)
 

Detailed Description

template<class F>
class concepts::SubVector< F >

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)

.

Author
, Kersten Schmidt, 2005

Definition at line 28 of file subVector.hh.

Constructor & Destructor Documentation

◆ ~SubVector()

template<class F >
virtual concepts::SubVector< F >::~SubVector ( )
inlinevirtual

Definition at line 34 of file subVector.hh.

Member Function Documentation

◆ add()

template<class F >
virtual Function< F > & concepts::SubVector< F >::add ( const Function< F > &  fnc,
a 
)
virtual

Adds a times fnc to this function.

Reimplemented from concepts::Function< F >.

◆ dim()

template<class F >
uint concepts::Function< F >::dim ( ) const
inlineinherited

Returns the dimension of the function.

Definition at line 53 of file basis.hh.

◆ info()

template<class F >
virtual std::ostream & concepts::SubVector< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Function< F >.

◆ n()

template<class F >
uint concepts::SubVector< F >::n ( ) const
inline

Elements in the vector.

Definition at line 76 of file subVector.hh.

◆ operator()() [1/2]

template<class F >
virtual F & concepts::SubVector< F >::operator() ( uint  i)
inlinevirtual

Index operator.

Implements concepts::Function< F >.

Definition at line 52 of file subVector.hh.

◆ operator()() [2/2]

template<class F >
virtual F concepts::SubVector< F >::operator() ( uint  i) const
inlinevirtual

Index operator.

Implements concepts::Function< F >.

Definition at line 56 of file subVector.hh.

◆ operator*=()

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator*= ( a)
virtual

Scaling operator.

Reimplemented from concepts::Function< F >.

◆ operator+=() [1/2]

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator+= ( const Function< F > &  fnc)
virtual

Addition operator.

Reimplemented from concepts::Function< F >.

◆ operator+=() [2/2]

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator+= ( c)
virtual

Addition operator.

Reimplemented from concepts::Function< F >.

◆ operator-=() [1/2]

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator-= ( const Function< F > &  fnc)
virtual

Subtraction operator.

Reimplemented from concepts::Function< F >.

◆ operator-=() [2/2]

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator-= ( c)
virtual

Subtraction operator.

Reimplemented from concepts::Function< F >.

◆ operator=() [1/2]

template<class F >
virtual Function< F > & concepts::SubVector< F >::operator= ( const Function< F > &  fnc)
virtual

Assignment operator.

Implements concepts::Function< F >.

◆ operator=() [2/2]

template<class F >
template<class H >
Function< F > & concepts::SubVector< F >::operator= ( const Function< H > &  fnc)

Definition at line 90 of file subVector.hh.

Member Data Documentation

◆ dim_

template<class F >
uint concepts::Function< F >::dim_
protectedinherited

Dimension of the function (or of the space the function is defined)

Definition at line 57 of file basis.hh.


The documentation for this class was generated from the following file: