matrix_index (
self,
i,
j,
)
Convert a mathematical index (i,j), i,j=0,...,n,
to the corresponding index in self.matrix.
The resulting index depends on the storage scheme.
For a simple dense matrix, self.matrix applies (i,j)
directly.
For a tridiagonal matrix and other formats, some testing
is necessary. Subclasses implement various storage formats
and versions of this function.
|