public interface DenseMatrix extends Matrix, MatrixMultiplication<DenseMatrix,DenseMatrix>
| Modifier and Type | Method and Description |
|---|---|
DenseMatrix |
aat()
Returns A * A'
|
default DenseMatrix |
add(DenseMatrix b)
In place addition A = A + B
|
default DenseMatrix |
add(DenseMatrix b,
DenseMatrix c)
C = A + B
|
default DenseMatrix |
add(double x)
In place element-wise addition A = A + x
|
default DenseMatrix |
add(double x,
DenseMatrix c)
Element-wise addition C = A + x
|
double |
add(int i,
int j,
double x)
A[i][j] += x
|
default double[][] |
array()
Return the two-dimensional array of matrix.
|
DenseMatrix |
ata()
Returns A' * A
|
DenseMatrix |
copy()
Returns a copy of this matrix.
|
default DenseMatrix |
div(DenseMatrix b)
In place element-wise division A = A / B
A = A - B
|
default DenseMatrix |
div(DenseMatrix b,
DenseMatrix c)
C = A / B
|
default DenseMatrix |
div(double x)
In place element-wise division A = A / x
|
default DenseMatrix |
div(double x,
DenseMatrix c)
Element-wise addition C = A / x
|
double |
div(int i,
int j,
double x)
A[i][j] /= x
|
default DenseMatrix |
inverse()
Returns the inverse matrix.
|
default DenseMatrix |
inverse(boolean inPlace)
Returns the inverse matrix.
|
default DenseMatrix |
mul(DenseMatrix b)
In place element-wise multiplication A = A * B
|
default DenseMatrix |
mul(DenseMatrix b,
DenseMatrix c)
C = A * B
|
default DenseMatrix |
mul(double x)
In place element-wise multiplication A = A * x
|
default DenseMatrix |
mul(double x,
DenseMatrix c)
Element-wise addition C = A * x
|
double |
mul(int i,
int j,
double x)
A[i][j] *= x
|
default DenseMatrix |
replaceNaN(double x)
Replaces NaN's with given value.
|
double |
set(int i,
int j,
double x)
Set the entry value at row i and column j.
|
default DenseMatrix |
sub(DenseMatrix b)
In place subtraction A = A - B
|
default DenseMatrix |
sub(DenseMatrix b,
DenseMatrix c)
C = A - B
|
default DenseMatrix |
sub(double x)
In place element-wise subtraction A = A - x
|
default DenseMatrix |
sub(double x,
DenseMatrix c)
Element-wise addition C = A - x
|
double |
sub(int i,
int j,
double x)
A[i][j] -= x
|
default double |
sum()
Returns the sum of all elements in the matrix.
|
default java.lang.String |
toString(boolean full)
Returns the string representation of matrix.
|
DenseMatrix |
transpose()
Returns the matrix transpose.
|
default double |
update(int i,
int j,
double x)
Set the entry value at row i and column j.
|
apply, atx, atxpy, atxpy, ax, axpy, axpy, diag, get, ncols, nrows, traceabmm, abtmm, atbmmdouble set(int i,
int j,
double x)
default double update(int i,
int j,
double x)
DenseMatrix transpose()
default DenseMatrix inverse()
default DenseMatrix inverse(boolean inPlace)
inPlace - if true, this matrix will be used for matrix decomposition.DenseMatrix copy()
DenseMatrix ata()
MatrixDenseMatrix aat()
Matrixdouble add(int i,
int j,
double x)
double sub(int i,
int j,
double x)
double mul(int i,
int j,
double x)
double div(int i,
int j,
double x)
default DenseMatrix add(DenseMatrix b, DenseMatrix c)
default DenseMatrix add(DenseMatrix b)
default DenseMatrix sub(DenseMatrix b, DenseMatrix c)
default DenseMatrix sub(DenseMatrix b)
default DenseMatrix mul(DenseMatrix b, DenseMatrix c)
default DenseMatrix mul(DenseMatrix b)
default DenseMatrix div(DenseMatrix b, DenseMatrix c)
default DenseMatrix div(DenseMatrix b)
default DenseMatrix add(double x, DenseMatrix c)
default DenseMatrix add(double x)
default DenseMatrix sub(double x, DenseMatrix c)
default DenseMatrix sub(double x)
default DenseMatrix mul(double x, DenseMatrix c)
default DenseMatrix mul(double x)
default DenseMatrix div(double x, DenseMatrix c)
default DenseMatrix div(double x)
default DenseMatrix replaceNaN(double x)
default double sum()
default double[][] array()
default java.lang.String toString(boolean full)
full - Print the full matrix if true. Otherwise only print top left 7 x 7 submatrix.