public class TransposedMatrix extends AMatrix
Modifier and Type | Method and Description |
---|---|
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)
|
int |
columnCount()
Returns the number of columns in the matrix
|
void |
copyColumnTo(int col,
double[] dest,
int destOffset) |
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
double |
determinant()
Calculates the determinant of the matrix.
|
long |
elementCount()
Returns the total number of elements in 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 the matrix
|
TransposedMatrix |
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 |
getColumn(int column)
Returns a column of the matrix as a vector view
|
void |
getElements(double[] dest,
int destOffset)
Gets all elements of the array, copying them into a double array
|
AVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
AVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
AMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
Matrix |
getTransposeCopy()
Returns a transposed copy of the array.
|
AMatrix |
getTransposeView()
Returns a transposed view of the array.
|
AMatrix |
innerProduct(AMatrix s) |
Matrix |
innerProduct(Matrix s) |
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 |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isUpperTriangular()
Returns true if a matrix is upper triangular
|
boolean |
isView()
Return true if this array is a view type
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
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.
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(double value)
Sets all elements of an array to a specific double value
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
int |
sliceCount()
returns the number of major slices in this array.
|
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.
|
AMatrix |
transposeInnerProduct(AMatrix s) |
Matrix |
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.
|
static AMatrix |
wrap(AMatrix m) |
abs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, calculateElement, clamp, clone, cloneColumn, cloneRow, compose, composeWith, copyTo, dimensionality, divide, divide, elementDiv, elementIterator, elementMul, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, equalsTranspose, exp, fill, get, get, get, getBand, getBandWrapped, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSquare, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, reciprocal, replaceColumn, replaceRow, reshape, reshape, rotateView, scaleAdd, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sqrt, square, sub, sub, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMutableMatrix, toString, toVector, trace, transform, transform, transform, transform, transformInPlace, transformInPlace, transposeInPlace, upperBandwidth, upperBandwidthLimit, validate
density, scale, sparse
protected final AMatrix source
public int rowCount()
AMatrix
public int columnCount()
AMatrix
columnCount
in interface IMatrix
public boolean isFullyMutable()
INDArray
isFullyMutable
in interface INDArray
isFullyMutable
in class AMatrix
public boolean isMutable()
INDArray
public double get(int row, int column)
AMatrix
public void set(int row, int column, double value)
AMatrix
public double unsafeGet(int row, int column)
AMatrix
public void unsafeSet(int row, int column, double value)
AMatrix
public AVector getRow(int row)
AMatrix
public int sliceCount()
INDArray
sliceCount
in interface INDArray
sliceCount
in class AMatrix
public Matrix toMatrixTranspose()
AMatrix
toMatrixTranspose
in class AMatrix
public Matrix toMatrix()
AMatrix
public AVector getColumn(int column)
AMatrix
public void copyRowTo(int row, double[] dest, int destOffset)
public void copyColumnTo(int col, double[] dest, int destOffset)
copyColumnTo
in class AMatrix
public void getElements(double[] dest, int destOffset)
INDArray
getElements
in interface INDArray
getElements
in class AMatrix
public double determinant()
AMatrix
determinant
in class AMatrix
public boolean isSymmetric()
AMatrix
isSymmetric
in class AMatrix
public boolean isZero()
AMatrix
public boolean isUpperTriangular()
AMatrix
isUpperTriangular
in class AMatrix
public boolean isLowerTriangular()
AMatrix
isLowerTriangular
in class AMatrix
public AMatrix getTranspose()
AMatrix
getTranspose
in interface INDArray
getTranspose
in class AMatrix
public AMatrix getTransposeView()
INDArray
getTransposeView
in interface INDArray
getTransposeView
in class AMatrix
public Matrix getTransposeCopy()
INDArray
getTransposeCopy
in interface INDArray
getTransposeCopy
in class AMatrix
public AMatrix transposeInnerProduct(AMatrix s)
transposeInnerProduct
in class AMatrix
public Matrix transposeInnerProduct(Matrix s)
transposeInnerProduct
in class AMatrix
public AMatrix innerProduct(AMatrix s)
innerProduct
in class AMatrix
public Matrix innerProduct(Matrix s)
innerProduct
in class AMatrix
public TransposedMatrix exactClone()
INDArray
exactClone
in interface INDArray
exactClone
in class AMatrix
public boolean isView()
INDArray
public void applyOp(Op op)
INDArray
public void applyOp(IOperator op)
INDArray
public void multiply(double factor)
INDArray
public void set(double value)
INDArray
public AVector getLeadingDiagonal()
AMatrix
getLeadingDiagonal
in class AMatrix
public long elementCount()
INDArray
elementCount
in interface INDArray
elementCount
in class AMatrix
public double elementSum()
AMatrix
elementSum
in interface INDArray
elementSum
in class AMatrix
public double elementMin()
INDArray
elementMin
in interface INDArray
elementMin
in class AbstractArray<AVector>
public double elementMax()
INDArray
elementMax
in interface INDArray
elementMax
in class AbstractArray<AVector>
public long nonZeroCount()
INDArray
nonZeroCount
in interface INDArray
nonZeroCount
in class AMatrix
Copyright © 2014. All Rights Reserved.