ProGAL.math
Class Matrix3x3

java.lang.Object
  extended by ProGAL.math.Matrix
      extended by ProGAL.math.Matrix3x3

public class Matrix3x3
extends Matrix


Nested Class Summary
 
Nested classes/interfaces inherited from class ProGAL.math.Matrix
Matrix.EigenvalueDecomposition, Matrix.ImmutableMatrix
 
Constructor Summary
Matrix3x3()
           
Matrix3x3(double[][] coords)
           
 
Method Summary
 Matrix3x3 clone()
          Returns a clone of this matrix.
 double determinant()
          Get the determinant of this matrix.
 Vector getColumn(int c)
           
 Vector[] getEigenvectors()
          Get the eigenvectors of a 3x3 matrix sorted by decreasing eigenvalue.
 Vector getRow(int r)
           
 Matrix3x3 getTranspose()
          Get the transpose of this matrix
 Matrix invertThis()
          Invert this matrix (overwrites this and returns it).
 
Methods inherited from class ProGAL.math.Matrix
add, addThis, create4x4ColumnMatrix, createColumnMatrix, createIdentityMatrix, createRandomMatrix, createRotationMatrix, createRowMatrix, equals, equals, expand, extend, get, getCoords, getEigenvalueDecomposition, getM, getN, getSubmatrix, invert, isSquare, minor, multiply_Strassen, multiply, multiply, multiply, multiply, multiply, multiplyIn, multiplyIn, multiplyThis, multiplyThis, orthonormalizeThis, reduce, reduceThis, set, setColumn, setRow, setSubmatrix, subtract, subtractThis, toConsole, toConsole, toString, toString, transpose
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Matrix3x3

public Matrix3x3()

Matrix3x3

public Matrix3x3(double[][] coords)
Method Detail

getColumn

public Vector getColumn(int c)
Overrides:
getColumn in class Matrix

getRow

public Vector getRow(int r)
Overrides:
getRow in class Matrix

getTranspose

public Matrix3x3 getTranspose()
Description copied from class: Matrix
Get the transpose of this matrix

Overrides:
getTranspose in class Matrix

determinant

public double determinant()
Get the determinant of this matrix.

Overrides:
determinant in class Matrix

invertThis

public Matrix invertThis()
Invert this matrix (overwrites this and returns it).

Overrides:
invertThis in class Matrix

getEigenvectors

public Vector[] getEigenvectors()
Get the eigenvectors of a 3x3 matrix sorted by decreasing eigenvalue. If the matrix is singular ... TODO: test this.

Returns:
an array containing eigenvectors.

clone

public Matrix3x3 clone()
Description copied from class: Matrix
Returns a clone of this matrix.

Overrides:
clone in class Matrix