public class CpuNDArrayFactory extends BaseNDArrayFactory
dtype, lapack, level1, level2, level3, orderC, FORTRAN| Constructor and Description |
|---|
CpuNDArrayFactory() |
CpuNDArrayFactory(DataBuffer.Type dtype,
char order) |
CpuNDArrayFactory(DataBuffer.Type dtype,
Character order) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
average(Collection<INDArray> arrays) |
INDArray |
average(INDArray[] arrays) |
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 |
concat(int dimension,
INDArray... toConcat)
concatenate ndarrays along a dimension
|
INDArray |
create(DataBuffer data) |
INDArray |
create(DataBuffer data,
int[] shape) |
INDArray |
create(DataBuffer buffer,
int[] shape,
int offset) |
INDArray |
create(DataBuffer data,
int[] shape,
int[] stride,
int offset) |
INDArray |
create(DataBuffer data,
int[] newShape,
int[] newStride,
int offset,
char ordering) |
INDArray |
create(DataBuffer data,
int rows,
int columns,
int[] stride,
int offset) |
INDArray |
create(double[][] data)
Create an ndarray with the given data layout
|
INDArray |
create(double[][] data,
char ordering) |
INDArray |
create(double[] data,
int[] shape,
char ordering) |
INDArray |
create(double[] data,
int[] shape,
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(float[][] floats) |
INDArray |
create(float[][] data,
char ordering) |
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[] shape,
int offset,
Character order) |
INDArray |
create(float[] data,
int rows,
int columns,
int[] stride,
int offset,
char ordering) |
INDArray |
create(int[] shape,
char ordering) |
INDArray |
create(int[] shape,
DataBuffer buffer) |
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) |
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape) |
IComplexNDArray |
createComplex(DataBuffer buffer,
int[] shape,
int offset) |
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape,
int[] stride) |
IComplexNDArray |
createComplex(DataBuffer data,
int[] shape,
int[] stride,
int offset) |
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) |
IComplexNDArray |
createComplex(double[] data,
int[] shape,
int offset) |
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(float[] dim) |
IComplexNDArray |
createComplex(float[] data,
Character order) |
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int offset) |
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)
Create a complex ndarray with the given data
|
IComplexNDArray |
createComplex(float[] data,
int[] shape,
int offset,
char ordering) |
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape)
Create a complex ndarray from the passed in indarray
|
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
char ordering) |
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
char ordering) |
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
int offset) |
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int[] stride,
int offset,
char ordering) |
IComplexNDArray |
createComplex(IComplexNumber[] data,
int[] shape,
int offset,
char ordering) |
IComplexNDArray |
createComplex(INDArray arr)
Create a complex ndarray from the passed in indarray
|
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() |
void |
createLevel1() |
void |
createLevel2() |
void |
createLevel3() |
INDArray |
createUninitialized(int[] shape,
char ordering) |
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 |
toFlattened(char order,
Collection<INDArray> matrices) |
appendBias, arange, bilinearProducts, complexFlatten, complexFlatten, complexOnes, complexOnes, complexOnes, complexScalar, complexScalar, complexValueOf, complexValueOf, complexValueOf, complexValueOf, complexZeros, complexZeros, complexZeros, concat, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, dtype, eye, hstack, lapack, level1, level2, level3, linspace, ones, ones, ones, order, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, randn, randn, randn, randn, randn, randn, randn, randn, reverse, rot, rot90, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, setDType, setOrder, toFlattened, toFlattened, toFlattened, toFlattened, validateConcat, valueArrayOf, valueArrayOf, vstack, zeros, zeros, zerospublic CpuNDArrayFactory()
public CpuNDArrayFactory(DataBuffer.Type dtype, Character order)
public CpuNDArrayFactory(DataBuffer.Type dtype, char order)
public void createLevel1()
public void createLevel2()
public void createLevel3()
public void createLapack()
public INDArray create(int[] shape, DataBuffer buffer)
public IComplexFloat createFloat(float real, float imag)
createFloat in interface NDArrayFactorycreateFloat in class BaseNDArrayFactoryreal - real componentimag - imag componentpublic IComplexDouble createDouble(double real, double imag)
createDouble in interface NDArrayFactorycreateDouble in class BaseNDArrayFactoryreal - the real componentimag - the imaginary componentpublic INDArray create(double[][] data)
data - the data to create the ndarray withpublic INDArray create(double[][] data, char ordering)
public IComplexNDArray createComplex(INDArray arr)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactoryarr - the arr to wrappublic IComplexNDArray createComplex(IComplexNumber[] data, int[] shape)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - the data to wrapshape - public IComplexNDArray createComplex(List<IComplexNDArray> arrs, int[] shape)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactoryarrs - the arr to wrapshape - public INDArray create(DataBuffer data)
public IComplexNDArray createComplex(DataBuffer data)
public IComplexNDArray createComplex(DataBuffer data, int rows, int columns, int[] stride, int offset)
public INDArray create(DataBuffer data, int rows, int columns, int[] stride, int offset)
public IComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride, int offset)
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset)
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, char ordering)
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int offset, char ordering)
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, char ordering)
public IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - the data to use with the ndarrayshape - the shape of the ndarraystride - the stride for the ndarrayoffset - the offset of the ndarraypublic INDArray create(int[] shape, char ordering)
public INDArray createUninitialized(int[] shape, char ordering)
public INDArray create(DataBuffer data, int[] newShape, int[] newStride, int offset, char ordering)
public IComplexNDArray createComplex(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)
public IComplexNDArray createComplex(float[] data, Character order)
public INDArray create(float[] data, int rows, int columns, int[] stride, int offset, char ordering)
public INDArray create(double[] data, int[] shape, char ordering)
public INDArray create(double[] data, int[] shape, int offset)
public INDArray create(double[] data, int[] shape, int[] stride, int offset, char ordering)
public INDArray create(float[] data, int[] shape, int[] stride, int offset)
create in interface NDArrayFactorycreate in class BaseNDArrayFactorydata - shape - the shape of the ndarraystride - the stride for the ndarrayoffset - the offset of the ndarraypublic IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - shape - the shape of the ndarraystride - the stride for the ndarrayoffset - the offset of the ndarraypublic INDArray create(double[] data, int[] shape, int[] stride, int offset)
create in interface NDArrayFactorycreate in class BaseNDArrayFactorydata - shape - the shape of the ndarraystride - the stride for the ndarrayoffset - the offset of the ndarraypublic INDArray create(DataBuffer data, int[] shape)
public IComplexNDArray createComplex(DataBuffer data, int[] shape)
public IComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride)
public INDArray create(DataBuffer data, int[] shape, int[] stride, int offset)
public INDArray create(List<INDArray> list, int[] shape)
create in interface NDArrayFactorycreate in class BaseNDArrayFactorylist - shape - the shape of the ndarraypublic IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - 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 ndarraypublic IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - shape - offset - ordering - public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset, char ordering)
public IComplexNDArray createComplex(double[] data, int[] shape, int offset)
createComplex in interface NDArrayFactorycreateComplex in class BaseNDArrayFactorydata - shape - offset - public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset)
public IComplexNDArray createComplex(float[] 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 ndarraypublic INDArray create(float[][] floats)
public INDArray create(float[][] data, char ordering)
public IComplexNDArray createComplex(float[] dim)
public INDArray create(float[] data, int[] shape, int[] stride, int offset, char ordering)
public INDArray create(DataBuffer buffer, int[] shape, int offset)
public IComplexNDArray createComplex(float[] data, int[] shape, int offset, char ordering)
data - shape - offset - ordering - public IComplexNDArray createComplex(float[] data, int[] shape, int offset)
data - shape - offset - public INDArray create(float[] data, int[] shape, int offset)
create in interface NDArrayFactorycreate in class BaseNDArrayFactorypublic INDArray toFlattened(char order, Collection<INDArray> matrices)
public INDArray concat(int dimension, INDArray... toConcat)
concat in interface NDArrayFactoryconcat in class BaseNDArrayFactorydimension - the dimension to concatenate alongtoConcat - the ndarrays to concatenatepublic INDArray pullRows(INDArray source, int sourceDimension, int[] indexes)
pullRows in interface NDArrayFactorypullRows in class BaseNDArrayFactorysource - source tensorsourceDimension - dimension of source tensorindexes - indexes from source arraypublic INDArray average(INDArray target, INDArray[] arrays)
target - arrays - public INDArray average(INDArray target, Collection<INDArray> arrays)
target - arrays - public INDArray average(Collection<INDArray> arrays)
Copyright © 2016. All Rights Reserved.