hephysics.vec
Class Hep3Matrix
- java.lang.Object
- 
- hephysics.matrix.BasicMatrix
- 
- hephysics.vec.Hep3Matrix
 
 
- 
- All Implemented Interfaces:
- Matrix, MutableMatrix, java.io.Serializable
 
 
 public class Hep3Matrix extends BasicMatrix Hep 3x3 matrices- See Also:
- VecOp, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor and Description Hep3Matrix()Hep3Matrix(double[][] data)Creates a new instance of BasicMatrixHep3Matrix(double e11, double e12, double e13, double e21, double e22, double e23, double e31, double e32, double e33)Hep3Matrix(int nRows, int nCols)Hep3Matrix(Matrix m)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubledet()Returns the determinent of the matrix.doublee(int row, int column)Returns the (row, column) elementintgetNColumns()Returns the number of columnsintgetNRows()Returns the number of rowsstatic Hep3Matrixidentity()voidinvert()Invert this matrix (into itself)static Hep3Matrixmult(Hep3Matrix m1, Hep3Matrix m2)voidsetActiveEuler(double phi, double theta, double psi)Defines a rotation matrix via Euler angles.voidsetElement(int row, int column, double value)Sets the (row, column) elementvoidsetPassiveEuler(double phi, double theta, double psi)Defines a rotation matrix via Euler angles.java.lang.StringtoString()doubletrace()Returns the trace of the matrix.voidtranspose()Tranpose this matrix (into itself)
 
- 
- 
- 
Constructor Detail- 
Hep3Matrixpublic Hep3Matrix(int nRows, int nCols)
 - 
Hep3Matrixpublic Hep3Matrix(double[][] data) Creates a new instance of BasicMatrix
 - 
Hep3Matrixpublic Hep3Matrix() 
 - 
Hep3Matrixpublic Hep3Matrix(double e11, double e12, double e13, double e21, double e22, double e23, double e31, double e32, double e33)
 - 
Hep3Matrixpublic Hep3Matrix(Matrix m) throws MatrixOp.InvalidMatrixException - Throws:
- MatrixOp.InvalidMatrixException
 
 
- 
 - 
Method Detail- 
epublic double e(int row, int column)Returns the (row, column) element- Specified by:
- ein interface- Matrix
- Overrides:
- ein class- BasicMatrix
 
 - 
detpublic double det() Returns the determinent of the matrix.- Overrides:
- detin class- BasicMatrix
 
 - 
tracepublic double trace() Returns the trace of the matrix.
 - 
setElementpublic void setElement(int row, int column, double value)Sets the (row, column) element- Specified by:
- setElementin interface- MutableMatrix
- Overrides:
- setElementin class- BasicMatrix
 
 - 
setPassiveEulerpublic void setPassiveEuler(double phi, double theta, double psi)Defines a rotation matrix via Euler angles. A "passive" rotation matrix rotates the coordinate system, an "active" one rotates the vector(body). The angles are defined for a right handed coordinate system. They are defined by counterclockwise rotations about an axis by the right hand rule, ie, looking down the axis in the negative direction the transvers axes are seen to rotate counterclockwise. To define passive(active) angles first rotate the coordinates(body) about the z-axis by phi, then about the new x-axis by theta then about the new z-axis by psi. Angles in radians.
 - 
setActiveEulerpublic void setActiveEuler(double phi, double theta, double psi)Defines a rotation matrix via Euler angles. A "passive" rotation matrix rotates the coordinate system, an "active" one rotates the vector(body). The angles are defined for a right handed coordinate system. They are defined by counterclockwise rotations about an axis by the right hand rule, ie, looking down the axis in the negative direction the transvers axes are seen to rotate counterclockwise. To define passive(active) angles first rotate the coordinates(body) about the z-axis by phi, then about the new x-axis by theta then about the new z-axis by psi. Angles in radians.
 - 
identitypublic static Hep3Matrix identity() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- BasicMatrix
 
 - 
getNRowspublic int getNRows() Description copied from interface:MatrixReturns the number of rows- Specified by:
- getNRowsin interface- Matrix
- Overrides:
- getNRowsin class- BasicMatrix
 
 - 
getNColumnspublic int getNColumns() Description copied from interface:MatrixReturns the number of columns- Specified by:
- getNColumnsin interface- Matrix
- Overrides:
- getNColumnsin class- BasicMatrix
 
 - 
invertpublic void invert() throws MatrixOp.IndeterminateMatrixExceptionDescription copied from interface:MutableMatrixInvert this matrix (into itself)- Specified by:
- invertin interface- MutableMatrix
- Overrides:
- invertin class- BasicMatrix
- Throws:
- MatrixOp.IndeterminateMatrixException
- See Also:
- MatrixOp.inverse(Matrix,MutableMatrix)
 
 - 
transposepublic void transpose() Description copied from interface:MutableMatrixTranpose this matrix (into itself)- Specified by:
- transposein interface- MutableMatrix
- Overrides:
- transposein class- BasicMatrix
- See Also:
- MatrixOp.transposed(Matrix,MutableMatrix)
 
 - 
multpublic static Hep3Matrix mult(Hep3Matrix m1, Hep3Matrix m2) 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG