Interface SparseStructure

All Known Subinterfaces:
SparseMatrix
All Known Implementing Classes:
Basis, CSCSparseMatrix, CSRSparseMatrix, DOKSparseMatrix, LILSparseMatrix, SparseVector

public interface SparseStructure
This interface defines common operations on sparse structures such as sparse vector or sparse matrix.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of non-zero entries in the structure.
  • Method Details

    • nNonZeros

      int nNonZeros()
      Get the number of non-zero entries in the structure.
      Returns:
      the number of non-zero entries in the structure