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