

Public Member Functions | |
| OrderedSparseMatrix (int num_rows, int num_cols) | |
| OrderedSparseMatrix (const OrderedSparseMatrix &mat) | |
| OrderedSparseMatrix (const OrderedSparseMatrix &mat, int num_rows, int num_cols, int first_row=0, int first_col=0) | |
| OrderedSparseMatrix (int num_rows, int num_cols, SparseVector_p *rows) | |
| virtual | ~OrderedSparseMatrix () |
| const OrderedSparseMatrix & | operator= (const OrderedSparseMatrix &mat) |
| void | set_row (int row, const SparseVector &new_row) |
| void | import_rows_ordered (int num_rows, int num_cols, SparseVector_p *rows, int *r_to_a) |
| void | append_new_cols (int num) |
| virtual const int * | a_to_r () const |
| virtual const int * | r_to_a () const |
Definition at line 39 of file OrderedSparseMatrix.h.
| isam::OrderedSparseMatrix::OrderedSparseMatrix | ( | int | num_rows, |
| int | num_cols | ||
| ) |
Constructor.
| num_rows | Initial number of rows. |
| num_cols | Initial number of columns. |
Definition at line 78 of file OrderedSparseMatrix.cpp.
Copy constructor.
| mat | Matrix to copy. |
Definition at line 82 of file OrderedSparseMatrix.cpp.
| isam::OrderedSparseMatrix::OrderedSparseMatrix | ( | const OrderedSparseMatrix & | mat, |
| int | num_rows, | ||
| int | num_cols, | ||
| int | first_row = 0, |
||
| int | first_col = 0 |
||
| ) |
Submatrix copy constructor.
| mat | Matrix to copy. |
| num_rows | Number of rows to copy. |
| num_cols | Number of columns to copy. |
| first_row | Row offset. |
| first_col | Column offset. |
Definition at line 86 of file OrderedSparseMatrix.cpp.
| isam::OrderedSparseMatrix::~OrderedSparseMatrix | ( | ) | [virtual] |
Destructor.
Definition at line 99 of file OrderedSparseMatrix.cpp.
| const int * isam::OrderedSparseMatrix::a_to_r | ( | ) | const [virtual] |
Return variable ordering
Definition at line 158 of file OrderedSparseMatrix.cpp.
| void isam::OrderedSparseMatrix::append_new_cols | ( | int | num | ) | [virtual] |
Expand matrix to include new columns.
| num | Number of columns to add. |
Reimplemented from isam::SparseMatrix.
Definition at line 134 of file OrderedSparseMatrix.cpp.
| void isam::OrderedSparseMatrix::import_rows_ordered | ( | int | num_rows, |
| int | num_cols, | ||
| SparseVector_p * | rows, | ||
| int * | r_to_a | ||
| ) |
Import externally allocated rows, and also set the ordering.
| num_rows | Number of rows of new matrix. |
| num_cols | Number of columns of new matrix. |
| rows | Array of SparseVector of length num_rows. |
| r_to_a | Variable ordering. |
Definition at line 127 of file OrderedSparseMatrix.cpp.
| const OrderedSparseMatrix & isam::OrderedSparseMatrix::operator= | ( | const OrderedSparseMatrix & | mat | ) |
Assignment operator.
| mat | Right-hand-side matrix in assignment |
Definition at line 103 of file OrderedSparseMatrix.cpp.
| const int * isam::OrderedSparseMatrix::r_to_a | ( | ) | const [virtual] |
Return inverse variable ordering
Definition at line 162 of file OrderedSparseMatrix.cpp.
| void isam::OrderedSparseMatrix::set_row | ( | int | row, |
| const SparseVector & | new_row | ||
| ) | [virtual] |
Replace the given row. Also reorders the new vector according to internal ordering.
| row | Number of row to replace. |
| new_row | New row vector. |
Reimplemented from isam::SparseMatrix.
Definition at line 115 of file OrderedSparseMatrix.cpp.