Class DenseMatrix
- java.lang.Object
-
- ubic.gemma.core.loader.util.anndata.DenseMatrix
-
- All Implemented Interfaces:
AutoCloseable
,Matrix
public class DenseMatrix extends Object implements Matrix
Represents a dense AnnData matrix.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description DenseMatrix(H5Dataset dataset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Release the underlying H5 resource for this matrix.H5Dataset
getData()
Obtain the H5 dataset underlying this matrix.H5Type
getDataType()
Obtain the data type used for the scalars of this matrix.int[]
getShape()
Obtain the shape of this matrix.
-
-
-
Constructor Detail
-
DenseMatrix
public DenseMatrix(H5Dataset dataset)
-
-
Method Detail
-
getShape
public int[] getShape()
Description copied from interface:Matrix
Obtain the shape of this 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 interfaceMatrix
-
getData
public H5Dataset getData()
Description copied from interface:Matrix
Obtain the H5 dataset underlying this matrix.
-
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
-
-