Class SparseMatrix
java.lang.Object
ubic.gemma.core.loader.util.anndata.SparseMatrix
- All Implemented Interfaces:
AutoCloseable
,Matrix
Represents a sparse AnnData matrix.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release the underlying H5 resource for this matrix.getData()
Obtain the H5 dataset underlying this matrix.Obtain the data type used for the scalars of this matrix.long[]
int[]
getShape()
Obtain the shape of this matrix.boolean
isCsc()
Indicate if this matrix is stored in CSC.boolean
isCsr()
Indicate if this matrix is stored in CSR.
-
Constructor Details
-
SparseMatrix
-
-
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. -
getDataType
Description copied from interface:Matrix
Obtain the data type used for the scalars of this matrix.- Specified by:
getDataType
in interfaceMatrix
-
getIndptr
public long[] getIndptr() -
getData
Description copied from interface:Matrix
Obtain the H5 dataset underlying this matrix. -
getIndices
-
close
public void close()Description copied from interface:Matrix
Release the underlying H5 resource for this matrix.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMatrix
-