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.
|
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... | |
The template to store the sparse matrix. This is the internal structure to be used in solvers. Don't use it directly.
void sparse::matrix_keeper< type >::dbgPrintToFile | ( | const char * | file | ) |
print the matrix info th the file
bool sparse::matrix_keeper< type >::empty_row | ( | int | row | ) |
check if the row is empty
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
type * sparse::matrix_keeper< type >::get_value | ( | int | row, |
int | column | ||
) | const |
get value pointer if exists
void sparse::matrix_keeper< type >::realloc | ( | int | newrows | ) |
allocate additional rows to the matrix, rhs and values
void sparse::matrix_keeper< type >::remove_zeros | ( | type | epsilon = 1e-8 | ) |
remove all values below the threshold by the absolute value
int sparse::matrix_keeper< type >::size | ( | ) |
returns the amount of elements in the matrix
type * sparse::matrix_keeper< type >::value | ( | int | row, |
int | column | ||
) |
get value pointer, create if not exists