|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthephysics.matrix.BasicMatrix
hephysics.vec.Hep3Matrix
public class Hep3Matrix
Hep 3x3 matrices
VecOp
,
Serialized FormConstructor Summary | |
---|---|
Hep3Matrix()
|
|
Hep3Matrix(double[][] data)
Creates a new instance of BasicMatrix |
|
Hep3Matrix(double e11,
double e12,
double e13,
double e21,
double e22,
double e23,
double e31,
double e32,
double e33)
|
|
Hep3Matrix(int nRows,
int nCols)
|
|
Hep3Matrix(hephysics.matrix.Matrix m)
|
Method Summary | |
---|---|
double |
det()
Returns the determinent of the matrix. |
double |
e(int row,
int column)
Returns the (row, column) element |
int |
getNColumns()
Returns the number of columns |
int |
getNRows()
Returns the number of rows |
static Hep3Matrix |
identity()
|
void |
invert()
Invert this matrix (into itself) |
static Hep3Matrix |
mult(Hep3Matrix m1,
Hep3Matrix m2)
|
void |
setActiveEuler(double phi,
double theta,
double psi)
Defines a rotation matrix via Euler angles. |
void |
setElement(int row,
int column,
double value)
Sets the (row, column) element |
void |
setPassiveEuler(double phi,
double theta,
double psi)
Defines a rotation matrix via Euler angles. |
String |
toString()
|
double |
trace()
Returns the trace of the matrix. |
void |
transpose()
Tranpose this matrix (into itself) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hep3Matrix(int nRows, int nCols)
public Hep3Matrix(double[][] data)
public Hep3Matrix()
public Hep3Matrix(double e11, double e12, double e13, double e21, double e22, double e23, double e31, double e32, double e33)
public Hep3Matrix(hephysics.matrix.Matrix m) throws hephysics.matrix.MatrixOp.InvalidMatrixException
hephysics.matrix.MatrixOp.InvalidMatrixException
Method Detail |
---|
public double e(int row, int column)
e
in interface hephysics.matrix.Matrix
e
in class hephysics.matrix.BasicMatrix
public double det()
det
in class hephysics.matrix.BasicMatrix
public double trace()
public void setElement(int row, int column, double value)
setElement
in interface hephysics.matrix.MutableMatrix
setElement
in class hephysics.matrix.BasicMatrix
public void setPassiveEuler(double phi, double theta, double psi)
public void setActiveEuler(double phi, double theta, double psi)
public static Hep3Matrix identity()
public String toString()
toString
in class hephysics.matrix.BasicMatrix
public int getNRows()
hephysics.matrix.Matrix
getNRows
in interface hephysics.matrix.Matrix
getNRows
in class hephysics.matrix.BasicMatrix
public int getNColumns()
hephysics.matrix.Matrix
getNColumns
in interface hephysics.matrix.Matrix
getNColumns
in class hephysics.matrix.BasicMatrix
public void invert() throws hephysics.matrix.MatrixOp.IndeterminateMatrixException
hephysics.matrix.MutableMatrix
invert
in interface hephysics.matrix.MutableMatrix
invert
in class hephysics.matrix.BasicMatrix
hephysics.matrix.MatrixOp.IndeterminateMatrixException
MatrixOp.inverse(Matrix,MutableMatrix)
public void transpose()
hephysics.matrix.MutableMatrix
transpose
in interface hephysics.matrix.MutableMatrix
transpose
in class hephysics.matrix.BasicMatrix
MatrixOp.transposed(Matrix,MutableMatrix)
public static Hep3Matrix mult(Hep3Matrix m1, Hep3Matrix m2)
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |