g2o
|
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 | |
MatrixStructure () | |
~MatrixStructure () | |
void | alloc (int n_, int nz) |
void | free () |
bool | write (const char *filename) const |
int | nzMax () const |
max number of non-zeros blocks More... | |
Public Attributes | |
int | n |
A is m-by-n. n must be >= 0. More... | |
int | m |
A is m-by-n. m must be >= 0. More... | |
int * | Ap |
column pointers for A, of size n+1 More... | |
int * | Aii |
row indices of A, of size nz = Ap [n] 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 37 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.
References free().
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.
References Aii, Ap, maxN, maxNz, and n.
Referenced by g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure().
void g2o::MatrixStructure::free | ( | ) |
Definition at line 78 of file matrix_structure.cpp.
References Aii, Ap, m, maxN, maxNz, and n.
Referenced by ~MatrixStructure().
|
inline |
max number of non-zeros blocks
Definition at line 61 of file matrix_structure.h.
Referenced by g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), and g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition().
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 58 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), free(), and write().
int* g2o::MatrixStructure::Ap |
column pointers for A, of size n+1
Definition at line 57 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), free(), and write().
int g2o::MatrixStructure::m |
A is m-by-n. m must be >= 0.
Definition at line 56 of file matrix_structure.h.
Referenced by g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), free(), and write().
|
protected |
size of the allocated memory
Definition at line 64 of file matrix_structure.h.
|
protected |
size of the allocated memory
Definition at line 65 of file matrix_structure.h.
int g2o::MatrixStructure::n |
A is m-by-n. n must be >= 0.
Definition at line 55 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), free(), and write().