public interface NDArrayFactory
Modifier and Type | Method and Description |
---|---|
INDArray |
appendBias(INDArray... vectors) |
INDArray |
arange(double begin,
double end)
Array of evenly spaced values.
|
INDArray |
average(Collection<INDArray> arrays)
This method averages input arrays, and returns averaged array
|
INDArray |
average(INDArray[] arrays)
This method averages input arrays, and returns averaged array
|
INDArray |
average(INDArray target,
Collection<INDArray> arrays)
This method averages input arrays, and returns averaged array
|
INDArray |
average(INDArray target,
INDArray[] arrays)
This method averages input arrays, and returns averaged array
|
INDArray |
bilinearProducts(INDArray curr,
INDArray in)
Returns a column vector where each entry is the nth bilinear
product of the nth slices of the two tensors.
|
IComplexNDArray |
complexFlatten(IComplexNDArray[] flatten) |
IComplexNDArray |
complexFlatten(List<IComplexNDArray> flatten) |
IComplexNDArray |
complexOnes(int columns)
Creates an ndarray
|
IComplexNDArray |
complexOnes(int[] shape)
Create an ndarray of ones
|
IComplexNDArray |
complexOnes(int rows,
int columns)
Creates an ndarray
|
IComplexNDArray |
complexScalar(Number value)
Create a scalar ndarray with the specified offset
|
IComplexNDArray |
complexScalar(Number value,
int offset)
Create a scalar ndarray with the specified offset
|
IComplexNDArray |
complexValueOf(int[] shape,
double value)
Creates an shape ndarray with the specified value
|
IComplexNDArray |
complexValueOf(int[] shape,
IComplexNumber value)
Creates an shape ndarray with the specified value
|
IComplexNDArray |
complexValueOf(int num,
double value)
Creates an 1 x num ndarray with the specified value
|
IComplexNDArray |
complexValueOf(int num,
IComplexNumber value)
Creates an 1 x num ndarray with the specified value
|
IComplexNDArray |
complexZeros(int columns)
Creates an ndarray
|
IComplexNDArray |
complexZeros(int[] shape)
Create an ndarray of ones
|
IComplexNDArray |
complexZeros(int rows,
int columns)
Creates a matrix of zeros
|
IComplexNDArray |
concat(int dimension,
IComplexNDArray... toConcat)
Concatneate ndarrays along a dimension
|
INDArray |
concat(int dimension,
INDArray... toConcat)
Concatneate ndarrays along a dimension
|
void |
copy(INDArray a,
INDArray b)
Copy a to b
|
INDArray |
create(DataBuffer data)
Creates a row vector with the data
|
INDArray |
create(DataBuffer data,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
create(DataBuffer buffer,
int[] shape,
int offset) |
INDArray |
create(DataBuffer buffer,
int[] shape,
int[] stride,
char order,
int offset) |
INDArray |
create(DataBuffer data,
int[] shape,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(DataBuffer data,
int[] newShape,
int[] newStride,
int offset,
char ordering) |
INDArray |
create(DataBuffer data,
int rows,
int columns,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(double[] data)
Creates a row vector with the data
|
INDArray |
create(double[][] data)
Create an ndarray with the given data layout
|
INDArray |
create(double[][] data,
char ordering) |
INDArray |
create(double[] data,
char order) |
INDArray |
create(double[] data,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
create(double[] data,
int[] shape,
char ordering) |
INDArray |
create(double[] data,
int[] shape,
int offset) |
INDArray |
create(double[] data,
int[] shape,
int[] stride,
char order,
int offset) |
INDArray |
create(double[] data,
int[] shape,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(double[] data,
int[] shape,
int[] stride,
int offset,
char ordering) |
INDArray |
create(double[] data,
int rows,
int columns,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(float[] data)
Creates a row vector with the data
|
INDArray |
create(float[][] floats) |
INDArray |
create(float[][] data,
char ordering) |
INDArray |
create(float[] data,
char order) |
INDArray |
create(float[] data,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
create(float[] data,
int[] shape,
char ordering) |
INDArray |
create(float[] data,
int[] shape,
int offset) |
INDArray |
create(float[] data,
int[] shape,
int[] stride,
char order,
int offset) |
INDArray |
create(float[] data,
int[] shape,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(float[] data,
int[] shape,
int[] stride,
int offset,
char ordering) |
INDArray |
create(float[] data,
int[] shape,
int offset,
Character order) |
INDArray |
create(float[] data,
int rows,
int columns,
int[] stride,
int offset) |
INDArray |
create(float[] data,
int rows,
int columns,
int[] stride,
int offset,
char ordering) |
INDArray |
create(int columns)
Creates a row vector with the specified number of columns
|
INDArray |
create(int[] shape)
Creates an ndarray with the specified shape
|
INDArray |
create(int[] shape,
char ordering) |
INDArray |
create(int[] shape,
DataBuffer.Type dataType) |
INDArray |
create(int[] shape,
DataBuffer buffer)
Create an ndarray with the given shape
and data
|
INDArray |
create(int[] shape,
int[] stride)
Creates an ndarray with the specified shape
|
INDArray |
create(int[] shape,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(int[] shape,
int[] ints1,
int[] stride,
char order,
int offset) |
INDArray |
create(int[] ints,
int[] ints1,
int[] stride,
int offset) |
INDArray |
create(int[] shape,
int[] stride,
int offset,
char ordering) |
INDArray |
create(int rows,
int columns)
Creates an ndarray with the specified shape
|
INDArray |
create(int rows,
int columns,
char ordering) |
INDArray |
create(int rows,
int columns,
int[] stride)
Creates an ndarray with the specified shape
|
INDArray |
create(int rows,
int columns,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
INDArray |
create(List<INDArray> list,
int[] shape)
Creates an ndarray with the specified shape
|
INDArray |
create(List<INDArray> list,
int[] shape,
char ordering) |
IComplexNDArray |
createComplex(DataBuffer data)
Creates an ndarray with the specified data
|
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(DataBuffer buffer,
int[] shape,
int offset) |
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape,
int[] stride)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(DataBuffer data,
int[] newDims,
int[] newStrides,
int offset,
char ordering) |
IComplexNDArray |
createComplex(DataBuffer buffer,
int[] shape,
int offset,
char ordering) |
IComplexNDArray |
createComplex(DataBuffer data,
int rows,
int columns,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(double[] data)
Creates an ndarray with the specified data
|
IComplexNDArray |
createComplex(double[] data,
int[] shape)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int offset) |
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int[] stride)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int[] stride,
int offset,
char ordering)
Create a complex ndarray with the given data
|
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int offset,
char ordering) |
IComplexNDArray |
createComplex(double[] data,
int rows,
int columns,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(float[] dim) |
IComplexNDArray |
createComplex(float[] data,
Character order) |
IComplexNDArray |
createComplex(float[] data,
int[] shape)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int offset) |
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int[] stride)
Create an ndrray with the specified shape
|
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int[] stride,
int offset) |
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int[] stride,
int offset,
char ordering) |
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int offset,
char ordering) |
IComplexNDArray |
createComplex(float[] data,
int rows,
int columns,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape)
Create a complex ndarray from the passed in indarray
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
char ordering)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
char ordering)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
int offset,
char ordering)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int offset,
char ordering)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(INDArray arr)
Create a complex ndarray from the passed in indarray
|
IComplexNDArray |
createComplex(int columns)
Creates an ndarray
|
IComplexNDArray |
createComplex(int[] shape)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(int[] shape,
int[] stride)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(int[] shape,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(int[] ints,
int[] ints1,
int[] stride,
int offset) |
IComplexNDArray |
createComplex(int[] shape,
int[] complexStrides,
int offset,
char ordering) |
IComplexNDArray |
createComplex(int rows,
int columns)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(int rows,
int columns,
int[] stride)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(int rows,
int columns,
int[] stride,
int offset)
Creates a complex ndarray with the specified shape
|
IComplexNDArray |
createComplex(List<IComplexNDArray> arrs,
int[] shape)
Create a complex ndarray from the passed in indarray
|
IComplexDouble |
createDouble(double real,
double imag)
Create an instance of a complex double
|
IComplexFloat |
createFloat(float real,
float imag)
Create float
|
void |
createLapack()
Create lapack
|
void |
createLevel1()
Create level 1
|
void |
createLevel2()
Create level 2
|
void |
createLevel3()
Create level 3
|
INDArray |
createUninitialized(int[] shape,
char ordering) |
DataBuffer.Type |
dtype()
Returns the data type for this ndarray
|
INDArray |
eye(int n)
Create the identity ndarray
|
INDArray |
hstack(INDArray... arrs)
Concatenates two matrices horizontally.
|
Lapack |
lapack() |
Level1 |
level1()
Return the level 1 blas operations
|
Level2 |
level2()
Return the level 2 blas operations
|
Level3 |
level3()
Return the level 3 blas operations
|
INDArray |
linspace(int lower,
int upper,
int num)
Generate a linearly spaced vector
|
INDArray |
ones(int columns)
Creates a row vector with the specified number of columns
|
INDArray |
ones(int[] shape)
Create an ndarray of ones
|
INDArray |
ones(int rows,
int columns)
Creates a row vector with the specified number of columns
|
char |
order()
Returns the order for this ndarray for internal data storage
|
INDArray |
pullRows(INDArray source,
int sourceDimension,
int[] indexes)
This method produces concatenated array, that consist from tensors, fetched from source array, against some dimension and specified indexes
|
INDArray |
rand(char order,
int[] shape)
Create a random ndarray with the given shape, and specified output order
|
INDArray |
rand(char order,
int rows,
int columns)
Create a random (uniform 0-1) NDArray with the specified shape and order
|
INDArray |
rand(int[] shape)
Create a random ndarray with the given shape using
the current time as the seed
|
INDArray |
rand(int[] shape,
Distribution r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
rand(int[] shape,
double min,
double max,
Random rng) |
INDArray |
rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
rand(int[] shape,
long seed)
Create a random ndarray with the given shape using the given rng
|
INDArray |
rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
rand(int rows,
int columns)
Create a random ndarray with the given shape using
the current time as the seed
|
INDArray |
rand(int rows,
int columns,
double min,
double max,
Random rng) |
INDArray |
rand(int rows,
int columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
rand(int rows,
int columns,
long seed)
Create a random ndarray with the given shape using the given rng
|
INDArray |
rand(int rows,
int columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
randn(char order,
int[] shape)
Random normal N(0,1) with the specified shape and order
|
INDArray |
randn(char order,
int rows,
int columns)
Random normal N(0,1), with specified output order
|
INDArray |
randn(int[] shape)
Random normal N(0,1) using the current time stamp
as the seed
|
INDArray |
randn(int[] shape,
long seed)
Random normal using the specified seed
|
INDArray |
randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
randn(int rows,
int columns)
Random normal (N(0,1)) using the current time stamp
as the seed
|
INDArray |
randn(int rows,
int columns,
long seed)
Random normal using the specified seed
|
INDArray |
randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
INDArray |
reverse(INDArray reverse)
Reverses the passed in matrix such that m[0] becomes m[m.length - 1] etc
|
INDArray |
rot(INDArray reverse)
Reverses the passed in matrix such that m[0] becomes m[m.length - 1] etc
|
void |
rot90(INDArray toRotate)
Rotate a matrix 90 degrees
|
INDArray |
scalar(double value)
Create a scalar nd array with the specified value and offset
|
INDArray |
scalar(double value,
int offset)
Create a scalar nd array with the specified value and offset
|
INDArray |
scalar(float value)
Create a scalar nd array with the specified value and offset
|
INDArray |
scalar(float value,
int offset)
Create a scalar nd array with the specified value and offset
|
IComplexNDArray |
scalar(IComplexDouble value)
Create a scalar nd array with the specified value and offset
|
IComplexNDArray |
scalar(IComplexDouble value,
int offset)
Create a scalar nd array with the specified value and offset
|
IComplexNDArray |
scalar(IComplexFloat value)
Create a scalar nd array with the specified value and offset
|
IComplexNDArray |
scalar(IComplexFloat value,
int offset)
Create a scalar nd array with the specified value and offset
|
IComplexNDArray |
scalar(IComplexNumber value)
Create a scalar ndarray with the specified offset
|
IComplexNDArray |
scalar(IComplexNumber value,
int offset)
Create a scalar ndarray with the specified offset
|
INDArray |
scalar(int value,
int offset) |
INDArray |
scalar(Number value)
Create a scalar ndarray with the specified offset
|
INDArray |
scalar(Number value,
int offset)
Create a scalar ndarray with the specified offset
|
void |
setDType(DataBuffer.Type dtype)
Sets the data type
|
void |
setOrder(char order)
Sets the order.
|
INDArray |
toFlattened(char order,
Collection<INDArray> matrices)
Returns a flattened ndarray with all elements in each ndarray
regardless of dimension.
|
INDArray |
toFlattened(char order,
INDArray... matrices)
Flatten all of the ndarrays in to one long vector
|
INDArray |
toFlattened(Collection<INDArray> matrices)
/**
Returns a flattened ndarray with all of the elements in each ndarray
regardless of dimension
|
INDArray |
toFlattened(INDArray... matrices)
Flatten all of the ndarrays in to one long vector
|
INDArray |
toFlattened(int length,
Iterator<? extends INDArray>... matrices)
Returns a flattened ndarray with all of the elements in each ndarray
regardless of dimension
|
INDArray |
valueArrayOf(int[] shape,
double value)
Creates an ndarray with the specified value
as the only value in the ndarray
|
INDArray |
valueArrayOf(int rows,
int columns,
double value)
Creates a row vector with the specified number of columns
|
INDArray |
vstack(INDArray... arrs)
Concatenates two matrices vertically.
|
INDArray |
zeros(int columns)
Creates a row vector with the specified number of columns
|
INDArray |
zeros(int[] shape)
Create an ndarray of zeros
|
INDArray |
zeros(int rows,
int columns)
Creates a row vector with the specified number of columns
|
static final char FORTRAN
static final char C
Lapack lapack()
Level1 level1()
Level2 level2()
Level3 level3()
void createLevel1()
void createLevel2()
void createLevel3()
void createLapack()
IComplexNDArray complexValueOf(int num, IComplexNumber value)
num
- the number of columnsvalue
- the value to assignIComplexNDArray complexValueOf(int[] shape, IComplexNumber value)
shape
- the shape of the ndarrayvalue
- the value to assignIComplexNDArray complexValueOf(int num, double value)
num
- the number of columnsvalue
- the value to assignIComplexNDArray complexValueOf(int[] shape, double value)
shape
- the shape of the ndarrayvalue
- the value to assignvoid setOrder(char order)
order
- void setDType(DataBuffer.Type dtype)
dtype
- INDArray create(int[] shape, DataBuffer buffer)
shape
- the shape to usebuffer
- the buffer to usechar order()
DataBuffer.Type dtype()
IComplexNDArray createComplex(int rows, int columns, int[] stride, int offset)
rows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray linspace(int lower, int upper, int num)
lower
- upper boundupper
- lower boundnum
- the step sizeINDArray toFlattened(Collection<INDArray> matrices)
matrices
- the ndarrays to useINDArray toFlattened(int length, Iterator<? extends INDArray>... matrices)
matrices
- the ndarrays to useINDArray toFlattened(char order, Collection<INDArray> matrices)
matrices
- the ndarrays to flattenorder
- the order in which the ndarray values should be flattenedINDArray bilinearProducts(INDArray curr, INDArray in)
INDArray toFlattened(INDArray... matrices)
matrices
- the matrices to flattenINDArray toFlattened(char order, INDArray... matrices)
matrices
- the matrices to flattenINDArray eye(int n)
n
- the number for the identityvoid rot90(INDArray toRotate)
toRotate
- the matrix to rotateINDArray rot(INDArray reverse)
reverse
- the matrix to reverseINDArray reverse(INDArray reverse)
reverse
- the matrix to reverseINDArray arange(double begin, double end)
begin
- the begin of the rangeend
- the end of the rangeIComplexFloat createFloat(float real, float imag)
real
- real componentimag
- imag componentIComplexDouble createDouble(double real, double imag)
real
- the real componentimag
- the imaginary componentvoid copy(INDArray a, INDArray b)
a
- the origin matrixb
- the destination matrixINDArray rand(int[] shape, float min, float max, Random rng)
shape
- the number of rows of the matrixmin
- the minimum numbermax
- the maximum numberrng
- the rng to useINDArray rand(int rows, int columns, float min, float max, Random rng)
rows
- the number of rows of the matrixcolumns
- the number of columns in the matrixmin
- the minimum numbermax
- the maximum numberrng
- the rng to useINDArray create(double[][] data)
data
- the data to create the ndarray withINDArray create(double[][] data, char ordering)
IComplexNDArray createComplex(INDArray arr)
arr
- the arr to wrapIComplexNDArray createComplex(IComplexNumber[] data, int[] shape)
data
- the data to wrapIComplexNDArray createComplex(List<IComplexNDArray> arrs, int[] shape)
arrs
- the arr to wrapINDArray concat(int dimension, INDArray... toConcat)
dimension
- the dimension to concatneate alongtoConcat
- the ndarrays to concateneateINDArray pullRows(INDArray source, int sourceDimension, int[] indexes)
source
- source tensorsourceDimension
- dimension of source tensorindexes
- indexes from source arrayINDArray average(INDArray target, INDArray[] arrays)
arrays
- INDArray average(INDArray[] arrays)
arrays
- INDArray average(Collection<INDArray> arrays)
arrays
- INDArray average(INDArray target, Collection<INDArray> arrays)
arrays
- IComplexNDArray concat(int dimension, IComplexNDArray... toConcat)
dimension
- the dimension to concatneate alongtoConcat
- the ndarrays to concateneateINDArray rand(int rows, int columns, Random r)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixr
- the random generator to useINDArray rand(int rows, int columns, long seed)
rows
- the number of rows in the matrixcolumns
- the columns of the ndarrayseed
- the seed to useINDArray rand(int rows, int columns)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixINDArray rand(char order, int rows, int columns)
order
- Order ('c' or 'f') of the output arrayrows
- Number of rows of the output arraycolumns
- Number of columns of the output arrayINDArray randn(int rows, int columns, Random r)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixr
- the random generator to useINDArray randn(int rows, int columns)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixINDArray randn(char order, int rows, int columns)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixINDArray randn(int rows, int columns, long seed)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixINDArray rand(int[] shape, Distribution r)
shape
- the shape of the ndarrayr
- the random generator to useINDArray rand(int[] shape, Random r)
shape
- the shape of the ndarrayr
- the random generator to useINDArray rand(int[] shape, long seed)
shape
- the shape of the ndarrayseed
- the seed to useINDArray rand(int[] shape)
shape
- the shape of the ndarrayINDArray rand(char order, int[] shape)
shape
- the shape of the ndarrayINDArray randn(int[] shape, Random r)
shape
- the shape of the ndarrayr
- the random generator to useINDArray randn(int[] shape)
shape
- the shape of the ndarrayINDArray randn(char order, int[] shape)
order
- the order ('c' or 'f') of the output arrayshape
- the shape of the ndarrayINDArray randn(int[] shape, long seed)
shape
- the shape of the ndarrayINDArray create(double[] data)
data
- the columns of the ndarrayINDArray create(float[] data)
data
- the columns of the ndarrayIComplexNDArray createComplex(double[] data)
data
- the number of columns in the row vectorINDArray create(DataBuffer data)
data
- the columns of the ndarrayIComplexNDArray createComplex(DataBuffer data)
data
- the number of columns in the row vectorINDArray create(int columns)
columns
- the columns of the ndarrayIComplexNDArray createComplex(int columns)
columns
- the number of columns in the row vectorINDArray zeros(int rows, int columns)
rows
- the rows of the ndarraycolumns
- the columns of the ndarrayIComplexNDArray complexZeros(int rows, int columns)
rows
- te number of rows in the matrixcolumns
- the number of columns in the row vectorINDArray zeros(int columns)
columns
- the columns of the ndarrayIComplexNDArray complexZeros(int columns)
columns
- the number of columns in the row vectorINDArray valueArrayOf(int[] shape, double value)
shape
- the shape of the ndarrayvalue
- the value to assignINDArray valueArrayOf(int rows, int columns, double value)
rows
- the number of rows in the matrixcolumns
- the columns of the ndarrayvalue
- the value to assignINDArray ones(int rows, int columns)
rows
- the number of rows in the matrixcolumns
- the columns of the ndarrayIComplexNDArray complexOnes(int rows, int columns)
rows
- the number of rows in the matrixcolumns
- the number of columns in the row vectorINDArray ones(int columns)
columns
- the columns of the ndarrayIComplexNDArray complexOnes(int columns)
columns
- the number of columns in the row vectorINDArray hstack(INDArray... arrs)
arrs
- INDArray vstack(INDArray... arrs)
arrs
- INDArray zeros(int[] shape)
shape
- the shape of the ndarrayIComplexNDArray complexZeros(int[] shape)
shape
- the shape of the ndarrayINDArray ones(int[] shape)
shape
- the shape of the ndarrayIComplexNDArray complexOnes(int[] shape)
shape
- the shape of the ndarrayIComplexNDArray createComplex(float[] data, int rows, int columns, int[] stride, int offset)
data
- the data to use with the ndarrayrows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(DataBuffer data, int rows, int columns, int[] stride, int offset)
data
- the data to use with the ndarrayrows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(DataBuffer data, int rows, int columns, int[] stride, int offset)
data
- the data to use with the ndarrayrows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride, int offset)
data
- the data to use with the ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(float[] data, int rows, int columns, int[] stride, int offset)
data
- rows
- columns
- stride
- offset
- IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset)
data
- the data to use with the ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)
data
- the data to use with the ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, char ordering)
data
- the data to use with the ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayIComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int offset, char ordering)
data
- the data to use with the ndarrayshape
- the shape of the ndarrayoffset
- the stride for the ndarrayIComplexNDArray createComplex(IComplexNumber[] data, int[] shape, char ordering)
data
- the data to use with the ndarrayshape
- the shape of the ndarrayINDArray create(float[] data, int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(double[] data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayINDArray create(float[] data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayIComplexNDArray createComplex(double[] data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayIComplexNDArray createComplex(float[] data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayIComplexNDArray createComplex(double[] data, int[] shape, int[] stride)
data
- the data to use with tne ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayIComplexNDArray createComplex(float[] data, int[] shape, int[] stride)
data
- the data to use with tne ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayIComplexNDArray createComplex(double[] data, int rows, int columns, int[] stride, int offset)
rows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(double[] data, int rows, int columns, int[] stride, int offset)
data
- the data to use with tne ndarrayrows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(double[] data, int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(DataBuffer data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayIComplexNDArray createComplex(DataBuffer data, int[] shape)
data
- the data to use with tne ndarrayshape
- the shape of the ndarrayIComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride)
data
- the data to use with tne ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayINDArray create(DataBuffer data, int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(List<INDArray> list, int[] shape)
shape
- the shape of the ndarrayINDArray create(int rows, int columns, int[] stride, int offset)
rows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayINDArray create(int[] shape, int[] stride, int offset)
shape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayIComplexNDArray createComplex(int rows, int columns, int[] stride)
rows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayINDArray create(int rows, int columns, int[] stride)
rows
- the rows of the ndarraycolumns
- the columns of the ndarraystride
- the stride for the ndarrayIComplexNDArray createComplex(int[] shape, int[] stride)
shape
- the shape of the ndarraystride
- the stride for the ndarrayINDArray create(int[] shape, int[] stride)
shape
- the shape of the ndarraystride
- the stride for the ndarrayIComplexNDArray createComplex(int rows, int columns)
rows
- the rows of the ndarraycolumns
- the columns of the ndarrayINDArray create(int rows, int columns)
rows
- the rows of the ndarraycolumns
- the columns of the ndarrayIComplexNDArray createComplex(int[] shape)
shape
- the shape of the ndarrayINDArray create(int[] shape)
shape
- the shape of the ndarrayINDArray scalar(Number value, int offset)
value
- the value to initialize the scalar withoffset
- the offset of the ndarrayIComplexNDArray complexScalar(Number value, int offset)
value
- the value to initialize the scalar withoffset
- the offset of the ndarrayIComplexNDArray complexScalar(Number value)
value
- the value to initialize the scalar withINDArray scalar(float value, int offset)
value
- the value of the scalaroffset
- the offset of the ndarrayINDArray scalar(double value, int offset)
value
- the value of the scalaroffset
- the offset of the ndarrayINDArray scalar(int value, int offset)
INDArray scalar(Number value)
value
- the value to initialize the scalar withINDArray scalar(float value)
value
- the value of the scalar
= * @return the scalar nd arrayINDArray scalar(double value)
value
- the value of the scalar
= * @return the scalar nd arrayIComplexNDArray scalar(IComplexNumber value, int offset)
value
- the value to initialize the scalar withoffset
- the offset of the ndarrayIComplexNDArray scalar(IComplexFloat value)
value
- the value of the scalarIComplexNDArray scalar(IComplexDouble value)
value
- the value of the scalar
= * @return the scalar nd arrayIComplexNDArray scalar(IComplexNumber value)
value
- the value to initialize the scalar withIComplexNDArray scalar(IComplexFloat value, int offset)
value
- the value of the scalaroffset
- the offset of the ndarrayIComplexNDArray scalar(IComplexDouble value, int offset)
value
- the value of the scalaroffset
- the offset of the ndarrayIComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering)
data
- the data to use with tne ndarrayshape
- the shape of the ndarraystride
- the stride for the ndarrayoffset
- the offset of the ndarrayordering
- the ordering for the ndarrayIComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering)
data
- shape
- offset
- ordering
- IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset, char ordering)
IComplexNDArray createComplex(double[] data, int[] shape, int offset)
data
- shape
- offset
- IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset)
buffer
- shape
- offset
- INDArray create(float[] data, int[] shape, int offset)
data
- shape
- offset
- INDArray create(float[] data, int[] shape, char ordering)
data
- shape
- ordering
- IComplexNDArray createComplex(float[] data, int[] shape, int offset, char ordering)
data
- shape
- offset
- ordering
- IComplexNDArray createComplex(float[] data, int[] shape, int offset)
data
- shape
- offset
- IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset, char ordering)
data
- shape
- stride
- offset
- ordering
- INDArray create(float[][] floats)
floats
- INDArray create(float[][] data, char ordering)
IComplexNDArray createComplex(float[] dim)
dim
- INDArray create(float[] data, int[] shape, int[] stride, int offset, char ordering)
data
- shape
- stride
- offset
- ordering
- IComplexNDArray complexFlatten(List<IComplexNDArray> flatten)
flatten
- IComplexNDArray complexFlatten(IComplexNDArray[] flatten)
flatten
- INDArray create(DataBuffer buffer, int[] shape, int offset)
buffer
- shape
- offset
- IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset)
data
- shape
- stride
- offset
- INDArray create(int[] shape, char ordering)
shape
- ordering
- INDArray createUninitialized(int[] shape, char ordering)
INDArray create(DataBuffer data, int[] newShape, int[] newStride, int offset, char ordering)
data
- newShape
- newStride
- offset
- ordering
- IComplexNDArray createComplex(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)
data
- newDims
- newStrides
- offset
- ordering
- INDArray rand(int rows, int columns, double min, double max, Random rng)
rows
- columns
- min
- max
- rng
- IComplexNDArray createComplex(float[] data, Character order)
data
- order
- INDArray create(float[] data, int[] shape, int offset, Character order)
data
- shape
- offset
- order
- INDArray create(float[] data, int rows, int columns, int[] stride, int offset, char ordering)
data
- rows
- columns
- stride
- offset
- ordering
- INDArray create(double[] data, int[] shape, char ordering)
data
- shape
- ordering
- INDArray create(List<INDArray> list, int[] shape, char ordering)
list
- shape
- ordering
- INDArray create(double[] data, int[] shape, int offset)
data
- shape
- offset
- INDArray create(double[] data, int[] shape, int[] stride, int offset, char ordering)
data
- shape
- stride
- offset
- ordering
- INDArray rand(int[] shape, double min, double max, Random rng)
shape
- min
- max
- rng
- IComplexNDArray createComplex(int[] ints, int[] ints1, int[] stride, int offset)
ints
- ints1
- stride
- offset
- INDArray create(int[] ints, int[] ints1, int[] stride, int offset)
ints
- ints1
- stride
- offset
- INDArray create(int[] shape, int[] ints1, int[] stride, char order, int offset)
shape
- ints1
- stride
- order
- offset
- INDArray create(int rows, int columns, char ordering)
rows
- columns
- ordering
- INDArray create(int[] shape, DataBuffer.Type dataType)
shape
- dataType
- INDArray create(float[] data, char order)
data
- order
- INDArray create(float[] data, int[] shape, int[] stride, char order, int offset)
data
- shape
- stride
- order
- offset
- INDArray create(DataBuffer buffer, int[] shape, int[] stride, char order, int offset)
buffer
- shape
- stride
- order
- offset
- INDArray create(double[] data, char order)
data
- order
- INDArray create(double[] data, int[] shape, int[] stride, char order, int offset)
data
- shape
- stride
- order
- offset
- INDArray create(int[] shape, int[] stride, int offset, char ordering)
shape
- stride
- offset
- ordering
- IComplexNDArray createComplex(int[] shape, int[] complexStrides, int offset, char ordering)
shape
- complexStrides
- offset
- ordering
- Copyright © 2016. All Rights Reserved.