|
Feel++ 0.91.0
|
interface to vector More...
#include <vectorvalue.hpp>
Public Types | |
Typedefs | |
| typedef T | value_type |
| typedef value_type | vector_type |
Public Member Functions | |
Constructors, destructor | |
| VectorValue (value_type acc=value_type(0)) | |
| VectorValue (VectorValue const &m) | |
| ~VectorValue () | |
Operator overloads | |
| value_type & | operator() (size_type) |
Accessors | |
| unsigned int | size () const |
| unsigned int | rowStart () const |
| unsigned int | rowStop () const |
| bool | isInitialized () const |
| void | close () const |
| bool | closed () const |
| vector_type const & | vec () const |
| vector_type & | vec () |
Methods | |
| void | clear () |
| void | zero () |
| void | zero (size_type, size_type) |
| void | add (const unsigned int, const value_type value) |
| void | set (const unsigned int, const value_type value) |
| void | printMatlab (const std::string name="NULL") const |
interface to vector
VectorValue<T> m;
| void Feel::VectorValue< T >::add | ( | const unsigned | int, |
| const value_type | value | ||
| ) | [inline] |
Add value to the value already accumulated
| void Feel::VectorValue< T >::clear | ( | ) | [inline] |
Release all memory and return to a state just like after having called the default constructor.
| void Feel::VectorValue< T >::close | ( | ) | const |
close the gmm vector, that will copy the content of write optimized vector into a read optimized vector
| bool Feel::VectorValue< T >::closed | ( | ) | const [inline] |
see if vector has been closed and fully assembled yet
| bool Feel::VectorValue< T >::isInitialized | ( | ) | const [inline] |
| value_type& Feel::VectorValue< T >::operator() | ( | size_type | ) | [inline] |
| void Feel::VectorValue< T >::printMatlab | ( | const std::string | name = "NULL" | ) | const |
Print the contents of the vector in Matlab's sparse vector forvec. Optionally prints the vector to the file named name. If name is not specified it is dumped to the screen.
| unsigned int Feel::VectorValue< T >::rowStart | ( | ) | const [inline] |
return row_start, the index of the first vector row stored on this processor
| unsigned int Feel::VectorValue< T >::rowStop | ( | ) | const [inline] |
return row_stop, the index of the last vector row (+1) stored on this processor
| void Feel::VectorValue< T >::set | ( | const unsigned | int, |
| const value_type | value | ||
| ) | [inline] |
set to value
| unsigned int Feel::VectorValue< T >::size | ( | ) | const [inline] |
m, the row-dimension of the vector where the marix is
. | vector_type const& Feel::VectorValue< T >::vec | ( | ) | const [inline] |
Returns the read optimized gmm vector.
| vector_type& Feel::VectorValue< T >::vec | ( | ) | [inline] |
Returns the read optimized gmm vector.
| void Feel::VectorValue< T >::zero | ( | ) | [inline] |
Set all entries to 0. This method retains sparsity structure.
1.7.4