ViennaCL - The Vienna Computing Library
1.5.1
|
A class for the sparse vector type. More...
#include <amg_base.hpp>
Public Types | |
typedef ScalarType | value_type |
typedef amg_sparsevector_iterator < InternalType > | iterator |
typedef InternalType::const_iterator | const_iterator |
Public Member Functions | |
amg_sparsevector (unsigned int size=0) | |
The constructor. | |
void | resize (unsigned int size) |
unsigned int | size () const |
unsigned int | internal_size () const |
void | clear () |
void | remove (unsigned int i) |
void | add (unsigned int i, ScalarType s) |
template<typename IteratorType > | |
void | addscalar (IteratorType &iter, unsigned int i, unsigned int, ScalarType s) |
template<typename IteratorType > | |
void | removescalar (IteratorType &iter, unsigned int) |
NonzeroScalarType | operator[] (unsigned int i) |
ScalarType | operator[] (unsigned int i) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | isnonzero (unsigned int i) const |
operator boost::numeric::ublas::vector< ScalarType > (void) |
A class for the sparse vector type.
typedef InternalType::const_iterator const_iterator |
typedef amg_sparsevector_iterator<InternalType> iterator |
typedef ScalarType value_type |
amg_sparsevector | ( | unsigned int | size = 0 | ) | [inline] |
The constructor.
size | Size of the vector |
void add | ( | unsigned int | i, |
ScalarType | s | ||
) | [inline] |
void addscalar | ( | IteratorType & | iter, |
unsigned int | i, | ||
unsigned | int, | ||
ScalarType | s | ||
) | [inline] |
const_iterator begin | ( | ) | const [inline] |
void clear | ( | ) | [inline] |
const_iterator end | ( | ) | const [inline] |
unsigned int internal_size | ( | ) | const [inline] |
bool isnonzero | ( | unsigned int | i | ) | const [inline] |
operator boost::numeric::ublas::vector< ScalarType > | ( | void | ) | [inline] |
NonzeroScalarType operator[] | ( | unsigned int | i | ) | [inline] |
ScalarType operator[] | ( | unsigned int | i | ) | const [inline] |
void remove | ( | unsigned int | i | ) | [inline] |
void removescalar | ( | IteratorType & | iter, |
unsigned | int | ||
) | [inline] |
void resize | ( | unsigned int | size | ) | [inline] |
unsigned int size | ( | ) | const [inline] |