The following bit of code illustrates the data layout: fill(double **matrix, SCMatrixLTriBlock &b) { int offset=0; for (int i=b.start; i<b.end; i++) { for (int j=b.start; j<=i; j++,offset++) { matrix[i][j] = b.data[offset]; } } }
Member Function Documentation
double* sc::SCMatrixLTriBlock::dat
(
)
[virtual]
Return a pointer to the block's data and the number of elements in the block.
Some blocks cannot provide this information and a runtime error will be generated if these members are called. These routines are only used internally in the matrix library.