user1796942
user1796942

Reputation: 3528

Standard Matrix code in java?

I am new to Java, and I need a Matrix class. Is there a standard library/package for this, or I will have to write it myself?

Thanks

Upvotes: 3

Views: 2371

Answers (3)

user1204121
user1204121

Reputation: 385

I can recommend EJML
The following functionality is provided:
•Basic Operators (addition, multiplication, ... )
•Matrix Manipulation (extract, insert, combine, ... )
•Linear Solvers (linear, least squares, incremental, ... )
•Decompositions (LU, QR, Cholesky, SVD, Eigenvalue, ...)
•Matrix Features (rank, symmetric, definitiveness, ... )
•Random Matrices (covariance, orthogonal, symmetric, ... )
•Different Internal Formats (row-major, block)
•Unit Testing

Upvotes: 1

paulsm4
paulsm4

Reputation: 121669

No, there is no "matrix class" built into the standard libraries.

Yes, there are many linear algebra libraries available. For example:

Upvotes: 3

Frank
Frank

Reputation: 15641

You can have a look at JAMA.

JAMA is a basic linear algebra package for Java. It provides user-level classes for constructing and manipulating real, dense matrices. It is meant to provide sufficient functionality for routine problems, packaged in a way that is natural and understandable to non-experts. It is intended to serve as the standard matrix class for Java...

Upvotes: 3

Related Questions