Difference between revisions of "Main Page"
Line 104: | Line 104: | ||
* Unit Testing | * Unit Testing | ||
|}. | |}. | ||
+ | |||
+ | |||
+ | {| class="wikitable" width="650pt" border="1" | | ||
+ | ! style="width: 60%;" | Decomposition || style="width: 20%;" |Dense Real || style="width: 20%;" |Dense Complex | ||
+ | |- | ||
+ | | LU || style="text-align:center;" | X || style="text-align:center;" | X | ||
+ | |- | ||
+ | | Cholesky LL || style="text-align:center;" | X || style="text-align:center;" | X | ||
+ | |- | ||
+ | | Cholesky LDL || style="text-align:center;" | X || style="text-align:center;" | | ||
+ | |- | ||
+ | | QR || style="text-align:center;" | X || style="text-align:center;" | X | ||
+ | |- | ||
+ | | QRP || style="text-align:center;" | X || style="text-align:center;" | | ||
+ | |- | ||
+ | | SVD || style="text-align:center;" | X || style="text-align:center;" | | ||
+ | |- | ||
+ | | Eigen-Symmetric || style="text-align:center;" | X || style="text-align:center;" | | ||
+ | |- | ||
+ | | Eigen-General || style="text-align:center;" | X || style="text-align:center;" | | ||
+ | |} | ||
+ | |||
EJML is currently a single threaded library only. Multi threaded work will start once block implementations of SVD and Eigenvalue are finished. | EJML is currently a single threaded library only. Multi threaded work will start once block implementations of SVD and Eigenvalue are finished. | ||
</center> | </center> |
Revision as of 11:08, 9 November 2016
Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating dense 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. Procedure provides all capabilities of EJML and almost complete control over memory creation, speed, and specific algorithms. SimpleMatrix provides a simplified subset of the core capabilities in an easy to use flow styled object-oriented API, inspired by Jama. Equations is a symbolic interface, similar in spirit to Matlab and other CAS, that provides a compact way of writing equations. |
| |||||||||||
|
|
|
Code Examples
Demonstrations on how to compute the Kalman gain "K" using each interface in EJML.
Procedural 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);
SimpleMatrix SimpleMatrix S = H.mult(P).mult(H.transpose()).plus(R);
SimpleMatrix K = P.mult(H.transpose().mult(S.invert()));
Equations eq.process("K = P*H'*inv( H*P*H' + R )");
|
Functionality
Data Structures | Operations |
---|---|
|
|
Decomposition | Dense Real | Dense Complex |
---|---|---|
LU | X | X |
Cholesky LL | X | X |
Cholesky LDL | X | |
QR | X | X |
QRP | X | |
SVD | X | |
Eigen-Symmetric | X | |
Eigen-General | X |
EJML is currently a single threaded library only. Multi threaded work will start once block implementations of SVD and Eigenvalue are finished.