Skip navigation links

Package de.lmu.ifi.dbs.elki.math.linearalgebra

The linear algebra package provides classes and computational methods for operations on matrices and vectors.

See: Description

Package de.lmu.ifi.dbs.elki.math.linearalgebra Description

The linear algebra package provides classes and computational methods for operations on matrices and vectors.

Some content of this package is adapted from the Jama package.

Five fundamental matrix decompositions, which consist of pairs or triples of matrices, permutation vectors, and the like, produce results in five decomposition classes. These decompositions are accessed by the Matrix class to compute solutions of simultaneous linear equations, determinants, inverses and other matrix functions. The five decompositions are:

Example of use:

Solve a linear system \(Ax=b\) and compute the residual norm, \(||b-Ax||\).

double[][] matrix = { {1.,2.,3}, {4.,5.,6.}, {7.,8.,10.} };
double[] b = MathUtil.randomDoubleArray(3, new Random());
double[] x = VMath.solve(matrix, b);
double[] r = VMath.minusEquals(VMath.times(matrix, x), b);
double norm = VMath.euclideanLength(r);

The original Jama-package has been developed by the MathWorks and NIST and can be found at math.nist.gov.

Here, for the adaption some classes and methods convenient for data mining applications within ELKI were added. Furthermore some erroneous comments were corrected and the coding-style was subtly changed to a more Java-typical style.

Skip navigation links
ELKI version 0.7.5

Copyright © 2019 ELKI Development Team. License information.