Public Member Functions | Public Attributes | Protected Attributes
g2o::MatrixStructure Class Reference

representing the structure of a matrix in column compressed structure (only the upper triangular part of the matrix) More...

#include <matrix_structure.h>

List of all members.

Public Member Functions

void alloc (int n_, int nz)
void free ()
 MatrixStructure ()
int nzMax () const
 max number of non-zeros blocks
bool write (const char *filename) const
 ~MatrixStructure ()

Public Attributes

int * Aii
 row indices of A, of size nz = Ap [n]
int * Ap
 column pointers for A, of size n+1
int m
 A is m-by-n. m must be >= 0.
int n
 A is m-by-n. n must be >= 0.

Protected Attributes

int maxN
 size of the allocated memory
int maxNz
 size of the allocated memory

Detailed Description

representing the structure of a matrix in column compressed structure (only the upper triangular part of the matrix)

Definition at line 25 of file matrix_structure.h.


Constructor & Destructor Documentation

Definition at line 35 of file matrix_structure.cpp.

Definition at line 40 of file matrix_structure.cpp.


Member Function Documentation

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 45 of file matrix_structure.cpp.

Definition at line 68 of file matrix_structure.cpp.

int g2o::MatrixStructure::nzMax ( ) const [inline]

max number of non-zeros blocks

Definition at line 49 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 78 of file matrix_structure.cpp.


Member Data Documentation

row indices of A, of size nz = Ap [n]

Definition at line 46 of file matrix_structure.h.

column pointers for A, of size n+1

Definition at line 45 of file matrix_structure.h.

A is m-by-n. m must be >= 0.

Definition at line 44 of file matrix_structure.h.

int g2o::MatrixStructure::maxN [protected]

size of the allocated memory

Definition at line 52 of file matrix_structure.h.

int g2o::MatrixStructure::maxNz [protected]

size of the allocated memory

Definition at line 53 of file matrix_structure.h.

A is m-by-n. n must be >= 0.

Definition at line 43 of file matrix_structure.h.


The documentation for this class was generated from the following files:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:30