Methods
|
|
__init__
make_matrix
matrix_index
solve
|
|
__init__
|
__init__ (
self,
size=0,
diagonals=3,
matrix=None,
initial_code=None,
index_code=None,
**user_kw,
)
size no of unknowns
diagonals no of non-zero diagonals in matrix
matrix symbolic specification of matrix entries
or all diagonals filled with values
initial_code code to be executed initially
index_code code to be executed for each index value
user_kw user-defined keyword arguments
|
|
make_matrix
|
make_matrix (
self,
matrix,
initial_code,
user_kw,
index_code,
)
Exceptions
|
|
TypeError, 'matrix keys must be tuples, not %s' % type( pair )
ValueError, 'matrix keys are %d-tuples, not 2-tuples' % len( pair )
|
|
|
matrix_index
|
matrix_index (
self,
i,
j,
)
Convert a mathematical index (i,j), i,j=0,...,n,
to the corresponding index in self.matrix.
Subclasses implement various storage formats
and versions of this function.
Exceptions
|
|
TypeError, 'class Matrix is a virtual base class'
|
|
|
solve
|
solve ( self, rhs )
Exceptions
|
|
TypeError, 'class Matrix is a virtual base class'
|
|
|