public class JCublasNDArrayFactory extends BaseNDArrayFactory
dtype, lapack, level1, level2, level3, order
C, FORTRAN
Constructor and Description |
---|
JCublasNDArrayFactory() |
JCublasNDArrayFactory(DataBuffer.Type dtype,
char order) |
JCublasNDArrayFactory(DataBuffer.Type dtype,
Character order) |
Modifier and Type | Method and Description |
---|---|
INDArray |
average(Collection<INDArray> arrays) |
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) |
INDArray |
concat(int dimension,
INDArray... toConcat) |
DataBuffer |
convertDataEx(DataBuffer.TypeEx typeSrc,
DataBuffer source,
DataBuffer.TypeEx typeDst) |
void |
convertDataEx(DataBuffer.TypeEx typeSrc,
DataBuffer source,
DataBuffer.TypeEx typeDst,
DataBuffer target) |
INDArray |
convertDataEx(DataBuffer.TypeEx typeSrc,
INDArray source,
DataBuffer.TypeEx typeDst)
This method converts Single/Double precision databuffer to Half-precision databuffer
|
void |
convertDataEx(DataBuffer.TypeEx typeSrc,
org.bytedeco.javacpp.Pointer source,
DataBuffer.TypeEx typeDst,
org.bytedeco.javacpp.Pointer target,
long length) |
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) |
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) |
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 |
pullRows(INDArray source,
int sourceDimension,
int[] indexes,
char order)
This method produces concatenated array, that consist from tensors, fetched from source array, against some dimension and specified indexes
|
void |
shuffle(Collection<INDArray> sourceArrays,
Random rnd,
int... dimension)
Symmetric in place shuffle of an ndarray
along a specified set of dimensions.
|
void |
shuffle(INDArray array,
Random rnd,
int... dimension)
In place shuffle of an ndarray
along a specified set of dimensions
|
void |
shuffle(List<INDArray> arrays,
Random rnd,
List<int[]> dimensions)
Symmetric in place shuffle of an ndarray
along a specified set of dimensions.
|
INDArray |
toFlattened(char order,
Collection<INDArray> matrices) |
INDArray |
toFlattened(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, validateConcat, valueArrayOf, valueArrayOf, vstack, zeros, zeros, zeros
public JCublasNDArrayFactory()
public JCublasNDArrayFactory(DataBuffer.Type dtype, Character order)
public JCublasNDArrayFactory(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 NDArrayFactory
createFloat
in class BaseNDArrayFactory
real
- real componentimag
- imag componentpublic IComplexDouble createDouble(double real, double imag)
createDouble
in interface NDArrayFactory
createDouble
in class BaseNDArrayFactory
real
- 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 NDArrayFactory
createComplex
in class BaseNDArrayFactory
arr
- the arr to wrappublic IComplexNDArray createComplex(IComplexNumber[] data, int[] shape)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
data
- the data to wrapshape
- public IComplexNDArray createComplex(List<IComplexNDArray> arrs, int[] shape)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
arrs
- 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(float[] data, int[] shape, int[] stride, int offset)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
data
- 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 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 INDArray create(float[] data, int[] shape, int[] stride, int offset)
create
in interface NDArrayFactory
create
in class BaseNDArrayFactory
data
- 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 NDArrayFactory
createComplex
in class BaseNDArrayFactory
data
- 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 NDArrayFactory
create
in class BaseNDArrayFactory
data
- 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 NDArrayFactory
create
in class BaseNDArrayFactory
list
- shape
- the shape of the ndarraypublic IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset, char ordering)
public IComplexNDArray createComplex(double[] data, int[] shape, int offset)
createComplex
in interface NDArrayFactory
createComplex
in class BaseNDArrayFactory
public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset)
public INDArray create(float[] data, int[] shape, int offset)
create
in interface NDArrayFactory
create
in class BaseNDArrayFactory
public IComplexNDArray createComplex(float[] data, int[] shape, int offset, char ordering)
public IComplexNDArray createComplex(float[] data, int[] shape, int offset)
public IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset, char ordering)
public 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 INDArray toFlattened(Collection<INDArray> matrices)
toFlattened
in interface NDArrayFactory
toFlattened
in class BaseNDArrayFactory
public INDArray toFlattened(char order, Collection<INDArray> matrices)
public INDArray concat(int dimension, INDArray... toConcat)
concat
in interface NDArrayFactory
concat
in class BaseNDArrayFactory
public INDArray pullRows(INDArray source, int sourceDimension, int[] indexes)
pullRows
in interface NDArrayFactory
pullRows
in class BaseNDArrayFactory
source
- source tensorsourceDimension
- dimension of source tensorindexes
- indexes from source arraypublic INDArray pullRows(INDArray source, int sourceDimension, int[] indexes, char order)
pullRows
in interface NDArrayFactory
pullRows
in class BaseNDArrayFactory
source
- source tensorsourceDimension
- dimension of source tensorindexes
- indexes from source arraypublic INDArray average(Collection<INDArray> arrays)
public INDArray average(INDArray[] arrays)
arrays
- public INDArray average(INDArray target, Collection<INDArray> arrays)
target
- arrays
- public void shuffle(INDArray array, Random rnd, int... dimension)
array
- the ndarray to shuffledimension
- the dimension to do the shufflepublic void shuffle(List<INDArray> arrays, Random rnd, List<int[]> dimensions)
arrays
- the ndarrays to shuffledimensions
- the dimensions to do the shufflepublic void shuffle(Collection<INDArray> sourceArrays, Random rnd, int... dimension)
sourceArrays
- the ndarray to shuffledimension
- the dimension to do the shufflepublic INDArray convertDataEx(DataBuffer.TypeEx typeSrc, INDArray source, DataBuffer.TypeEx typeDst)
typeSrc
- source
- typeDst
- @returnpublic void convertDataEx(DataBuffer.TypeEx typeSrc, org.bytedeco.javacpp.Pointer source, DataBuffer.TypeEx typeDst, org.bytedeco.javacpp.Pointer target, long length)
public void convertDataEx(DataBuffer.TypeEx typeSrc, DataBuffer source, DataBuffer.TypeEx typeDst, DataBuffer target)
public DataBuffer convertDataEx(DataBuffer.TypeEx typeSrc, DataBuffer source, DataBuffer.TypeEx typeDst)
Copyright © 2016. All Rights Reserved.