Documentation API of the 'hephysics.vec.Hep3Matrix' Java class
Hep3Matrix
hephysics.vec

## Class Hep3Matrix

• ### Constructor Summary

Constructors
Constructor and Description
`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(Matrix m)`
• ### Method Summary

All Methods
Modifier and TypeMethod and Description
`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

• #### Hep3Matrix

`public Hep3Matrix(int nRows,                  int nCols)`
• #### Hep3Matrix

`public Hep3Matrix(double[][] data)`
Creates a new instance of BasicMatrix
• #### Hep3Matrix

`public Hep3Matrix()`
• #### Hep3Matrix

`public Hep3Matrix(double e11,                  double e12,                  double e13,                  double e21,                  double e22,                  double e23,                  double e31,                  double e32,                  double e33)`
• #### Hep3Matrix

`public Hep3Matrix(Matrix m)           throws MatrixOp.InvalidMatrixException`
Throws:
`MatrixOp.InvalidMatrixException`
• ### Method Detail

• #### e

`public double e(int row,                int column)`
Returns the (row, column) element
Specified by:
`e` in interface `Matrix`
Overrides:
`e` in class `BasicMatrix`
• #### det

`public double det()`
Returns the determinent of the matrix.
Overrides:
`det` in class `BasicMatrix`
• #### trace

`public double trace()`
Returns the trace of the matrix.
• #### setElement

`public void setElement(int row,                       int column,                       double value)`
Sets the (row, column) element
Specified by:
`setElement` in interface `MutableMatrix`
Overrides:
`setElement` in class `BasicMatrix`
• #### setPassiveEuler

`public 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.
• #### setActiveEuler

`public 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.
• #### identity

`public static Hep3Matrix identity()`
• #### toString

`public String toString()`
Overrides:
`toString` in class `BasicMatrix`
• #### getNRows

`public int getNRows()`
Description copied from interface: `Matrix`
Returns the number of rows
Specified by:
`getNRows` in interface `Matrix`
Overrides:
`getNRows` in class `BasicMatrix`
• #### getNColumns

`public int getNColumns()`
Description copied from interface: `Matrix`
Returns the number of columns
Specified by:
`getNColumns` in interface `Matrix`
Overrides:
`getNColumns` in class `BasicMatrix`
• #### invert

`public void invert()            throws MatrixOp.IndeterminateMatrixException`
Description copied from interface: `MutableMatrix`
Invert this matrix (into itself)
Specified by:
`invert` in interface `MutableMatrix`
Overrides:
`invert` in class `BasicMatrix`
Throws:
`MatrixOp.IndeterminateMatrixException`
`MatrixOp.inverse(Matrix,MutableMatrix)`
• #### transpose

`public void transpose()`
Description copied from interface: `MutableMatrix`
Tranpose this matrix (into itself)
Specified by:
`transpose` in interface `MutableMatrix`
Overrides:
`transpose` in class `BasicMatrix`
`MatrixOp.transposed(Matrix,MutableMatrix)`
• #### mult

`public static Hep3Matrix mult(Hep3Matrix m1,                              Hep3Matrix m2)`

DMelt 1.2 © DataMelt by jWork.ORG

Hep3Matrix
hephysics.vec

## Class Hep3Matrix

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.