representing the structure of a matrix in column compressed structure (only the upper triangular part of the matrix) More...
#include <matrix_structure.h>
Public Member Functions | |
void | alloc (int n_, int nz) |
void | free () |
MatrixStructure () | |
int | nzMax () const |
max number of non-zeros blocks More... | |
bool | write (const char *filename) const |
~MatrixStructure () | |
Public Attributes | |
int * | Aii |
row indices of A, of size nz = Ap [n] More... | |
int * | Ap |
column pointers for A, of size n+1 More... | |
int | m |
A is m-by-n. m must be >= 0. More... | |
int | n |
A is m-by-n. n must be >= 0. More... | |
Protected Attributes | |
int | maxN |
size of the allocated memory More... | |
int | maxNz |
size of the allocated memory More... | |
representing the structure of a matrix in column compressed structure (only the upper triangular part of the matrix)
Definition at line 36 of file matrix_structure.h.
g2o::MatrixStructure::MatrixStructure | ( | ) |
Definition at line 45 of file matrix_structure.cpp.
g2o::MatrixStructure::~MatrixStructure | ( | ) |
Definition at line 50 of file matrix_structure.cpp.
void g2o::MatrixStructure::alloc | ( | int | n_, |
int | nz | ||
) |
allocate space for the Matrix Structure. You may call this on an already allocated struct, it will then reallocate the memory + additional space (double the required space).
Definition at line 55 of file matrix_structure.cpp.
void g2o::MatrixStructure::free | ( | ) |
Definition at line 78 of file matrix_structure.cpp.
|
inline |
max number of non-zeros blocks
Definition at line 60 of file matrix_structure.h.
bool g2o::MatrixStructure::write | ( | const char * | filename | ) | const |
Write the matrix pattern to a file. File is also loadable by octave, e.g., then use spy(matrix)
Definition at line 88 of file matrix_structure.cpp.
int* g2o::MatrixStructure::Aii |
row indices of A, of size nz = Ap [n]
Definition at line 57 of file matrix_structure.h.
int* g2o::MatrixStructure::Ap |
column pointers for A, of size n+1
Definition at line 56 of file matrix_structure.h.
int g2o::MatrixStructure::m |
A is m-by-n. m must be >= 0.
Definition at line 55 of file matrix_structure.h.
|
protected |
size of the allocated memory
Definition at line 63 of file matrix_structure.h.
|
protected |
size of the allocated memory
Definition at line 64 of file matrix_structure.h.
int g2o::MatrixStructure::n |
A is m-by-n. n must be >= 0.
Definition at line 54 of file matrix_structure.h.