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 vector view of 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(AArrayVector v) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
double |
unsafeGet(int row,
int column)
Gets an element in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
calculateElement, columnCount, copyColumnTo, copyRowTo, density, determinant, dimensions, getBand, getDiagonalValue, getTranspose, getTransposeView, innerProduct, innerProduct, innerProduct, isBoolean, isDiagonal, isFullyMutable, isIdentity, isLowerTriangular, isRectangularDiagonal, isSquare, isSymmetric, isUpperTriangular, lowerBandwidthLimit, rowCount, set, toMatrix, toMatrixTranspose, transform, transposeInnerProduct, transposeInPlace, unsafeGetDiagonalValue, upperBandwidthLimit, validateelementSquaredSum, fill, getRow, lowerBandwidth, upperBandwidthabs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exp, get, get, get, getBandWrapped, getColumn, getElements, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isOrthogonal, isPositiveDefinite, isSameShape, isSameShape, isView, isZero, iterator, log, mul, multiply, multiplyRow, negate, outerProduct, outputDimensions, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMutableMatrix, toString, toVector, transform, transform, transform, transposeInnerProduct, unsafeSetgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class ABandedMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class ABandedMatrixpublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic double get(int row,
int column)
AMatrixpublic double unsafeGet(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(AArrayVector v)
transformInPlace in class ADiagonalMatrixpublic ScalarMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.