java.lang.Object
dk.jonaslindstrom.ruffini.common.matrices.elements.BaseMatrix<E>
All Implemented Interfaces:
Matrix <E>
, java.util.function.BiFunction<Vector <E>,Ring <E>,Vector <E>>
Direct Known Subclasses:
MutableMatrix
, SparseMatrix
public abstract class BaseMatrix<E>
extends Object
implements Matrix <E>
This class represents a matrix of elements of type E. Operations that can be done without knowing how the entries are
represented should be implemented here.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
boolean
boolean
boolean
Returns a mutable copy of this matrix.
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface dk.jonaslindstrom.ruffini.common.matrices.elements.Matrix
collapseColumns , collapseRows , extendTo , extendWith , get , get , getHeight , getWidth , map , minor , stream , submatrix , submatrix , transpose , view
Constructor Details
BaseMatrix
public BaseMatrix ()
Method Details
isSquare
public boolean isSquare ()
Specified by:
isSquare
in interface Matrix <E >
apply
Specified by:
apply
in interface java.util.function.BiFunction<Vector <E >,Ring <E >,Vector <E >>
equals
public boolean equals (Matrix <E > other,
java.util.function.BiPredicate<E ,E > equality)
Specified by:
equals
in interface Matrix <E >
mutable
Description copied from interface: Matrix
Returns a mutable copy of this matrix.
Specified by:
mutable
in interface Matrix <E >