public class IdentityMatrix extends ADiagonalMatrix implements IFastRows, IFastColumns
dimensions
Modifier and Type | Method and Description |
---|---|
double |
calculateElement(int i,
AVector v) |
static IdentityMatrix |
create(int i) |
double |
determinant()
Calculates the determinant of the matrix.
|
double |
elementMax()
Returns the maximum element value in this array.
|
double |
elementMin()
Returns the maximum element value in this array.
|
double |
elementSum()
Returns the sum of all elements in the matrix
|
IdentityMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AxisVector |
getColumn(int column)
Returns a column of the matrix as a vector view
|
double |
getDiagonalValue(int i) |
AVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AxisVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
IdentityMatrix |
getTransposeView()
Returns a transposed view of the array.
|
ADiagonalMatrix |
innerProduct(ADiagonalMatrix a) |
AMatrix |
innerProduct(AMatrix a) |
Vector |
innerProduct(AVector v) |
Matrix |
innerProduct(Matrix a) |
AMatrix |
inverse() |
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isIdentity() |
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isOrthogonal() |
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
double |
trace() |
Vector |
transform(AVector source) |
void |
transform(AVector source,
AVector dest) |
Vector |
transform(Vector source) |
void |
transformInPlace(AArrayVector 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.
|
double |
unsafeGetDiagonalValue(int i) |
columnCount, copyColumnTo, copyRowTo, density, dimensions, getBand, getNonZeroBand, getTranspose, isDiagonal, isFullyMutable, isLowerTriangular, isRectangularDiagonal, isSquare, isSymmetric, isUpperTriangular, lowerBandwidthLimit, nonZeroBand, rowCount, toMatrix, toMatrixTranspose, transform, transposeInnerProduct, transposeInPlace, upperBandwidthLimit, validate
isZero
elementSquaredSum, fill, lowerBandwidth, upperBandwidth
abs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, clone, cloneColumn, cloneRow, compose, composeWith, copyTo, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, equalsTranspose, exp, get, get, get, getBandWrapped, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isHermitian, isInvertible, isPositiveDefinite, isSameShape, isSameShape, isView, iterator, join, log, mul, multiply, multiply, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, reciprocal, replaceColumn, replaceRow, reshape, reshape, rotateView, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMutableMatrix, toString, toVector, transposeInnerProduct, unsafeSet
scale, sparse
finalize, getClass, notify, notifyAll, wait, wait, wait
columnCount, isInvertible, isSquare, rowCount
abs, add, add, applyOp, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastLike, clamp, clone, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, equals, exp, fill, get, get, get, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, immutable, innerProduct, isElementConstrained, isFullyMutable, isSameShape, isView, isZero, join, log, multiply, multiply, mutable, negate, outerProduct, pow, reciprocal, reshape, rotateView, scale, scaleAdd, set, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sparse, sqrt, square, sub, sub, subArray, toArray, toDoubleArray, toDoubleBuffer, toVector, validate
public static IdentityMatrix create(int i)
public boolean isMutable()
INDArray
isMutable
in interface INDArray
isMutable
in class ADiagonalMatrix
public boolean isBoolean()
INDArray
isBoolean
in interface INDArray
isBoolean
in class ADiagonalMatrix
public double calculateElement(int i, AVector v)
calculateElement
in class ADiagonalMatrix
public double get(int row, int column)
AMatrix
public double unsafeGet(int row, int column)
AMatrix
public AxisVector getRow(int row)
AMatrix
getRow
in class ABandedMatrix
public AxisVector getColumn(int column)
AMatrix
public double getDiagonalValue(int i)
getDiagonalValue
in class ADiagonalMatrix
public double unsafeGetDiagonalValue(int i)
unsafeGetDiagonalValue
in class ADiagonalMatrix
public void set(int row, int column, double value)
AMatrix
public void transformInPlace(AVector v)
transformInPlace
in interface IMatrix
transformInPlace
in class ADiagonalMatrix
public void transformInPlace(AArrayVector v)
transformInPlace
in class ADiagonalMatrix
public AVector getLeadingDiagonal()
AMatrix
getLeadingDiagonal
in class ADiagonalMatrix
public boolean isIdentity()
isIdentity
in class ADiagonalMatrix
public boolean isOrthogonal()
isOrthogonal
in class AMatrix
public AMatrix inverse()
public double determinant()
AMatrix
determinant
in class ADiagonalMatrix
public long nonZeroCount()
INDArray
nonZeroCount
in interface INDArray
nonZeroCount
in class ASingleBandMatrix
public double elementSum()
AMatrix
elementSum
in interface INDArray
elementSum
in class ABandedMatrix
public double elementMin()
INDArray
elementMin
in interface INDArray
elementMin
in class ADiagonalMatrix
public double elementMax()
INDArray
elementMax
in interface INDArray
elementMax
in class ADiagonalMatrix
public double trace()
trace
in class ABandedMatrix
public ADiagonalMatrix innerProduct(ADiagonalMatrix a)
innerProduct
in class ADiagonalMatrix
public AMatrix innerProduct(AMatrix a)
innerProduct
in class ADiagonalMatrix
public Matrix innerProduct(Matrix a)
innerProduct
in class ADiagonalMatrix
public Vector innerProduct(AVector v)
innerProduct
in class AMatrix
public IdentityMatrix getTransposeView()
INDArray
getTransposeView
in interface INDArray
getTransposeView
in class ADiagonalMatrix
public IdentityMatrix exactClone()
INDArray
exactClone
in interface INDArray
exactClone
in class ADiagonalMatrix
Copyright © 2014. All Rights Reserved.