abacus-matrix is a Java library for working with rectangular 2D arrays as matrix types. It provides dedicated matrix implementations for primitive values and objects, with APIs for array-backed access, reshaping, traversal, and element-wise transformations without the overhead of a heavyweight numerical framework.
It includes BooleanMatrix, ByteMatrix, CharMatrix, ShortMatrix, IntMatrix, LongMatrix, FloatMatrix, DoubleMatrix, and generic Matrix<T>, plus the Matrices utility class for shared helpers such as zipping matrices and controlling optional parallel execution through ParallelMode.
- Rectangular, array-backed matrix types for primitive and object values.
- Common matrix operations such as row/column access, transpose, reshape, flatten, stacking, mapping, and slicing.
- Numeric matrix operations where supported, including add, subtract, and multiply on numeric primitive matrices.
- Element-wise zip/combine utilities for pairs or collections of matrices.
- Optional thread-local parallelization for larger workloads.
- Object-matrix interop helpers such as conversion to
Dataset.
Many constructors and of(...) factories wrap the supplied 2D array directly for performance. If you need isolation from the original array, use copy-producing APIs instead of sharing the backing storage.
- API index
- Release notes
- Wiki
- Type overviews:
- Requires Java 17.
- This module depends on
abacus-commonandabacus-extra.