#include <vnl_sparse_matrix.h>
Inheritance diagram for vnl_sparse_matrix:

Public Types | |
| typedef vnl_sparse_matrix_pair< T > | pair_t |
| typedef vcl_vector< pair_t > | row |
| typedef vcl_vector< row > | vnl_sparse_matrix_elements |
Public Methods | |
| vnl_sparse_matrix () | |
| vnl_sparse_matrix (unsigned int m, unsigned int n) | |
| vnl_sparse_matrix (const vnl_sparse_matrix< T > &rhs) | |
| vnl_sparse_matrix< T > & | operator= (const vnl_sparse_matrix< T > &rhs) |
| void | mult (const vnl_sparse_matrix< T > &rhs, vnl_sparse_matrix< T > &result) const |
| void | mult (const vnl_vector< T > &rhs, vnl_vector< T > &result) const |
| void | mult (unsigned int n, unsigned int m, const T *p, T *q) const |
| void | pre_mult (const vnl_vector< T > &lhs, vnl_vector< T > &result) const |
| void | add (const vnl_sparse_matrix< T > &rhs, vnl_sparse_matrix< T > &result) const |
| void | subtract (const vnl_sparse_matrix< T > &rhs, vnl_sparse_matrix< T > &result) const |
| T & | operator() (unsigned int row, unsigned int column) |
| void | diag_AtA (vnl_vector< T > &result) const |
| void | set_row (unsigned int r, vcl_vector< int > const &cols, vcl_vector< T > const &vals) |
| row & | get_row (unsigned int r) |
| vnl_sparse_matrix< T > & | vcat (vnl_sparse_matrix< T > const &A) |
| unsigned int | rows () const |
| unsigned int | columns () const |
| bool | empty_row (unsigned int r) const |
| double | sum_row (unsigned int r) |
| void | scale_row (unsigned int r, T scale) |
| void | resize (int r, int c) |
| void | reset () |
| bool | next () |
| int | getrow () |
| int | getcolumn () |
| T | value () |
Protected Attributes | |
| vnl_sparse_matrix_elements | elements |
| unsigned int | rs_ |
| unsigned int | cs_ |
| unsigned int | itr_row |
| row::iterator | itr_cur |
| bool | itr_isreset |
Definition at line 78 of file vnl_sparse_matrix.h.
|
|||||
|
Definition at line 80 of file vnl_sparse_matrix.h. |
|
|||||
|
Definition at line 86 of file vnl_sparse_matrix.h. |
|
|||||
|
Definition at line 87 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||||||
|
Construct an empty matrix. |
|
||||||||||||||||
|
Construct an empty m*n matrix. |
|
||||||||||
|
Construct an m*n Matrix and copy rhs into it. |
|
||||||||||||||||
|
Add rhs to this. |
|
|||||||||
|
Get the number of columns in the matrix. Definition at line 162 of file vnl_sparse_matrix.h. |
|
||||||||||
|
Get diag(A_tranpose * A). Useful for forming Jacobi preconditioners for linear solvers. |
|
||||||||||
|
Return whether a given row is empty. Definition at line 166 of file vnl_sparse_matrix.h. |
|
||||||||||
|
Return row as vector of pairs. Added to aid binary I/O Definition at line 150 of file vnl_sparse_matrix.h. |
|
|||||||||
|
Returns the column of the entry pointed to by internal iterator. |
|
|||||||||
|
Returns the row of the entry pointed to by internal iterator. |
|
||||||||||||||||||||||||
|
Multiply this*p, a fortran order matrix. |
|
||||||||||||||||
|
Multiply this*rhs, where rhs is a vector. |
|
||||||||||||||||
|
Multiply this*rhs, another sparse matrix. |
|
|||||||||
|
Moves the internal iterator to next non-zero entry in matrix. Returns true if there is another value, false otherwise. Use in combination with methods reset, getrow, getcolumn, and value. |
|
||||||||||||||||
|
Get a reference to an entry in the matrix. |
|
||||||||||
|
Copy another vnl_sparse_matrix<T> into this. |
|
||||||||||||||||
|
Multiplies lhs*this, where lhs is a vector. |
|
|||||||||
|
Resets the internal iterator. |
|
||||||||||||||||
|
Resizes the array to have r rows and c cols. Currently not implemented. |
|
|||||||||
|
Get the number of rows in the matrix. Definition at line 158 of file vnl_sparse_matrix.h. |
|
||||||||||||||||
|
Useful for normalizing row sums in convolution operators. |
|
||||||||||||||||||||
|
Set a whole row at once.\ Much faster. |
|
||||||||||||||||
|
Subtract rhs from this. |
|
||||||||||
|
This is occasionally useful. |
|
|||||||||
|
Returns the value pointed to by the internal iterator. |
|
||||||||||
|
Laminate matrix A onto the bottom of this one. |
|
|||||
|
Definition at line 206 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||
|
Definition at line 205 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||
|
Definition at line 210 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||
|
Definition at line 211 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||
|
Definition at line 209 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
|
|||||
|
Definition at line 206 of file vnl_sparse_matrix.h. Referenced by vnl_sparse_matrix< double >::empty_row(). |
1.2.15 written by Dimitri van Heesch,
© 1997-2000