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. More... | |
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 |
|
inline |
The constructor.
size | Size of the vector |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |