Class CooMatrix

java.lang.Object
All Implemented Interfaces:
Serializable, MatrixComparisonsMixin<CooMatrix>, MatrixManipulationsMixin<CooMatrix,Double>, MatrixMixin<CooMatrix,Matrix,CooMatrix,CooCMatrix,CooCMatrix,Double,CooVector,Vector>, MatrixOperationsMixin<CooMatrix,Matrix,CooMatrix,CooCMatrix,CooCMatrix,Double,CooVector,Vector>, MatrixPropertiesMixin, RealMatrixMixin<CooMatrix,CooCMatrix>, RealTensorMixin<CooMatrix,CooCMatrix>, SparseTensorMixin, TensorComparisonsMixin, TensorManipulationsMixin<CooMatrix>, TensorOperationsMixin<CooMatrix,Matrix,CooCMatrix,CMatrix,CooMatrix,Double>, TensorPropertiesMixin

Real sparse matrix. Matrix is stored in coordinate list (COO) format.

COO matrices are best suited for efficient modification and construction of sparse matrices. Coo matrices are not well suited for matrix-matrix or matrix-vector multiplication (see CsrMatrix).

If a sparse matrix needs to be incrementally constructed, then a COO matrix should be used to construct the matrix as it allows for efficient modification. If the matrix then needs to be used in a matrix-matrix or matrix-vector multiplication problem, it should first be converted to a CsrMatrix in most cases.

See Also: