Stores elements of sparse matrix. More...
#include <vnl_sparse_matrix.h>
Classes | |
struct | less |
Public Member Functions | |
vnl_sparse_matrix_pair () | |
Constructs a pair with null values. | |
vnl_sparse_matrix_pair (unsigned int const &a, T const &b) | |
Constructs a pair with position a and value b. | |
vnl_sparse_matrix_pair (const vnl_sparse_matrix_pair< T > &o) | |
vnl_sparse_matrix_pair< T > & | operator= (vnl_sparse_matrix_pair const &o) |
Public Attributes | |
unsigned int | first |
T | second |
Stores elements of sparse matrix.
Only those values which are non-zero are stored. The sparse matrix currently supports only getting/putting elements, and multiply by vector or another sparse matrix.
Each row is stored as a vector of vcl_pair<unsigned int,T>, where the first of the pair indicates the column index, and the second the value. All rows are stored, as vcl_vector< row >;
Definition at line 73 of file vnl_sparse_matrix.h.
vnl_sparse_matrix_pair< T >::vnl_sparse_matrix_pair | ( | ) | [inline] |
Constructs a pair with null values.
Definition at line 80 of file vnl_sparse_matrix.h.
vnl_sparse_matrix_pair< T >::vnl_sparse_matrix_pair | ( | unsigned int const & | a, |
T const & | b | ||
) | [inline] |
Constructs a pair with position a and value b.
Definition at line 83 of file vnl_sparse_matrix.h.
vnl_sparse_matrix_pair< T >::vnl_sparse_matrix_pair | ( | const vnl_sparse_matrix_pair< T > & | o | ) | [inline] |
Definition at line 85 of file vnl_sparse_matrix.h.
vnl_sparse_matrix_pair<T>& vnl_sparse_matrix_pair< T >::operator= | ( | vnl_sparse_matrix_pair< T > const & | o | ) | [inline] |
Definition at line 87 of file vnl_sparse_matrix.h.
unsigned int vnl_sparse_matrix_pair< T >::first |
Definition at line 76 of file vnl_sparse_matrix.h.
T vnl_sparse_matrix_pair< T >::second |
Definition at line 77 of file vnl_sparse_matrix.h.