public class ScalarMatrix extends ADiagonalMatrix
dimensions| Constructor and Description |
|---|
ScalarMatrix(int dimensions,
double scale) |
| Modifier and Type | Method and Description |
|---|---|
static ScalarMatrix |
create(int dimensions,
double scale) |
double |
diagonalProduct()
Computes the product of entries on the main diagonal of a matrix
|
double |
elementSum()
Returns the sum of all elements in this matrix
|
ScalarMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get(int row,
int column)
Returns the double value at the specified position in a 2D matrix
|
RepeatedElementVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AMatrix |
innerProduct(AMatrix m)
Computes the inner product of this matrix with another.
|
boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
AMatrix |
multiplyCopy(double d)
Returns a copy of the array with all elements multiplied by a single constant value
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
double |
trace()
Computes the trace of a matrix, i.e.
|
void |
transformInPlace(ADenseArrayVector v) |
void |
transformInPlace(AVector v) |
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.
|
addCopy, addToArray, checkIndex, checkSameShape, checkSameShape, checkSquare, clone, columnCount, copyColumnTo, copyRowTo, density, determinant, dimensions, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementSquaredSum, equalsTranspose, getBand, getColumn, getDiagonalValue, getNonZeroBand, getRow, getTranspose, getTransposeView, hasUncountable, innerProduct, isBoolean, isDiagonal, isIdentity, isLowerTriangular, isRectangularDiagonal, isSameShape, isSameShape, isSquare, isSymmetric, isUpperTriangular, isZero, lowerBandwidthLimit, nonZeroBand, rank, rowCount, rowDotProduct, set, toDoubleArray, toMatrix, toMatrixTranspose, transform, transposeInnerProduct, transposeInPlace, unsafeGetDiagonalValue, upperBandwidthLimit, validateisSparse, subMatrixfill, getRowView, lowerBandwidth, multiply, upperBandwidthabs, add, add, add, add, add2, addAt, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, applyOp, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumn, checkColumnCount, checkDimension, checkRow, checkRowCount, checkShape, clamp, composeWith, copy, dense, denseClone, dimensionality, divide, divide, divide, divide, elementCount, elementIterator, elementsEqual, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, exp, get, get, get, getBandWrapped, getColumnClone, getColumns, getColumnView, getElements, getLongShape, getRowClone, getRows, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isHermitian, isInvertible, isOrthogonal, isOrthogonal, isPositiveDefinite, isSameShape, isView, iterator, join, log, mul, multiply, multiply, multiply, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, reciprocal, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sparse, sparseClone, sqrt, square, sub, sub, sub, subArray, swapColumns, swapRows, toAffineTransform, toArray, toDoubleBuffer, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, transform, transposeInnerProduct, unsafeSetabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, componentCount, divideCopy, elementProduct, equals, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, sub, subCopy, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabsCopy, addAt, addPower, addPower, broadcastLike, checkMutable, componentCount, divideCopy, elementProduct, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class ADiagonalMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class ADiagonalMatrixpublic boolean isMutable()
INDArrayisMutable in interface INDArrayisMutable in class ADiagonalMatrixpublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class ADiagonalMatrixpublic AMatrix innerProduct(AMatrix m)
IMatrixinnerProduct in interface IMatrixinnerProduct in class ADiagonalMatrixpublic double get(int row,
int column)
INDArraypublic double unsafeGet(int row,
int column)
AMatrixpublic RepeatedElementVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class ADiagonalMatrixpublic static ScalarMatrix create(int dimensions, double scale)
public double trace()
IMatrixtrace in interface IMatrixtrace in class ADiagonalMatrixpublic double diagonalProduct()
AMatrixdiagonalProduct in interface IMatrixdiagonalProduct in class ADiagonalMatrixpublic AMatrix multiplyCopy(double d)
INDArraymultiplyCopy in interface INDArraymultiplyCopy in class AMatrixd - A scalar factorpublic void transformInPlace(AVector v)
transformInPlace in interface IMatrixtransformInPlace in class ADiagonalMatrixpublic void transformInPlace(ADenseArrayVector v)
transformInPlace in class ADiagonalMatrixpublic ScalarMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class ADiagonalMatrixCopyright © 2016. All rights reserved.