Class SparseFieldMatrix<T extends FieldElement<T>>

java.lang.Object
org.apache.commons.math4.linear.AbstractFieldMatrix<T>
org.apache.commons.math4.linear.SparseFieldMatrix<T>
Type Parameters:
T - the type of the field elements
All Implemented Interfaces:
AnyMatrix, FieldMatrix<T>

public class SparseFieldMatrix<T extends FieldElement<T>>
extends AbstractFieldMatrix<T>
Sparse matrix implementation based on an open addressed map.

Caveat: This implementation assumes that, for any x, the equality x * 0d == 0d holds. But it is is not true for NaN. Moreover, zero entries will lose their sign. Some operations (that involve NaN and/or infinities) may thus give incorrect results.

Since:
2.0