hephysics.matrix
Class MatrixOp
java.lang.Object
hephysics.matrix.MatrixOp
public class MatrixOp
- extends Object
Simple operations on matrices
inverse
public static void inverse(Matrix mIn,
MutableMatrix mOut)
throws MatrixOp.InvalidMatrixException
- Invert matrix mIn and write it to matrix mOut.
This method allows both arguments to be the same, e.g.
inverse(this,this);
This method currently only supports square matrices.
- Throws:
MatrixOp.InvalidMatrixException
toString
public static String toString(Matrix m)
det
public static double det(Matrix mIn)
transposed
public static void transposed(Matrix mIn,
MutableMatrix mOut)
- Traspose matrix mIn and write it to matrix mOut.
This method allows both arguments to be the same, e.g.
transposed(this,this);
This method currently only supports square matrices.
mult
public static Matrix mult(Matrix m1,
Matrix m2)
jHepWork 3.0 ©