Package javax.vecmath
Class GMatrix
java.lang.Object
javax.vecmath.GMatrix
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class GMatrix
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
add(GMatrix m1)
void
add(GMatrix m1, GMatrix m2)
java.lang.Object
clone()
void
copySubMatrix(int rowSource, int colSource, int numRow, int numCol, int rowDest, int colDest, GMatrix target)
boolean
epsilonEquals(GMatrix m1, double epsilon)
boolean
epsilonEquals(GMatrix m1, float epsilon)
boolean
equals(java.lang.Object o1)
boolean
equals(GMatrix m1)
void
get(GMatrix m1)
void
get(Matrix3d m1)
void
get(Matrix3f m1)
void
get(Matrix4d m1)
void
get(Matrix4f m1)
void
getColumn(int col, double[] array)
void
getColumn(int col, GVector vector)
double
getElement(int row, int column)
int
getNumCol()
int
getNumRow()
void
getRow(int row, double[] array)
void
getRow(int row, GVector vector)
int
hashCode()
void
identityMinus()
void
invert()
void
invert(GMatrix m1)
int
LUD(GMatrix LU, GVector permutation)
void
mul(GMatrix m1)
void
mul(GMatrix m1, GMatrix m2)
void
mul(GVector v1, GVector v2)
void
mulTransposeBoth(GMatrix m1, GMatrix m2)
void
mulTransposeLeft(GMatrix m1, GMatrix m2)
void
mulTransposeRight(GMatrix m1, GMatrix m2)
void
negate()
void
negate(GMatrix m1)
void
set(double[] matrix)
void
set(GMatrix m1)
void
set(Matrix3d m1)
void
set(Matrix3f m1)
void
set(Matrix4d m1)
void
set(Matrix4f m1)
void
setColumn(int col, double[] array)
void
setColumn(int col, GVector vector)
void
setElement(int row, int column, double value)
void
setIdentity()
void
setRow(int row, double[] array)
void
setRow(int row, GVector vector)
void
setScale(double scale)
void
setSize(int nRow, int nCol)
void
setZero()
void
sub(GMatrix m1)
void
sub(GMatrix m1, GMatrix m2)
int
SVD(GMatrix U, GMatrix W, GMatrix V)
java.lang.String
toString()
double
trace()
void
transpose()
void
transpose(GMatrix m1)
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GMatrix
public GMatrix(int nRow, int nCol) -
GMatrix
public GMatrix(int nRow, int nCol, double[] matrix) -
GMatrix
-
-
Method Details
-
mul
-
mul
-
mul
-
add
-
add
-
sub
-
sub
-
negate
public final void negate() -
negate
-
setIdentity
public final void setIdentity() -
setZero
public final void setZero() -
identityMinus
public final void identityMinus() -
invert
public final void invert() -
invert
-
copySubMatrix
public final void copySubMatrix(int rowSource, int colSource, int numRow, int numCol, int rowDest, int colDest, GMatrix target) -
setSize
public final void setSize(int nRow, int nCol) -
set
public final void set(double[] matrix) -
set
-
set
-
set
-
set
-
set
-
getNumRow
public final int getNumRow() -
getNumCol
public final int getNumCol() -
getElement
public final double getElement(int row, int column) -
setElement
public final void setElement(int row, int column, double value) -
getRow
public final void getRow(int row, double[] array) -
getRow
-
getColumn
public final void getColumn(int col, double[] array) -
getColumn
-
get
-
get
-
get
-
get
-
get
-
setRow
public final void setRow(int row, double[] array) -
setRow
-
setColumn
public final void setColumn(int col, double[] array) -
setColumn
-
mulTransposeBoth
-
mulTransposeRight
-
mulTransposeLeft
-
transpose
public final void transpose() -
transpose
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object o1)- Overrides:
equals
in classjava.lang.Object
-
epsilonEquals
-
epsilonEquals
-
trace
public final double trace() -
SVD
-
LUD
-
setScale
public final void setScale(double scale) -
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-