<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Efficient_Java_Matrix_Library</id>
	<title>Efficient Java Matrix Library - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Efficient_Java_Matrix_Library"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Efficient_Java_Matrix_Library&amp;action=history"/>
	<updated>2026-04-22T06:37:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Efficient_Java_Matrix_Library&amp;diff=15569064&amp;oldid=prev</id>
		<title>imported&gt;Deltaspace42: added Category:Software using the Apache license using HotCat</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Efficient_Java_Matrix_Library&amp;diff=15569064&amp;oldid=prev"/>
		<updated>2023-12-22T15:30:26Z</updated>

		<summary type="html">&lt;p&gt;added &lt;a href=&quot;/index.php/Category:Software_using_the_Apache_license&quot; title=&quot;Category:Software using the Apache license&quot;&gt;Category:Software using the Apache license&lt;/a&gt; using &lt;a href=&quot;/index.php?title=WP:HC&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:HC (page does not exist)&quot;&gt;HotCat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Multiple issues|&lt;br /&gt;
{{Notability|Product|date=January 2023}}&lt;br /&gt;
{{COI|date=January 2023}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = &lt;br /&gt;
| author = Peter Abeles&lt;br /&gt;
| operating system = [[Cross-platform]]&lt;br /&gt;
| latest_release_version = 0.41.1&lt;br /&gt;
| latest_release_date = {{Start date and age|2022|12|04}}&lt;br /&gt;
| genre = Library&lt;br /&gt;
| license = [[Apache License]]&lt;br /&gt;
| website = {{url|http://ejml.org/}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Efficient Java Matrix Library&amp;#039;&amp;#039;&amp;#039; (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.&lt;br /&gt;
&lt;br /&gt;
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 (numerical linear algebra library)|JAMA]]. The Equations style provides a symbolic interface, similar in spirit to Matlab and other CAS, that provides a compact way of writing equations.&amp;lt;ref name=&amp;quot;ProjectPage&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Capabilities ==&lt;br /&gt;
&lt;br /&gt;
EJML provides the following capabilities for dense matrices.&lt;br /&gt;
&lt;br /&gt;
* Basic Operators (addition, multiplication, ... )&lt;br /&gt;
* Matrix Manipulation (extract, insert, combine, ... )&lt;br /&gt;
* Linear Solvers (linear, least squares, incremental, ... )&lt;br /&gt;
* Decompositions (LU, QR, Cholesky, SVD, Eigenvalue, ...)&lt;br /&gt;
* Matrix Features (rank, symmetric, definitiveness, ... )&lt;br /&gt;
* Random Matrices (covariance, orthogonal, symmetric, ... )&lt;br /&gt;
* Different Internal Formats (row-major, block)&lt;br /&gt;
* Unit Testing&lt;br /&gt;
&lt;br /&gt;
== Usage examples ==&lt;br /&gt;
=== Equation style ===&lt;br /&gt;
&lt;br /&gt;
Computing the [[Kalman gain]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
eq.process(&amp;quot;K = P*H&amp;#039;*inv( H*P*H&amp;#039; + R )&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Procedural style ===&lt;br /&gt;
&lt;br /&gt;
Computing Kalman gain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
mult(H, P, c);&lt;br /&gt;
multTransB(c, H, S);&lt;br /&gt;
addEquals(S, R);&lt;br /&gt;
if (!invert(S, S_inv))&lt;br /&gt;
    throw new RuntimeException(&amp;quot;Invert failed&amp;quot;);&lt;br /&gt;
multTransA(H, S_inv, d);&lt;br /&gt;
mult(P, d, K);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SimpleMatrix style ===&lt;br /&gt;
&lt;br /&gt;
Example of [[singular value decomposition]] (SVD):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
SimpleSVD s = matA.svd();&lt;br /&gt;
SimpleMatrix U = s.getU();&lt;br /&gt;
SimpleMatrix W = s.getW();&lt;br /&gt;
SimpleMatrix V = s.getV();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example of matrix multiplication:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
SimpleMatrix result = matA.mult(matB);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== DecompositionFactory  ===&lt;br /&gt;
&lt;br /&gt;
Use of a DecompositionFactory to compute a Singular Value Decomposition with a Dense Double Row Major matrix (DDRM):&amp;lt;ref&amp;gt;{{cite web|access-date=2021-04-24|title=Matrix Decompositions - Efficient Java Matrix Library|url=http://ejml.org/wiki/index.php?title=Matrix_Decompositions|website=ejml.org}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
SingularValueDecomposition_F64&amp;lt;DenseMatrix64F&amp;gt; svd = &lt;br /&gt;
    DecompositionFactory_DDRM.svd(true, true, true);&lt;br /&gt;
&lt;br /&gt;
if (!DecompositionFactory.decomposeSafe(svd, matA))&lt;br /&gt;
    throw new DetectedException(&amp;quot;Decomposition failed.&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
DenseMatrix64F U = svd.getU(null, false);&lt;br /&gt;
DenseMatrix64F S = svd.getW(null);&lt;br /&gt;
DenseMatrix64F V = svd.getV(null, false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example of matrix multiplication:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
CommonOps_DDRM.mult(matA, matB, result);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[List of numerical libraries]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist|refs=&lt;br /&gt;
&amp;lt;ref name=ProjectPage&amp;gt;{{cite web |url=http://ejml.org/ |title=EJML Project Page |work=EJML|publisher=Peter Abeles|access-date=Jan 21, 2019}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://ejml.org/ Efficient Java Matrix Library (EJML) homepage]&lt;br /&gt;
&lt;br /&gt;
[[Category:Numerical libraries]]&lt;br /&gt;
[[Category:Software using the Apache license]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Deltaspace42</name></author>
	</entry>
</feed>