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