public class TransposedMatrix extends ARectangularMatrix
| Modifier and Type | Field and Description |
|---|---|
protected AMatrix |
source |
cols, rows| 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.
|
void |
copyColumnTo(int col,
double[] dest,
int destOffset)
Copies the elements in a selected row of this matrix to a double array
|
void |
copyRowTo(int row,
double[] dest,
int destOffset)
Copies the elements in a slected row of this matrix to a double array
|
double |
determinant()
Calculates the determinant of the matrix.
|
double |
diagonalProduct()
Computes the product of entries on the main diagonal of a 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 this matrix
|
boolean |
equals(AMatrix m)
Returns true if this matrix is exactly equal to another matrix
|
boolean |
equalsTranspose(AMatrix a)
Tests if this matrix is exactly equal to the transpose of another matrix
|
TransposedMatrix |
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 |
getBand(int i)
Gets a specific band of the matrix, as a view vector.
|
AVector |
getColumn(int column)
Returns a column of the matrix.
|
AVector |
getColumnClone(int column)
Returns a column of the matrix as a new cloned, mutable vector
The cloned column may be modified without affecting the original matrix.
|
List<AVector> |
getColumns()
Gets a List of columns of a matrix.
|
AVector |
getColumnView(int column)
Returns a column of the matrix as a vector view.
|
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();
|
void |
getElements(double[] dest,
int destOffset)
Gets all elements of the array, copying them into a double array at the specified offset
|
AVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AVector |
getRow(int row)
Returns a row of the matrix.
|
AVector |
getRowClone(int row)
Returns a row of the matrix as a new cloned, mutable vector.
|
List<AVector> |
getRows()
Gets a List of rows of a matrix.
|
AVector |
getRowView(int row)
Returns a row of the matrix as a vector view.
|
AMatrix |
getTranspose()
Returns the transpose of this array.
|
AMatrix |
getTransposeCopy()
Gets a mutable transposed clone of the matrix
|
AMatrix |
getTransposeView()
Returns a transposed view of the array.
|
AMatrix |
innerProduct(AMatrix s)
Computes the inner product of this matrix with another.
|
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 |
isLowerTriangular()
Returns true if a matrix is lower triangular.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isSparse()
Returns true if the array is in a sparse format
|
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isUpperTriangular()
Returns true if a matrix is upper triangular
An upper triangular matrix is defined as having all elements equal to 0.0 where i > j
|
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
|
int |
lowerBandwidth()
Computes the lower bandwidth of a matrix, i.e.
|
int |
lowerBandwidthLimit()
A limit on the lower bandwidth of the banded matrix.
|
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)
|
int |
sliceCount()
Returns the number of major slices in this array (i.e.
|
AMatrix |
sparseClone()
Creates a fully mutable clone of this array.
|
void |
sqrt()
Computes the square root of all elements in the array
|
void |
square()
Squares all elements of the array in place
|
Matrix |
toMatrix()
Coerces the matrix to the standard mutable Matrix type
in row major order.
|
Matrix |
toMatrixTranspose()
Coerces the transpose of a matrix to the standard mutable Matrix type
in row major order.
|
double |
trace()
Computes the trace of a matrix, i.e.
|
AMatrix |
transposeInnerProduct(AMatrix s) |
AMatrix |
transposeInnerProduct(Matrix s) |
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.
|
int |
upperBandwidth()
Computes the upper bandwidth of a matrix, i.e.
|
int |
upperBandwidthLimit()
A limit on the upper bandwidth of the banded matrix.
|
static AMatrix |
wrap(AMatrix m) |
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, dense, denseClone, dimensionality, divide, divide, divide, divide, elementIterator, elementsEqual, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equalsArray, equalsByRows, get, get, get, getBandWrapped, getLongShape, getSlices, getSlices, getSliceViews, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, iterator, join, 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, sparse, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, transform, transform, transformInPlace, transformInPlace, transposeInPlace, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, density, divideCopy, elementAbsPowSum, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, 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, divideCopy, elementAbsPowSum, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getElements, getElements, getElements, isDense, 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 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 getRow(int row)
IMatrixpublic AVector getColumn(int column)
IMatrixpublic AVector getRowClone(int row)
IMatrixgetRowClone in interface IMatrixgetRowClone in class AMatrixpublic AVector getColumnClone(int column)
IMatrixgetColumnClone in interface IMatrixgetColumnClone in class AMatrixpublic AVector getRowView(int row)
IMatrixgetRowView in interface IMatrixgetRowView in class AMatrixpublic AVector getColumnView(int column)
IMatrixgetColumnView in interface IMatrixgetColumnView in class AMatrixpublic List<AVector> getRows()
IMatrixpublic List<AVector> getColumns()
IMatrixgetColumns in interface IMatrixgetColumns in class AMatrixpublic int sliceCount()
INDArraysliceCount in interface INDArraysliceCount in class AMatrixpublic double trace()
IMatrixpublic double diagonalProduct()
AMatrixdiagonalProduct in interface IMatrixdiagonalProduct in class AMatrixpublic Matrix toMatrixTranspose()
AMatrixtoMatrixTranspose in class AMatrixpublic Matrix toMatrix()
AMatrixpublic void copyRowTo(int row,
double[] dest,
int destOffset)
AMatrixpublic void copyColumnTo(int col,
double[] dest,
int destOffset)
AMatrixcopyColumnTo in class AMatrixdest - Destination double[] arraypublic void getElements(double[] dest,
int destOffset)
INDArraygetElements in interface INDArraygetElements in class AMatrixpublic double determinant()
AMatrixdeterminant in class AMatrixpublic boolean isSymmetric()
AMatrixisSymmetric in interface IMatrixisSymmetric in class AMatrixpublic boolean isSparse()
INDArrayisSparse in interface INDArrayisSparse in class AbstractArray<AVector>public boolean isZero()
AMatrixpublic boolean isUpperTriangular()
AMatrixisUpperTriangular in class AMatrixpublic int lowerBandwidthLimit()
AMatrixlowerBandwidthLimit in class AMatrixpublic int lowerBandwidth()
AMatrixlowerBandwidth in class AMatrixpublic int upperBandwidthLimit()
AMatrixupperBandwidthLimit in class AMatrixpublic int upperBandwidth()
AMatrixupperBandwidth in class AMatrixpublic AVector getBand(int i)
AMatrixpublic boolean isLowerTriangular()
AMatrixisLowerTriangular in class AMatrixpublic AMatrix getTranspose()
INDArraygetTranspose in interface INDArraygetTranspose in interface IMatrixgetTranspose in class AMatrixpublic AMatrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in interface IMatrixgetTransposeView in class AMatrixpublic AMatrix getTransposeCopy()
AMatrixgetTransposeCopy in interface INDArraygetTransposeCopy in class AMatrixpublic AMatrix transposeInnerProduct(AMatrix s)
transposeInnerProduct in class AMatrixpublic AMatrix transposeInnerProduct(Matrix s)
transposeInnerProduct in class AMatrixpublic AMatrix innerProduct(AMatrix s)
IMatrixinnerProduct in interface IMatrixinnerProduct in class AMatrixpublic AMatrix sparseClone()
INDArraysparseClone in interface INDArraysparseClone in class AMatrixpublic TransposedMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic boolean equals(AMatrix m)
AMatrixpublic boolean equalsTranspose(AMatrix a)
AMatrixequalsTranspose 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.