public class PermutedMatrix extends ARectangularMatrix
| Modifier and Type | Field and Description |
|---|---|
protected AMatrix |
source |
cols, rows| Constructor and Description |
|---|
PermutedMatrix(AMatrix source,
Index rowPermutations) |
PermutedMatrix(AMatrix source,
Index rowPermutations,
Index columnPermutations) |
| Modifier and Type | Method and Description |
|---|---|
void |
abs()
Replaces all elements of this array with their absolute values, according to Math.abs(double)
|
void |
applyOp(IOperator op)
Applies a unary operator to all elements of the array (in-place)
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
void |
applyOp(Op2 op,
double b)
Applies a binary operator to this array and a double value.
|
int |
componentCount()
Returns the number of components of this array.
|
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 this matrix
|
PermutedMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
void |
exp()
Computes the function e^x (in-place) for all array elements
|
void |
fill(double value)
Fills this array with a single double value.
|
double |
get(int row,
int column)
Returns the double value at the specified position in a 2D matrix
|
AVector |
getColumnView(int column)
Returns a column of the permuted matrix as a vector reference
|
INDArray |
getComponent(int k)
Gets a component from the array at the specified index
Will throw an error if components are not supported, or if the component is out of bounds as defined by 0 <= k |
INDArray[] |
getComponents()
Gets all components in a new array, with length componentCount();
|
AVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AVector |
getRowView(int row)
Returns a row of the permuted matrix as a vector reference
|
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
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)
|
boolean |
isView()
Return true if this array is considered as a view type.
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
void |
log()
Computes the natural logarithm (in-place) for all array elements
|
void |
multiply(double factor)
Multiplies all elements of the array in place by a given double value
|
void |
negate()
Negates all elements in the array in place
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
void |
reciprocal()
Replaces all elements in the array with their reciprocal
|
void |
set(int row,
int column,
double value)
Sets a value at a given position in a mutable 2D array
|
void |
signum()
Calculates the signum of all elements of this mutable array
Sets each component of the array to its sign value (-1, 0 or 1)
|
void |
sqrt()
Computes the square root of all elements in the array
|
void |
square()
Squares all elements of the array in place
|
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.
|
void |
unsafeSet(int row,
int column,
double value)
Sets an element value in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
bandLength, checkColumn, checkIndex, checkRow, checkSameShape, checkSameShape, checkSquare, columnCount, elementCount, getShape, getShape, getShapeClone, isSameShape, isSameShape, isSameShape, isSquare, rowCountadd, add, add, add, add2, addAt, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, addToArray, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumnCount, checkDimension, checkRowCount, checkShape, clamp, clone, composeWith, copy, copyColumnTo, copyRowTo, dense, denseClone, determinant, diagonalProduct, dimensionality, divide, divide, divide, divide, elementIterator, elementsEqual, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, get, get, get, getBand, getBandWrapped, getColumn, getColumnClone, getColumns, getElements, getLongShape, getRow, getRowClone, getRows, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSymmetric, isUpperTriangular, iterator, join, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, outerProduct, outputDimensions, pow, rank, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, rowDotProduct, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, slice, slice, sliceCount, sparse, sparseClone, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, trace, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, density, divideCopy, elementAbsPowSum, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, getElements, getElements, getElements, isDense, isSparse, 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, divideCopy, elementAbsPowSum, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorprotected final AMatrix source
public boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic boolean isMutable()
INDArraypublic boolean isZero()
AMatrixpublic double get(int row,
int column)
INDArraypublic void set(int row,
int column,
double value)
INDArraypublic double unsafeGet(int row,
int column)
AMatrixpublic void unsafeSet(int row,
int column,
double value)
AMatrixpublic AVector getRowView(int row)
getRowView in interface IMatrixgetRowView in class AMatrixpublic AVector getColumnView(int column)
getColumnView in interface IMatrixgetColumnView in class AMatrixpublic PermutedMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic boolean isView()
INDArraypublic boolean isBoolean()
INDArraypublic int componentCount()
INDArraycomponentCount in interface INDArraycomponentCount in class AbstractArray<AVector>public INDArray getComponent(int k)
INDArraygetComponent in interface INDArraygetComponent in class AbstractArray<AVector>public INDArray[] getComponents()
INDArraygetComponents in interface INDArraygetComponents in class AbstractArray<AVector>public void applyOp(Op op)
INDArraypublic void applyOp(IOperator op)
INDArraypublic void applyOp(Op2 op, double b)
INDArraypublic void multiply(double factor)
INDArraypublic void fill(double value)
INDArraypublic AVector getLeadingDiagonal()
AMatrixgetLeadingDiagonal in class AMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic double elementMin()
INDArrayelementMin in interface INDArrayelementMin in class AbstractArray<AVector>public double elementMax()
INDArrayelementMax in interface INDArrayelementMax in class AbstractArray<AVector>public long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic void abs()
INDArraypublic void square()
INDArraypublic void sqrt()
INDArraypublic void signum()
INDArraypublic void negate()
INDArraypublic void log()
INDArraypublic void exp()
INDArraypublic void reciprocal()
INDArrayreciprocal in interface INDArrayreciprocal in class AMatrixCopyright © 2016. All rights reserved.