public final class StridedMatrix extends AStridedMatrix
cols, data, rows| Modifier and Type | Method and Description |
|---|---|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
AVector |
asVector()
Returns the matrix values as a single reference Vector in the form [row0
row1 row2....]
|
Matrix |
clone()
Clones the transform, performing a deep copy where needed
|
int |
columnStride() |
void |
copyColumnTo(int col,
double[] dest,
int destOffset) |
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
static StridedMatrix |
create(AMatrix m) |
static StridedMatrix |
create(int rowCount,
int columnCount) |
AMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
int |
getArrayOffset() |
AStridedVector |
getColumn(int i)
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
|
AStridedVector |
getRow(int i)
Returns a row of the matrix as a vector view
|
AMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
getTransposeView()
Returns a transposed view of the array.
|
protected int |
index(int row,
int col)
Computes the index into the data array for a given position in the matrix
|
boolean |
isPackedArray()
Returns true if the data array is fully packed by this matrix in row-major order
|
int |
rowStride() |
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
AStridedMatrix |
subMatrix(int rowStart,
int rowCount,
int colStart,
int colCount) |
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.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static StridedMatrix |
wrap(double[] data,
int rows,
int columns,
int offset,
int rowStride,
int columnStride) |
static StridedMatrix |
wrap(Matrix m) |
asDoubleArray, getStride, getStridescolumnCount, getArray, rowCountabs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, asElementList, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, calculateElement, clamp, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, determinant, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exp, fill, get, get, get, getBand, getBandWrapped, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSquare, isSymmetric, isUpperTriangular, isView, isZero, iterator, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiplyRow, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transform, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimitgetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitgetArray, getShapeabs, add, add, applyOp, asElementList, broadcast, broadcastCloneLike, broadcastLike, clamp, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, exp, fill, get, get, get, getLongShape, getShape, getSlices, getSliceViews, getTransposeCopy, innerProduct, isBoolean, isElementConstrained, isFullyMutable, isMutable, isSameShape, isView, isZero, log, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sqrt, square, sub, sub, toArray, toDoubleArray, toDoubleBuffer, toVectorpublic static StridedMatrix create(int rowCount, int columnCount)
public AStridedVector getRow(int i)
AMatrixgetRow in class AStridedMatrixpublic AStridedVector getColumn(int i)
AMatrixgetColumn in class AStridedMatrixpublic void copyRowTo(int row,
double[] dest,
int destOffset)
copyRowTo in class AStridedMatrixpublic void copyColumnTo(int col,
double[] dest,
int destOffset)
copyColumnTo in class AStridedMatrixpublic int rowStride()
rowStride in class AStridedMatrixpublic int columnStride()
columnStride in class AStridedMatrixpublic int getArrayOffset()
getArrayOffset in interface IStridedArraygetArrayOffset in class AStridedMatrixpublic boolean isPackedArray()
AArrayMatrixisPackedArray in interface IStridedArrayisPackedArray in class AStridedMatrixpublic AStridedMatrix subMatrix(int rowStart, int rowCount, int colStart, int colCount)
subMatrix in class AStridedMatrixpublic void applyOp(Op op)
INDArraypublic void getElements(double[] dest,
int destOffset)
INDArraygetElements in interface INDArraygetElements in class AMatrixpublic AMatrix getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic AMatrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in class AStridedMatrixpublic double get(int row,
int column)
AMatrixpublic double unsafeGet(int row,
int column)
AMatrixunsafeGet in class AArrayMatrixpublic AVector asVector()
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic void unsafeSet(int row,
int column,
double value)
AMatrixunsafeSet in class AArrayMatrixpublic AMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic static StridedMatrix create(AMatrix m)
public static StridedMatrix wrap(Matrix m)
public static StridedMatrix wrap(double[] data, int rows, int columns, int offset, int rowStride, int columnStride)
public void validate()
INDArrayprotected final int index(int row,
int col)
AArrayMatrixindex in class AArrayMatrixCopyright © 2013. All Rights Reserved.