Class SparseMatrix

java.lang.Object
ubic.gemma.core.loader.util.anndata.SparseMatrix
All Implemented Interfaces:
AutoCloseable, Matrix

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

    • SparseMatrix

      public SparseMatrix(H5Group group)
  • Method Details

    • 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 long[] getIndptr()
    • getData

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

      public H5Dataset getIndices()
    • 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