public class ScalarMatrix extends ADiagonalMatrix
dimensions| Constructor and Description |
|---|
ScalarMatrix(int dimensions,
double scale) |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
create(int dimensions,
double scale) |
ScalarMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
void |
scale(double factor)
Scales a matrix by a constant scalar factor.
|
double |
trace() |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
calculateElement, columnCount, density, determinant, dimensions, getDiagonalValue, innerProduct, innerProduct, isFullyMutable, isIdentity, isSquare, rowCount, set, transposeInPlaceadd, add, add, add, addAt, addMultiple, applyOp, applyOp, asVector, broadcast, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementCount, elementMul, elementSum, epsilonEquals, equals, equals, equals, equals, get, get, get, getColumn, getLeadingDiagonal, getMatrixComponent, getRow, getShape, getSlices, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isInvertible, isView, isZeroMatrix, iterator, mul, outerProduct, outputDimensions, reshape, set, set, set, set, set, set, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic double get(int row,
int column)
AMatrixpublic static AMatrix create(int dimensions, double scale)
public void scale(double factor)
AMatrixpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic ScalarMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.