class documentation

class SquareMatrix(list):

Known subclasses: cma.purecma.DecomposingPositiveMatrix

Constructor: SquareMatrix(dimension)

View In Hierarchy

rudimental square matrix class

Method __init__ initialize with identity matrix
Method addouter Add in place factor times outer product of vector b,
Method multiply_with multiply matrix in place with factor
Property diag diagonal of the matrix as a copy (save to change)
def __init__(self, dimension):

initialize with identity matrix

def addouter(self, b, factor=1):

Add in place factor times outer product of vector b,

without any dimensional consistency checks.

def multiply_with(self, factor):

multiply matrix in place with factor

@property
diag =

diagonal of the matrix as a copy (save to change)