Modifier and Type | Method and Description |
---|---|
NDArray |
addColumnVector(NDArray columnVector)
Adds a column vector (copy).
|
NDArray |
addiColumnVector(NDArray columnVector)
Adds a column vector in place.
|
NDArray |
addiRowVector(NDArray rowVector)
Adds a row vector in place.
|
NDArray |
addRowVector(NDArray rowVector)
Adds a row vector (copy).
|
NDArray |
divColumnVector(NDArray columnVector)
Divides a column vector (copy).
|
NDArray |
diviColumnVector(NDArray columnVector)
Divides a column vector in place.
|
NDArray |
diviRowVector(NDArray rowVector)
Divides a row vector in place.
|
NDArray |
divRowVector(NDArray rowVector)
Divides a row vector (copy).
|
NDArray |
getColumn(long i)
Returns the specified column.
|
NDArray |
getColumns(int... columns)
Returns a new NDArray comprised of the specified columns only.
|
NDArray |
getRow(long i)
Returns the specified row.
|
NDArray |
getRows(int... rows)
Returns a new NDArray comprised of the specified rows only.
|
NDArray |
getScalar(long row,
long column)
Returns the element at the specified row/column.
|
NDArray |
mulColumnVector(NDArray columnVector)
Multiplies a column vector (copy).
|
NDArray |
muliColumnVector(NDArray columnVector)
Multiplies a column vector in place.
|
NDArray |
muliRowVector(NDArray rowVector)
Multiplies a row vector in place.
|
NDArray |
mulRowVector(NDArray rowVector)
Multiplies a row vector (copy).
|
NDArray |
put(int i,
int j,
java.lang.Number element)
Inserts the element at the specified index.
|
NDArray |
putColumn(int column,
NDArray toPut)
Inserts a column into this array.
|
NDArray |
putiColumnVector(NDArray columnVector)
Assigns a column vector in place.
|
NDArray |
putiRowVector(NDArray rowVector)
Assigns a row vector to each row of this array in place.
|
NDArray |
putRow(long row,
NDArray toPut)
Inserts a row into this matrix.
|
NDArray |
rdivColumnVector(NDArray columnVector)
Reverses the division of a column vector (copy).
|
NDArray |
rdiviColumnVector(NDArray columnVector)
Reverses the divison of a column vector in place.
|
NDArray |
rdiviRowVector(NDArray rowVector)
Reverses division of a column vector in place.
|
NDArray |
rdivRowVector(NDArray rowVector)
Reverses division of a column vector (copy).
|
NDArray |
reshape(char order,
int rows,
int columns)
Reshapes the NDArray (it can't change the length of the NDArray).
|
NDArray |
rsubColumnVector(NDArray columnVector)
Reverses subtraction of a column vector (copy).
|
NDArray |
rsubiColumnVector(NDArray columnVector)
Reverses subtraction of a column vector in place.
|
NDArray |
rsubiRowVector(NDArray rowVector)
Reverses subtraction of a row vector in place.
|
NDArray |
rsubRowVector(NDArray rowVector)
Reverses subtraction of a row vector (copy).
|
NDArray |
subColumnVector(NDArray columnVector)
Subtracts a column vector (copy).
|
NDArray |
subiColumnVector(NDArray columnVector)
Subtracts a column vector in place.
|
NDArray |
subiRowVector(NDArray rowVector)
Subtracts a row vector in place.
|
NDArray |
subRowVector(NDArray rowVector)
Subtracts a row vector (copy).
|
double[][] |
toDoubleMatrix()
Converts this NDArray to a 2d double matrix.
|
float[][] |
toFloatMatrix()
Converts this NDArray to a 2d float matrix.
|
int[][] |
toIntMatrix()
Converts this NDArray to a 2d int matrix.
|
long[][] |
toLongMatrix()
Converts this NDArray to a 2d long matrix.
|
abs, acos, acosh, add, add, addi, addi, all, allClose, allClose, any, argMax, argMax, argMin, argMin, argSort, argSort, argSort, asin, asInDevice, asinh, asMatrix, asType, atan, atanh, attach, attachGradient, booleanMask, booleanMask, broadcast, broadcast, cbrt, ceil, clip, close, concat, concat, contentEquals, contentEquals, copyTo, cos, cosh, countNonzero, countNonzero, createMask, createMask, cumSum, cumSum, detach, div, div, divi, divi, dot, duplicate, eq, eq, exp, expandDims, flatten, floor, get, get, get, get, getBoolean, getByte, getDataType, getDevice, getDouble, getFloat, getGradient, getInt, getLong, getManager, getName, getNDArrayInternal, getScalar, getShape, getSparseFormat, getUid, getUint8, gt, gt, gte, gte, isEmpty, isInfinite, isNaN, isScalar, isSparse, like, log, log10, log2, logicalAnd, logicalNot, logicalOr, logicalXor, lt, lt, lte, lte, max, max, max, maximum, maximum, mean, mean, mean, median, median, min, min, min, minimum, minimum, mod, mod, modi, modi, mul, mul, muli, muli, neg, negi, neq, neq, none, nonzero, onesLike, percentile, percentile, pow, pow, powi, powi, prod, prod, prod, repeat, repeat, repeat, repeat, reshape, reshape, round, set, set, set, set, set, set, set, set, setName, setScalar, shapeEquals, sin, sinh, size, size, slice, softmax, softmax, softmax, softmax, sort, sort, split, split, split, split, square, squeeze, squeeze, squeeze, stack, stack, sub, sub, subi, subi, sum, sum, sum, swapAxes, tan, tanh, tile, tile, tile, tile, toArray, toBooleanArray, toByteArray, toByteBuffer, toDegrees, toDense, toDoubleArray, toFloatArray, toIntArray, toLongArray, toRadians, toSparse, toUint8Array, trace, trace, trace, transpose, transpose, trunc, zerosLike
NDArray putRow(long row, NDArray toPut)
row
- the row to inserttoPut
- the array to insert intoNDArray putColumn(int column, NDArray toPut)
column
- the column to inserttoPut
- the array to insert intoNDArray getScalar(long row, long column)
row
- the row of the element to returncolumn
- the column of the element to returnNDArray diviColumnVector(NDArray columnVector)
columnVector
- the column vector used for divisionNDArray divColumnVector(NDArray columnVector)
columnVector
- the column vector used for divisionNDArray diviRowVector(NDArray rowVector)
rowVector
- the row vector used for divisionNDArray divRowVector(NDArray rowVector)
rowVector
- the row vector used for divisionNDArray rdiviColumnVector(NDArray columnVector)
columnVector
- the column vector used for divisionNDArray rdivColumnVector(NDArray columnVector)
columnVector
- the column vector used for divisionNDArray rdiviRowVector(NDArray rowVector)
rowVector
- the row vector used for divisionNDArray rdivRowVector(NDArray rowVector)
rowVector
- the row vector used for divisionNDArray muliColumnVector(NDArray columnVector)
columnVector
- the column vector used for multiplicationNDArray mulColumnVector(NDArray columnVector)
columnVector
- the column vector used for multiplicationNDArray muliRowVector(NDArray rowVector)
rowVector
- the row vector used for multiplicationNDArray mulRowVector(NDArray rowVector)
rowVector
- the row vector used for multiplicationNDArray rsubiColumnVector(NDArray columnVector)
columnVector
- the column vector to subtractNDArray rsubColumnVector(NDArray columnVector)
columnVector
- the column vector to subtractNDArray rsubiRowVector(NDArray rowVector)
rowVector
- the row vector to subtractNDArray rsubRowVector(NDArray rowVector)
rowVector
- the row vector to subtractNDArray subiColumnVector(NDArray columnVector)
columnVector
- the column vector to subtractNDArray subColumnVector(NDArray columnVector)
columnVector
- the column vector to subtractNDArray subiRowVector(NDArray rowVector)
rowVector
- the row vector to subtractNDArray subRowVector(NDArray rowVector)
rowVector
- the row vector to subtractNDArray addiColumnVector(NDArray columnVector)
columnVector
- the column vector to addNDArray putiColumnVector(NDArray columnVector)
columnVector
- the column vector to addNDArray addColumnVector(NDArray columnVector)
columnVector
- the column vector to addNDArray addiRowVector(NDArray rowVector)
rowVector
- the row vector to addNDArray putiRowVector(NDArray rowVector)
rowVector
- the row vector to assignNDArray addRowVector(NDArray rowVector)
rowVector
- the row vector to addNDArray getColumn(long i)
i
- the column to getScalarNDArray getRow(long i)
i
- the row to getScalarNDArray getColumns(int... columns)
columns
- the columns to extract out of the current arrayNDArray getRows(int... rows)
rows
- the rows to extract from this arrayNDArray put(int i, int j, java.lang.Number element)
i
- the row to insert intoj
- the column to insert intoelement
- a scalar NDArrayNDArray reshape(char order, int rows, int columns)
order
- the order of the new arrayrows
- the rows of the matrixcolumns
- the columns of the matrixdouble[][] toDoubleMatrix()
Note that THIS SHOULD NOT BE USED FOR SPEED. This is mainly used for integrations with other libraries. Due to the off heap nature, moving data on heap is very expensive and should not be used if possible.
float[][] toFloatMatrix()
Note that THIS SHOULD NOT BE USED FOR SPEED. This is mainly used for integrations with other libraries. Due to the off heap nature, moving data on to the heap is very expensive and should not be used if possible.
long[][] toLongMatrix()
Note that THIS SHOULD NOT BE USED FOR SPEED. This is mainly used for integrations with other libraries. Due to the off heap nature, moving data on to the heap is very expensive and should not be used if possible.
int[][] toIntMatrix()
Note that THIS SHOULD NOT BE USED FOR SPEED. This is mainly used for integrations with other libraries. Due to the off heap nature, moving data on to the heap is very expensive and should not be used if possible.