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