Table of Contents

Class: DenseMatrix py4cs/SparseMatrix.py
Base Classes   
StructuredSparseMatrix
Methods   
matrix_index
  matrix_index 
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.


Table of Contents

This document was automatically generated on Sun Mar 14 15:31:01 2004 by HappyDoc version 2.1