The following bit of code illustrates the data layout: fill(double **matrix, SCMatrixRectBlock &b) { int offset=0; for (int i=b.istart; i<b.iend; i++) { for (int j=b.jstart; j<b.jend; j++,offset++) { matrix[i][j] = b.data[offset]; } } }
Member Function Documentation
double* sc::SCMatrixRectBlock::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.