public class MatrixUtils
extends java.lang.Object
| Constructor and Description |
|---|
MatrixUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
colSums(MatrixTable A)
Get the column sums.
|
static int[] |
rowSums(MatrixTable A)
Get the row sums.
|
static double[] |
to1DArray(MatrixTable A)
Get all matrix entries in the form of an 1D
double[]. |
static double[][] |
to2DArray(MatrixTable A)
Get all matrix entries in the form of a 2D
double[][] array. |
static java.lang.String |
toString(MatrixTable A)
Get the
String representation of a matrix. |
public static int[] rowSums(MatrixTable A)
A - a matrixpublic static int[] colSums(MatrixTable A)
A - a matrixpublic static double[] to1DArray(MatrixTable A)
double[].A - a matrixdouble[]public static double[][] to2DArray(MatrixTable A)
double[][] array.A - a matrixdouble[][]public static java.lang.String toString(MatrixTable A)
String representation of a matrix.A - a matrixString representation of a matrix