encyclopegia.org

Efficient Java Matrix Library

Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating real/complex/dense/sparse matrices. Its design goals are; 1) to be as computationally and memory efficient as possible for both small and large matrices, and 2) to be accessible to both novices and experts. These goals are accomplished by dynamically selecting the best algorithms to use at runtime, clean API, and multiple interfaces. EJML is free, written in 100% Java and has been released under an Apache v2.0 license. EJML has three distinct ways to interact with it: 1) Procedural, 2) SimpleMatrix, and 3) Equations. The procedural style provides all capabilities of EJML and almost complete control over matrix creation, speed, and specific algorithms. The SimpleMatrix style provides a simplified subset of the core capabilities in an easy-to-use flow-styled object-oriented API, inspired by JAMA. The Equations style provides a symbolic interface, similar in spirit to Matlab and other CAS, that provides a compact way of writing equations.

Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating real/complex/dense/sparse matrices. Its design goals are; 1) to be as computationally and memory efficient as possible for both small and large matrices, and 2) to be accessible to both novices and experts. These goals are accomplished by dynamically selecting the best algorithms to use at runtime, clean API, and multiple interfaces. EJML is free, written in 100% Java and has been released under an Apache v2.0 license. EJML has three distinct ways to interact with it: 1) Procedural, 2) SimpleMatrix, and 3) Equations. The procedural style provides all capabilities of EJML and almost complete control over matrix creation, speed, and specific algorithms. The SimpleMatrix style provides a simplified subset of the core capabilities in an easy-to-use flow-styled object-oriented API, inspired by JAMA. The Equations style provides a symbolic interface, similar in spirit to Matlab and other CAS, that provides a compact way of writing equations. eq.process("K = P*H'*inv( H*P*H' + R )"); mult(H, P, c); multTransB(c, H, S); addEquals(S, R); if (!invert(S, S_inv)) throw new RuntimeException("Invert failed"); multTransA(H, S_inv, d); mult(P, d, K); SimpleSVD s = matA.svd(); SimpleMatrix U = s.getU(); SimpleMatrix W = s.getW(); SimpleMatrix V = s.getV(); Example of matrix multiplication: SimpleMatrix result = matA.mult(matB); SingularValueDecomposition_F64 svd = DecompositionFactory_DDRM.svd(true, true, true); if (!DecompositionFactory.decomposeSafe(svd, matA)) throw new DetectedException("Decomposition failed."); DenseMatrix64F U = svd.getU(null, false); DenseMatrix64F S = svd.getW(null); DenseMatrix64F V = svd.getV(null, false); Example of matrix multiplication: CommonOps_DDRM.mult(matA, matB, result); ==See also== List of numerical libraries List of open-source mathematical libraries

References

No reference rows published for this article.

Cite this article

MLA

"Efficient Java Matrix Library." encyclopegia.org, 2026, https://encyclopegia.org/wiki/efficient-java-matrix-library. Accessed 24 November 2026.

Chicago

"Efficient Java Matrix Library." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/efficient-java-matrix-library.

APA

encyclopegia.org. (2026). Efficient Java Matrix Library. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/efficient-java-matrix-library

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Libhybris

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1341631900 · 0.5 · snapshot enwiki-001341631900

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.