3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sparse::matrix_keeper< type > Class Template Reference

The template to store the sparse matrix. This is the internal structure to be used in solvers. Don't use it directly. More...

#include <BigMatrix.h>

Public Member Functions

type * get_value (int row, int column) const
 get value pointer if exists More...
 
type * value (int row, int column)
 get value pointer, create if not exists More...
 
bool get_next (int row, int *column, type *value, void **context) const
 walk through the row, initially context should point to zero pointer, input is row, output - column, value pointers More...
 
int size ()
 returns the amount of elements in the matrix More...
 
bool empty_row (int row)
 check if the row is empty More...
 
void realloc (int newrows)
 allocate additional rows to the matrix, rhs and values More...
 
void remove_zeros (type epsilon=1e-8)
 remove all values below the threshold by the absolute value More...
 
void dbgPrintToFile (const char *file)
 print the matrix info th the file More...
 

Detailed Description

template<typename type>
class sparse::matrix_keeper< type >

The template to store the sparse matrix. This is the internal structure to be used in solvers. Don't use it directly.

Member Function Documentation

template<typename type >
void sparse::matrix_keeper< type >::dbgPrintToFile ( const char *  file)

print the matrix info th the file

template<typename type >
bool sparse::matrix_keeper< type >::empty_row ( int  row)

check if the row is empty

template<typename type>
bool sparse::matrix_keeper< type >::get_next ( int  row,
int *  column,
type *  value,
void **  context 
) const

walk through the row, initially context should point to zero pointer, input is row, output - column, value pointers

template<typename type >
type * sparse::matrix_keeper< type >::get_value ( int  row,
int  column 
) const

get value pointer if exists

template<typename type >
void sparse::matrix_keeper< type >::realloc ( int  newrows)

allocate additional rows to the matrix, rhs and values

template<typename type>
void sparse::matrix_keeper< type >::remove_zeros ( type  epsilon = 1e-8)

remove all values below the threshold by the absolute value

template<typename type >
int sparse::matrix_keeper< type >::size ( )

returns the amount of elements in the matrix

template<typename type >
type * sparse::matrix_keeper< type >::value ( int  row,
int  column 
)

get value pointer, create if not exists


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