Core concept
A matrix is a class instance with row-major Float64Array storage.
AbstractMatrix is the abstract base that implements everything in terms of the
get / set / rows / columns contract; Matrix is the concrete dense
implementation. Views, wrappers, SymmetricMatrix, and DistanceMatrix are
other AbstractMatrix subclasses.
Construction
new Matrix(...) does not accept a 1D array — use rowVector,
columnVector, or from1DArray.
Validation
Mutation model
- Instance methods mutate
thisand return it for chaining:m.add(2).mul(3). - Static methods return a new matrix:
Matrix.add(a, 2)leavesauntouched. clone()makes an independent copy.
Conversion and inspection
Shape queries
isRowVector, isColumnVector, isVector, isSquare, isSymmetric,
isEmpty, isDistance, isEchelonForm, isReducedEchelonForm.