public class StridedMatrix extends ArrayMatrix
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 |
columnCount()
Returns the number of columns in the matrix
|
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
|
AVector |
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
|
AVector |
getRow(int i)
Returns a row of the matrix as a vector view
|
StridedMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
boolean |
isPackedArray() |
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
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) |
abs, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, asElementList, broadcast, calculateElement, clamp, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, copyTo, determinant, dimensionality, elementCount, elementIterator, elementMul, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exp, fill, get, get, get, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSquare, isSymmetric, isUpperTriangular, isView, isZeroMatrix, iterator, log, mul, multiply, multiply, multiplyRow, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toDoubleBuffer, toMatrix, toMutableMatrix, toString, toVector, trace, transform, transformInPlace, transformInPlace, transposeInPlacegetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic static StridedMatrix create(int rowCount, int columnCount)
public int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic AVector getRow(int i)
AMatrixpublic AVector getColumn(int i)
AMatrixpublic boolean isPackedArray()
isPackedArray in class ArrayMatrixpublic void applyOp(Op op)
INDArraypublic void getElements(double[] dest,
int destOffset)
INDArraygetElements in interface INDArraygetElements in class AMatrixpublic StridedMatrix getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic double get(int row,
int column)
AMatrixpublic AVector asVector()
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic 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()
INDArrayCopyright © 2013. All Rights Reserved.