Table of Contents

Class: Matrix la.py

A 3x3 square matrix.

Methods   
__add__
__cofactor
__cofactorSign
__div__
__eq__
__getitem__
__init__
__len__
__minorDeterminant
__mul__
__ne__
__pow__
__repr__
__rmul__
__str__
__sub__
adjoint
column
columns
concatenate
determinant
inverse
isSingular
row
rows
trace
transform
transpose
  __add__ 
__add__ ( self,  other )

Return M + N.

  __cofactor 
__cofactor (
        self,
        i,
        j,
        )

Return the cofactor for the (i, j)-th element.

  __cofactorSign 
__cofactorSign (
        self,
        i,
        j,
        )

Compute (-1)^(i + j) to help in determining cofactors.

  __div__ 
__div__ ( self,  scalar )

Return M/r.

  __eq__ 
__eq__ ( self,  other )

Return M == N.

  __getitem__ 
__getitem__ ( self,  index )

  __init__ 
__init__ (
        self,
        a,
        b,
        c,
        d,
        e,
        f,
        g,
        h,
        i,
        )

  __len__ 
__len__ ( self )

  __minorDeterminant 
__minorDeterminant ( self,  minor )

Find the determinant of a 2x2 matrix represented as [a b c d].

  __mul__ 
__mul__ ( self,  scalar )

Return M r.

  __ne__ 
__ne__ ( self,  other )

Return M != N.

  __pow__ 
__pow__ ( self,  exponent )

Return M^n.

Exceptions   
TypeError, "exponent must be integral"
ValueError, "exponent must be positive"
  __repr__ 
__repr__ ( self )

  __rmul__ 
__rmul__ ( self,  scalar )

Return r M.

  __str__ 
__str__ ( self )

  __sub__ 
__sub__ ( self,  other )

Return M - N.

  adjoint 
adjoint ( self )

Return adj M.

  column 
column ( self,  index )

Get the nth column as a vector.

  columns 
columns ( self )

Return the columns of the matrix as a sequence of vectors.

  concatenate 
concatenate ( self,  other )

Return M1 M2.

  determinant 
determinant ( self )

Return the determinant of the matrix, det M.

  inverse 
inverse ( self )

Return M^-1 where M M^-1 = M^-1 M = I.

  isSingular 
isSingular ( self )

Is the matrix singular?

  row 
row ( self,  index )

Get the nth row as a vector.

  rows 
rows ( self )

Return the rows of the matrix as a sequence of vectors.

  trace 
trace ( self )

Return the trace of the matrix, tr M.

  transform 
transform ( self,  vector )

Return v M.

  transpose 
transpose ( self )

Return the transpose of the matrix, M^T.


Table of Contents

This document was automatically generated on Fri Aug 9 12:07:20 2002 by HappyDoc version 2.0.1