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 |
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
|
INDArray |
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(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,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
create(double[] data,
int[] shape,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
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,
int[] shape)
Create an ndrray with the specified shape
|
INDArray |
create(float[] data,
int[] shape,
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 rows,
int columns,
int[] stride,
int offset)
Creates an ndarray with the specified shape
|
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,
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 rows,
int columns)
Creates an ndarray with the specified shape
|
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
|
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,
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)
Creates a complex ndarray with the specified shape
|
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 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
|
String |
dtype()
Returns the data type for this ndarray
|
INDArray |
eye(int n)
Create the identity ndarray
|
INDArray |
hstack(INDArray... arrs)
Concatenates two matrices horizontally.
|
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 |
rand(int[] shape)
Create a random ndarray with the given shape using
the current time as the seed
|
INDArray |
rand(int[] shape,
float min,
float max,
org.apache.commons.math3.random.RandomGenerator 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,
org.apache.commons.math3.random.RandomGenerator r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
rand(int[] shape,
org.apache.commons.math3.distribution.RealDistribution 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,
float min,
float max,
org.apache.commons.math3.random.RandomGenerator 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,
org.apache.commons.math3.random.RandomGenerator r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
randn(int[] shape)
Random normal using the current time stamp
as the seed
|
INDArray |
randn(int[] shape,
long seed)
Random normal using the specified seed
|
INDArray |
randn(int[] shape,
org.apache.commons.math3.random.RandomGenerator r)
Random normal using the given rng
|
INDArray |
randn(int rows,
int columns)
Random normal 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,
org.apache.commons.math3.random.RandomGenerator 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(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(String dtype)
Sets the data type
|
void |
setOrder(char order)
Sets the order.
|
INDArray |
toFlattened(Collection<INDArray> matrices)
Returns a flattened ndarray with all of the elements in each ndarray
regardless of dimension
|
INDArray |
toFlattened(INDArray... matrices) |
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
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(String dtype)
dtype
- char order()
String 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 bilinearProducts(INDArray curr, INDArray in)
INDArray 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, org.apache.commons.math3.random.RandomGenerator 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, org.apache.commons.math3.random.RandomGenerator 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 withIComplexNDArray 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 concateneateIComplexNDArray concat(int dimension, IComplexNDArray... toConcat)
dimension
- the dimension to concatneate alongtoConcat
- the ndarrays to concateneateINDArray rand(int rows, int columns, org.apache.commons.math3.random.RandomGenerator 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 randn(int rows, int columns, org.apache.commons.math3.random.RandomGenerator 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(int rows, int columns, long seed)
rows
- the number of rows in the matrixcolumns
- the number of columns in the matrixINDArray rand(int[] shape, org.apache.commons.math3.distribution.RealDistribution r)
shape
- the shape of the ndarrayr
- the random generator to useINDArray rand(int[] shape, org.apache.commons.math3.random.RandomGenerator 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 randn(int[] shape, org.apache.commons.math3.random.RandomGenerator r)
shape
- the shape of the ndarrayr
- the random generator to useINDArray randn(int[] shape)
shape
- 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(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 ndarrayINDArray 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 ndarrayINDArray create(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(float[] 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)
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(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(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(double[] data, int[] shape, int offset)
data
- shape
- offset
- INDArray create(float[] data, int[] shape, int offset)
IComplexNDArray createComplex(float[] data, int[] shape, int offset, char ordering)
IComplexNDArray createComplex(float[] data, int[] shape, int offset)
IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset, char ordering)
INDArray create(float[][] floats)
IComplexNDArray createComplex(float[] dim)
INDArray create(float[] data, int[] shape, int[] stride, int offset, char ordering)
IComplexNDArray complexFlatten(List<IComplexNDArray> flatten)
IComplexNDArray complexFlatten(IComplexNDArray[] flatten)
Copyright © 2014. All Rights Reserved.