When the user define a matrix, the software return a pointer to an opaque type i.e. a pointer to void as index to reference the matrix. This pointer is actually the pointer to the SD_MATRIX_DATA data structure. This date structure is defined as a union of differnet matrix data representations, and the type of data actually stored depend on the evolution of the algorithn.
#include <Solver.h>
Public Attributes | |
| int | nEq |
| int | nDeletedEq |
| StateType | State |
| union { | |
| SD_CON_MATRIX_DATA Con | |
| SD_TMP_CON_MATRIX_DATA TmpCon | |
| SD_BLOCK_MATRIX_DATA Block | |
| } | Mat |
| SD_BLOCK_MATRIX_DATA SD_MATRIX_DATA::Block |
| SD_CON_MATRIX_DATA SD_MATRIX_DATA::Con |
| union { ... } SD_MATRIX_DATA::Mat |
| int SD_MATRIX_DATA::nDeletedEq |
| int SD_MATRIX_DATA::nEq |
| StateType SD_MATRIX_DATA::State |
| SD_TMP_CON_MATRIX_DATA SD_MATRIX_DATA::TmpCon |