Class DoubleMatrixFactory
java.lang.Object
ubic.basecode.dataStructure.matrix.DoubleMatrixFactory
Use this factory to create matrices of type selected at runtime (String parameterization only)
- Author:
- Paul Pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressedSparseDoubleMatrix<String, String> compressedsparse(int rows, int cols) static DenseDoubleMatrix<String, String> dense(double[][] T) static DenseDoubleMatrix<String, String> dense(int rows, int cols) static DenseDoubleMatrix<String, String> Creates a matrix in which the underlying data is a copy; the row and column labels are not copied.static FastRowAccessDoubleMatrix<String, String> fastrow(double[][] T) static FastRowAccessDoubleMatrix<String, String> fastrow(int rows, int cols) static SparseDoubleMatrix<String, String> sparse(double[][] T) static SparseDoubleMatrix<String, String> sparse(int rows, int cols)
-
Constructor Details
-
DoubleMatrixFactory
public DoubleMatrixFactory()
-
-
Method Details
-
compressedsparse
-
dense
-
dense
Creates a matrix in which the underlying data is a copy; the row and column labels are not copied.- Parameters:
T-- Returns:
-
dense
-
fastrow
-
fastrow
-
sparse
-
sparse
-