- The signatures for this method constructor are (Column-major dense matrix):
DenseMatrix(int numRows, int numCols, double[] values)DenseMatrix(int numRows, int numCols, double[] values, boolean isTransposed)
- The method inherits from the following which makes their concrete methods available to all routines:
-
interface class java.lang.Object
-
java.io.Serializable
-
Matrix
-
- There are several method calls that are of interest:
-
Generate the diagonal matrix from the supplied values in the vector:
-
static DenseMatrix(Vector vector)
-
- Create an identity matrix. An identity matrix is a matrix that has diagonals as 1 and any other element as 0:
static eye(int n)
-
- Keep track of whether the matrix is transposed: