Sparse Vector Template Class.
More...
#include <linalg.h>
List of all members.
Detailed Description
template<class _Tp>
class linalg::sparse_vector< _Tp >
This class is the base class for all sparse vector storage/computation in the COCONUT environment. It is based on the MTL, but wraps the MTL classes to make changing the
matrix library possible (and hopefully not too awkward. The
matrix is general rectangular column-major.
Definition at line 611 of file linalg.h.
Constructor & Destructor Documentation
The Standard Constructor
Definition at line 635 of file linalg.h.
The Standard Copy Constructor
Definition at line 637 of file linalg.h.
Constructor, which builds a vector of size n
.
Definition at line 644 of file linalg.h.
Member Function Documentation
This method returns the output format of the sparse vector.
Definition at line 650 of file linalg.h.
This operator computes the scalar product of this vector and a
.
Definition at line 696 of file linalg.h.
This operator multiplies this vector by a
.
Definition at line 688 of file linalg.h.
This operator adds a
to this vector.
Definition at line 681 of file linalg.h.
The Assignment Operator, which copies the memory structure rather than copying the pointers.
Definition at line 655 of file linalg.h.
This operator returns the i-th
element of the vector
Definition at line 672 of file linalg.h.
This operator returns the i-th
element of the vector
Definition at line 666 of file linalg.h.
This method sets the output format of the sparse vector.
Definition at line 647 of file linalg.h.
Friends And Related Function Documentation
template<class _Tp>
template<typename _Tq >
std::ostream& std::operator<< |
( |
std::ostream & |
s, |
|
|
const sparse_vector< _Tq > & |
A | |
|
) |
| | [friend] |
Member Data Documentation
This variable describes the output format for matrix output. Its possible values are linalg_output_sparse and linalg_output_full.
Definition at line 631 of file linalg.h.
The documentation for this class was generated from the following file: