|
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 (std::string_view filename) const |
| int | nzMax () const |
| max number of non-zeros blocks | |
Public Attributes | |
| int | n |
| A is m-by-n. n must be >= 0. | |
| int | m |
| A is m-by-n. m must be >= 0. | |
| int * | Ap |
| column pointers for A, of size n+1 | |
| int * | Aii |
| row indices of A, of size nz = Ap [n] | |
Protected Attributes | |
| int | maxN |
| size of the allocated memory | |
| int | maxNz |
| size of the allocated memory | |
representing the structure of a matrix in column compressed structure (only the upper triangular part of the matrix)
Definition at line 40 of file matrix_structure.h.
| g2o::MatrixStructure::MatrixStructure | ( | ) |
Definition at line 45 of file matrix_structure.cpp.
| g2o::MatrixStructure::~MatrixStructure | ( | ) |
| 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 50 of file matrix_structure.cpp.
References Aii, Ap, maxN, maxNz, and n.
Referenced by g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure().
| void g2o::MatrixStructure::free | ( | ) |
|
inline |
max number of non-zeros blocks
Definition at line 65 of file matrix_structure.h.
Referenced by g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), and g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition().
| bool g2o::MatrixStructure::write | ( | std::string_view | filename | ) | const |
Write the matrix pattern to a file. File is also loadable by octave, e.g., then use spy(matrix)
Definition at line 82 of file matrix_structure.cpp.
| int* g2o::MatrixStructure::Aii |
row indices of A, of size nz = Ap [n]
Definition at line 62 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), free(), and write().
| int* g2o::MatrixStructure::Ap |
column pointers for A, of size n+1
Definition at line 61 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< 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 60 of file matrix_structure.h.
Referenced by g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), free(), and write().
|
protected |
size of the allocated memory
Definition at line 68 of file matrix_structure.h.
|
protected |
size of the allocated memory
Definition at line 69 of file matrix_structure.h.
| int g2o::MatrixStructure::n |
A is m-by-n. n must be >= 0.
Definition at line 59 of file matrix_structure.h.
Referenced by alloc(), g2o::LinearSolverCholmodOnline< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCholmod< MatrixType >::computeSymbolicDecomposition(), g2o::LinearSolverCSparse< MatrixType >::computeSymbolicDecomposition(), free(), and write().