Class SparseMatrix

  • All Implemented Interfaces:
    AutoCloseable, Matrix

    public class SparseMatrix
    extends Object
    implements Matrix
    Represents a sparse AnnData matrix.
    Author:
    poirigui
    • Constructor Detail

      • SparseMatrix

        public SparseMatrix​(H5Group group)
    • Method Detail

      • isCsr

        public boolean isCsr()
        Indicate if this matrix is stored in CSR.
      • isCsc

        public boolean isCsc()
        Indicate if this matrix is stored in CSC.
      • getShape

        public int[] getShape()
        Description copied from interface: Matrix
        Obtain the shape of this matrix.
        Specified by:
        getShape in interface Matrix
      • getDataType

        public H5Type getDataType()
        Description copied from interface: Matrix
        Obtain the data type used for the scalars of this matrix.
        Specified by:
        getDataType in interface Matrix
      • getIndptr

        public int[] getIndptr()
      • getData

        public H5Dataset getData()
        Description copied from interface: Matrix
        Obtain the H5 dataset underlying this matrix.
        Specified by:
        getData in interface Matrix
      • close

        public void close()
        Description copied from interface: Matrix
        Release the underlying H5 resource for this matrix.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Matrix