Module purecma :: Class SquareMatrix
[hide private]
[frames] | no frames]

Class SquareMatrix

source code

object --+    
         |    
      list --+
             |
            SquareMatrix
Known Subclasses:

rudimental square matrix class
Instance Methods [hide private]
new empty list
__init__(self, dimension)
initialize with identity matrix
source code
 
multiply_with(self, factor)
multiply matrix in place with factor
source code
 
addouter(self, b, factor=1)
Add in place factor times outer product of vector b,
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]
  diag
diagonal of the matrix as a copy (save to change)

Inherited from object: __class__

Method Details [hide private]

__init__(self, dimension)
(Constructor)

source code 
initialize with identity matrix
Returns: new empty list
Overrides: object.__init__

addouter(self, b, factor=1)

source code 

Add in place factor times outer product of vector b,

without any dimensional consistency checks.


Property Details [hide private]

diag

diagonal of the matrix as a copy (save to change)
Get Method:
unreachable.diag(self) - diagonal of the matrix as a copy (save to change)