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) |
double |
elementSum()
Returns the sum of all elements in the matrix
|
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)
Multiplies all elements of the array by a given double value
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
double |
trace() |
void |
transformInPlace(ArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
calculateElement, columnCount, density, determinant, dimensions, getDiagonalValue, innerProduct, innerProduct, isDiagonal, isFullyMutable, isIdentity, isLowerTriangular, isSquare, isSymmetric, isUpperTriangular, rowCount, set, transposeInPlace, validateadd, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asVector, broadcast, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, elementCount, elementMul, elementSquaredSum, epsilonEquals, equals, equals, equals, equals, get, get, get, getColumn, getElements, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isPositiveDefinite, isView, isZeroMatrix, iterator, mul, multiply, multiplyRow, negate, outerProduct, outputDimensions, reshape, scale, scaleAdd, set, set, set, set, set, set, setElements, setElements, slice, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toDoubleBuffer, toMutableMatrix, toString, toVector, transformgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic 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)
INDArraypublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ADiagonalMatrixpublic void transformInPlace(ArrayVector v)
transformInPlace in class ADiagonalMatrixpublic ScalarMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.