import de.jungblut.math.DoubleMatrix;
import de.jungblut.math.MathUtils;
public class MatrixExample {
public static void main(String[] args) {
double[][] data = { { 1.0, 2.0 }, { 3.0, 4.0 } };
DoubleMatrix matrix = new DoubleMatrix(data);
DoubleMatrix transposedMatrix = MathUtils.transpose(matrix);
double determinant = MathUtils.determinant(matrix);
DoubleMatrix eigenValues = MathUtils.eigen(matrix);
}
}
<dependency>
<groupId>de.jungblut.math</groupId>
<artifactId>tjungblut-math</artifactId>
<version>1.0.0</version>
</dependency>