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
|
AVector |
getLeadingDiagonal()
Returns a new vector that contains the leading diagonal values of the matrix
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
void |
multiply(double 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, addRowMultiple, 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, getElements, getLongShape, getMatrixComponent, getRow, getShape, getSlices, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isInvertible, isView, isZeroMatrix, iterator, mul, multiplyRow, outerProduct, outputDimensions, reshape, scale, set, set, set, set, set, set, setElements, setElements, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, toVector, transform, validategetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic double get(int row,
int column)
AMatrixpublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic static AMatrix create(int dimensions, double scale)
public void multiply(double factor)
public void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic ScalarMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.