Class AtA
java.lang.Object
smile.tensor.AtA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int i, int j, double x) SetsA[i,j] += x.copy()Returns a deep copy of matrix.voiddiv(int i, int j, double x) SetsA[i,j] /= x.doubleget(int i, int j) ReturnsA[i,j].longlength()Returns the number of tensor elements.voidmul(int i, int j, double x) SetsA[i,j] *= x.voidMatrix-vector multiplication.voidMatrix-vector multiplicationA * x.intncol()Returns the number of columns.intnrow()Returns the number of rows.Returns the element data type.scale(double alpha) A *= alphavoidset(int i, int j, double x) SetsA[i,j] = x.voidsub(int i, int j, double x) SetsA[i,j] -= x.Returns the transpose of matrix.voidMatrix-vector multiplicationA' * x.
-
Constructor Details
-
AtA
-
-
Method Details
-
scalarType
Description copied from interface:TensorReturns the element data type.- Specified by:
scalarTypein interfaceTensor- Returns:
- the element data type.
-
nrow
-
ncol
-
length
public long length()Description copied from interface:TensorReturns the number of tensor elements. For tensors with packed storage (e.g., BandMatrix, SparseMatrix, SymmMatrix), it returns the number of non-zero elements. -
get
-
set
-
add
-
sub
-
mul
-
div
-
scale
-
copy
-
transpose
-
mv
Description copied from interface:MatrixMatrix-vector multiplication.y = alpha * A * x + beta * y -
mv
Description copied from interface:MatrixMatrix-vector multiplicationA * x. -
tv
Description copied from interface:MatrixMatrix-vector multiplicationA' * x.
-