hephysics.matrix
Class MatrixOp
- java.lang.Object
-
- hephysics.matrix.MatrixOp
-
public class MatrixOp extends java.lang.Object
Simple operations on matrices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
MatrixOp.IndeterminateMatrixException
static class
MatrixOp.InvalidMatrixException
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static double
det(Matrix mIn)
static void
inverse(Matrix mIn, MutableMatrix mOut)
Invert matrix mIn and write it to matrix mOut.static Matrix
mult(Matrix m1, Matrix m2)
static java.lang.String
toString(Matrix m)
static void
transposed(Matrix mIn, MutableMatrix mOut)
Traspose matrix mIn and write it to matrix mOut.
-
-
-
Method Detail
-
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 java.lang.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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG