Package gavo :: Package utils :: Module mathtricks :: Class Matrix3
[frames] | no frames]

Class Matrix3

source code

object --+
         |
        Matrix3

A quick and easy 3d matrix.

This is just so we don't depend on numpy for trivial stuff. The components are stored in a tuple of rows.

Instance Methods
 
__init__(self, row1, row2, row3)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
vecMul(self, vec)
returns the result of right-multiplying self to vec.
source code
 
matMul(self, mat)
returns the result of multiplying mat to self from the right.
source code
 
getColumns(self)
returns the column vectors of this matrix in a 3-tuple.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  indices = [0, 1, 2]
Properties

Inherited from object: __class__

Method Details

__init__(self, row1, row2, row3)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

vecMul(self, vec)

source code 

returns the result of right-multiplying self to vec.

The sequence vec is interpreted as a column vector.