Skip to content

landawn/abacus-matrix

Repository files navigation

abacus-matrix

Maven Central Javadocs

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.

Highlights

  • 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.

Documentation

Build Notes

  • Requires Java 17.
  • This module depends on abacus-common and abacus-extra.

Related Projects

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors