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 TypeMethodDescriptionvoidclose()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.booleanisCsc()Indicate if this matrix is stored in CSC.booleanisCsr()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:MatrixObtain the shape of this matrix. -
getDataType
Description copied from interface:MatrixObtain the data type used for the scalars of this matrix.- Specified by:
getDataTypein interfaceMatrix
-
getIndptr
public long[] getIndptr() -
getData
Description copied from interface:MatrixObtain the H5 dataset underlying this matrix. -
getIndices
-
close
public void close()Description copied from interface:MatrixRelease the underlying H5 resource for this matrix.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMatrix
-