public DoubleMatrix
double get(int row,
int col)
The row and column coordinates are not checked to make sure they are in the matrix
row - the zero-based row indexcol - the zero-based column indexdouble getChecked(int row,
int col)
The row and column coordinates are checked to make sure they fall in the matrix. If not an error is generated.
row - the zero-based row indexcol - the zero-based column indexvoid set(int row,
int col,
double value)
Sets the matrix value at row, col. The coordinates are not checked to make sure they fall in the matrix.
row - the zero-based row indexcol - the zero-based column indexvalue - the value to be set at row, colvoid setChecked(int row,
int col,
double value)
Sets the matrix value at row, col. The coordinates are checked to make sure they fall in the matrix.
row - the zero-based row indexcol - the zero-based column indexvalue - the value to be set at row, colDoubleMatrix transpose()
DoubleMatrix mult(DoubleMatrix dm, boolean transpose, boolean transposedm)
Multiply this matrix times another.
dm - a double matrixtranspose - if true, this matrix will be transposed before multiplyingtransposedm - if true, dm will be transposed before multiplyingDoubleMatrix multadd(DoubleMatrix A, DoubleMatrix B, double alpha, double beta, boolean transpose, boolean transposeA)
Using this function for combining multiplication and addition allows the implementing library to optimize the operations. Performs: alpha * XA + beta*B, where X is this matrix
A - the matrix to be multipliedB - the matrix to be added, can be nullalpha - scalar multiplier for Abeta - scalar multiplier for Btranspose - if true, X is transposedtransposeA - if true, A is transposedDoubleMatrix mult(DoubleMatrix dm)
dm - a double matrixDoubleMatrix crossproduct()
DoubleMatrix crossproduct(DoubleMatrix dm)
dm - a double matrixDoubleMatrix tcrossproduct()
DoubleMatrix tcrossproduct(DoubleMatrix dm)
dm - a double matrixDoubleMatrix concatenate(DoubleMatrix dm, boolean rows)
dm - a DoubleMatrixrows - true if rows are to concatenated, false if columns are to be concatenatedDoubleMatrix inverse()
This returns the inverse or a square matrix, without modifying the original matrix.
boolean invert()
This invers a square matrix, replacing the original with the inverse.
DoubleMatrix generalizedInverse()
DoubleMatrix generalizedInverseWithRank(kotlin.Array[] rank)
inverts the matrix and returns the rank as the first element in rank[]. The original matrix is not modified.
DoubleMatrix solve(DoubleMatrix Y)
Y - a DoubleMatrixint numberOfRows()
int numberOfColumns()
DoubleMatrix row(int i)
i - a row indexDoubleMatrix column(int j)
j - a column indexDoubleMatrix[] getXtXGM()
DoubleMatrix copy()
EigenvalueDecomposition getEigenvalueDecomposition()
SingularValueDecomposition getSingularValueDecomposition()
QRDecomposition getQRDecomposition()
DoubleMatrix minus(DoubleMatrix dm)
dm - a DoubleMatrixvoid minusEquals(DoubleMatrix dm)
This function subtracts dm, modifying the original matrix
dm - a DoubleMatrixDoubleMatrix plus(DoubleMatrix dm)
dm - a DoubleMatrixvoid plusEquals(DoubleMatrix dm)
This function adds dm, modifying the original matrix
dm - a DoubleMatrixDoubleMatrix scalarAdd(double s)
Adds a scalar to this matrix and returns a new matrix. The original is not modified.
s - a scalarvoid scalarAddEquals(double s)
Adds a scalar s to this matrix, replacing the original matrix with the result.
s - a scalarDoubleMatrix scalarMult(double s)
Multiplies this matrix times a scalar and returns a new matrix. The original is not modified.
s - a scalarvoid scalarMultEquals(double s)
Multiplies this matrix times a scalar s, replacing the original matrix with the result.
s - a scalarDoubleMatrix getSelection(kotlin.Array[] rows, kotlin.Array[] columns)
Creates a new matrix consisting or the rows and columns of this matrix in the order specified. If rows or columns is null then all rows or columns, respectively, will be included
rows - the rows to be included in the new matrixcolumns - the columns to be included in the new matrixdouble rowSum(int row)
row - double columnSum(int column)
column - int columnRank()
kotlin.Array[] to1DArray()
kotlin.Array[] toArray()