<dependency>
<groupId>org.jblas</groupId>
<artifactId>jblas</artifactId>
<version>1.2.4</version>
</dependency>
import org.jblas.DoubleMatrix;
import org.jblas.Eigen;
import org.jblas.Solve;
DoubleMatrix matrix = new DoubleMatrix(3, 3, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0);
DoubleMatrix vector = new DoubleMatrix(3, 1, 1.0, 2.0, 3.0);
DoubleMatrix result = matrix.mmul(vector);
double dotProduct = vector.dot(matrix);
DoubleMatrix transpose = matrix.transpose();
DoubleMatrix x = Solve.solve(matrix, vector);
Eigen eigen = Eigen.eigenvectors(matrix);
DoubleMatrix eigenvalues = eigen.getRealEigenvalues();
DoubleMatrix eigenvectors = eigen.getEigenVectors();