org.nd4j.linalg.jblas
Class JblasNDArrayFactory
- java.lang.Object
-
- org.nd4j.linalg.factory.BaseNDArrayFactory
-
- org.nd4j.linalg.jblas.JblasNDArrayFactory
-
- All Implemented Interfaces:
- NDArrayFactory
public class JblasNDArrayFactory extends BaseNDArrayFactory
Jblas NDArray Factory
-
-
Field Summary
-
Fields inherited from interface org.nd4j.linalg.factory.NDArrayFactory
C, FORTRAN
-
-
Constructor Summary
Constructors Constructor and Description JblasNDArrayFactory(java.lang.String dtype, java.lang.Character order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description INDArraycreate(DataBuffer data)Creates a row vector with the dataINDArraycreate(DataBuffer data, int[] shape)Create an ndrray with the specified shapeINDArraycreate(DataBuffer buffer, int[] shape, int offset)INDArraycreate(DataBuffer data, int[] shape, int[] stride, int offset)Creates an ndarray with the specified shapeINDArraycreate(DataBuffer data, int[] newShape, int[] newStride, int offset, char ordering)INDArraycreate(DataBuffer data, int rows, int columns, int[] stride, int offset)Creates an ndarray with the specified shapeINDArraycreate(double[][] data)Create an ndarray with the given data layoutINDArraycreate(double[] data, int[] shape, char ordering)INDArraycreate(double[] data, int[] shape, int offset)INDArraycreate(double[] data, int[] shape, int[] stride, int offset)Creates an ndarray with the specified shapeINDArraycreate(double[] data, int[] shape, int[] stride, int offset, char ordering)INDArraycreate(float[][] floats)INDArraycreate(float[] data, int[] shape, int offset)INDArraycreate(float[] data, int[] shape, int[] stride, int offset)Creates an ndarray with the specified shapeINDArraycreate(float[] data, int[] shape, int[] stride, int offset, char ordering)INDArraycreate(float[] data, int[] shape, int offset, java.lang.Character order)INDArraycreate(float[] data, int rows, int columns, int[] stride, int offset, char ordering)INDArraycreate(int[] shape, char ordering)INDArraycreate(java.util.List<INDArray> list, int[] shape)Creates an ndarray with the specified shapeINDArraycreate(java.util.List<INDArray> list, int[] shape, char ordering)IComplexNDArraycreateComplex(DataBuffer data)Creates an ndarray with the specified dataIComplexNDArraycreateComplex(DataBuffer data, int[] shape)Create an ndrray with the specified shapeIComplexNDArraycreateComplex(DataBuffer buffer, int[] shape, int offset)IComplexNDArraycreateComplex(DataBuffer data, int[] shape, int[] stride)Create an ndrray with the specified shapeIComplexNDArraycreateComplex(DataBuffer data, int[] shape, int[] stride, int offset)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)IComplexNDArraycreateComplex(DataBuffer buffer, int[] shape, int offset, char ordering)IComplexNDArraycreateComplex(DataBuffer data, int rows, int columns, int[] stride, int offset)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(double[] data, int[] shape, int offset)IComplexNDArraycreateComplex(double[] data, int[] shape, int[] stride, int offset)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(double[] data, int[] shape, int[] stride, int offset, char ordering)Create a complex ndarray with the given dataIComplexNDArraycreateComplex(double[] data, int[] shape, int offset, char ordering)IComplexNDArraycreateComplex(float[] dim)IComplexNDArraycreateComplex(float[] data, java.lang.Character order)IComplexNDArraycreateComplex(float[] data, int[] shape, int offset)IComplexNDArraycreateComplex(float[] data, int[] shape, int[] stride, int offset)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(float[] data, int[] shape, int[] stride, int offset, char ordering)Create a complex ndarray with the given dataIComplexNDArraycreateComplex(float[] data, int[] shape, int offset, char ordering)IComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape)Create a complex ndarray from the passed in indarrayIComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape, char ordering)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape, int[] stride, char ordering)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(IComplexNumber[] data, int[] shape, int offset, char ordering)Creates a complex ndarray with the specified shapeIComplexNDArraycreateComplex(INDArray arr)Create a complex ndarray from the passed in indarrayIComplexNDArraycreateComplex(java.util.List<IComplexNDArray> arrs, int[] shape)Create a complex ndarray from the passed in indarrayIComplexDoublecreateDouble(double real, double imag)Create an instance of a complex doubleIComplexFloatcreateFloat(float real, float imag)Create float-
Methods inherited from class org.nd4j.linalg.factory.BaseNDArrayFactory
appendBias, arange, bilinearProducts, complexFlatten, complexFlatten, complexOnes, complexOnes, complexOnes, complexScalar, complexScalar, complexValueOf, complexValueOf, complexValueOf, complexValueOf, complexZeros, complexZeros, complexZeros, concat, concat, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createBuffer, createBuffer, createBuffer, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, createComplex, dtype, eye, hstack, linspace, ones, ones, ones, order, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, rand, randn, randn, randn, randn, randn, randn, reverse, rot, rot90, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, scalar, setDType, setOrder, toFlattened, toFlattened, toFlattened, valueArrayOf, valueArrayOf, vstack, zeros, zeros, zeros
-
-
-
-
Constructor Detail
-
JblasNDArrayFactory
public JblasNDArrayFactory(java.lang.String dtype, java.lang.Character order)
-
-
Method Detail
-
createFloat
public IComplexFloat createFloat(float real, float imag)
Create float- Specified by:
createFloatin interfaceNDArrayFactory- Specified by:
createFloatin classBaseNDArrayFactory- Parameters:
real- real componentimag- imag component- Returns:
-
createDouble
public IComplexDouble createDouble(double real, double imag)
Create an instance of a complex double- Specified by:
createDoublein interfaceNDArrayFactory- Specified by:
createDoublein classBaseNDArrayFactory- Parameters:
real- the real componentimag- the imaginary component- Returns:
- a new imaginary double with the specified real and imaginary components
-
create
public INDArray create(double[][] data)
Create an ndarray with the given data layout- Parameters:
data- the data to create the ndarray with- Returns:
- the ndarray with the given data layout
-
createComplex
public IComplexNDArray createComplex(INDArray arr)
Create a complex ndarray from the passed in indarray- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
arr- the arr to wrap- Returns:
- the complex ndarray with the specified ndarray as the real components
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape)
Create a complex ndarray from the passed in indarray- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
data- the data to wrapshape-- Returns:
- the complex ndarray with the specified ndarray as the real components
-
createComplex
public IComplexNDArray createComplex(java.util.List<IComplexNDArray> arrs, int[] shape)
Create a complex ndarray from the passed in indarray- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
arrs- the arr to wrapshape-- Returns:
- the complex ndarray with the specified ndarray as the real components
-
create
public INDArray create(DataBuffer data)
Description copied from interface:NDArrayFactoryCreates a row vector with the data- Parameters:
data- the columns of the ndarray- Returns:
- the created ndarray
-
createComplex
public IComplexNDArray createComplex(DataBuffer data)
Description copied from interface:NDArrayFactoryCreates an ndarray with the specified data- Parameters:
data- the number of columns in the row vector- Returns:
- ndarray
-
createComplex
public IComplexNDArray createComplex(DataBuffer data, int rows, int columns, int[] stride, int offset)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
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 ndarray- Returns:
- the instance
-
create
public INDArray create(DataBuffer data, int rows, int columns, int[] stride, int offset)
Description copied from interface:NDArrayFactoryCreates an ndarray with the specified shape- Parameters:
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 ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride, int offset)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int[] stride, char ordering)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarraystride- the stride for the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, int offset, char ordering)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarrayoffset- the stride for the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(IComplexNumber[] data, int[] shape, char ordering)
Description copied from interface:NDArrayFactoryCreates a complex ndarray with the specified shape- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset)
Creates a complex ndarray with the specified shape- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
data- the data to use with the ndarrayshape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
create
public INDArray create(int[] shape, char ordering)
-
create
public INDArray create(DataBuffer data, int[] newShape, int[] newStride, int offset, char ordering)
-
createComplex
public IComplexNDArray createComplex(DataBuffer data, int[] newDims, int[] newStrides, int offset, char ordering)
-
createComplex
public IComplexNDArray createComplex(float[] data, java.lang.Character order)
-
create
public INDArray create(float[] data, int[] shape, int offset, java.lang.Character order)
-
create
public INDArray create(float[] data, int rows, int columns, int[] stride, int offset, char ordering)
-
create
public INDArray create(double[] data, int[] shape, char ordering)
-
create
public INDArray create(double[] data, int[] shape, int offset)
-
create
public INDArray create(double[] data, int[] shape, int[] stride, int offset, char ordering)
-
create
public INDArray create(float[] data, int[] shape, int[] stride, int offset)
Creates an ndarray with the specified shape- Specified by:
createin interfaceNDArrayFactory- Specified by:
createin classBaseNDArrayFactory- Parameters:
data-shape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset)
Creates a complex ndarray with the specified shape- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
data-shape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
create
public INDArray create(double[] data, int[] shape, int[] stride, int offset)
Creates an ndarray with the specified shape- Specified by:
createin interfaceNDArrayFactory- Specified by:
createin classBaseNDArrayFactory- Parameters:
data-shape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
create
public INDArray create(DataBuffer data, int[] shape)
Description copied from interface:NDArrayFactoryCreate an ndrray with the specified shape- Parameters:
data- the data to use with tne ndarrayshape- the shape of the ndarray- Returns:
- the created ndarray
-
createComplex
public IComplexNDArray createComplex(DataBuffer data, int[] shape)
Description copied from interface:NDArrayFactoryCreate an ndrray with the specified shape- Parameters:
data- the data to use with tne ndarrayshape- the shape of the ndarray- Returns:
- the created ndarray
-
createComplex
public IComplexNDArray createComplex(DataBuffer data, int[] shape, int[] stride)
Description copied from interface:NDArrayFactoryCreate an ndrray with the specified shape- Parameters:
data- the data to use with tne ndarrayshape- the shape of the ndarraystride- the stride for the ndarray- Returns:
- the created ndarray
-
create
public INDArray create(DataBuffer data, int[] shape, int[] stride, int offset)
Description copied from interface:NDArrayFactoryCreates an ndarray with the specified shapeshape- the shape of the ndarraystride- the stride for the ndarrayoffset- the offset of the ndarray- Returns:
- the instance
-
create
public INDArray create(java.util.List<INDArray> list, int[] shape)
Creates an ndarray with the specified shape- Specified by:
createin interfaceNDArrayFactory- Specified by:
createin classBaseNDArrayFactory- Parameters:
list-shape- the shape of the ndarray- Returns:
- the instance
-
createComplex
public IComplexNDArray createComplex(double[] data, int[] shape, int[] stride, int offset, char ordering)
Create a complex ndarray with the given data- Specified by:
createComplexin interfaceNDArrayFactory- Specified by:
createComplexin classBaseNDArrayFactory- Parameters:
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 ndarray- Returns:
- the created complex ndarray
-
createComplex
public IComplexNDArray createComplex(double[] data, int[] shape, int offset, char ordering)
- Specified by:
createComplexin interfaceNDArrayFactory- Overrides:
createComplexin classBaseNDArrayFactory- Parameters:
data-shape-offset-ordering-- Returns:
-
createComplex
public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset, char ordering)
-
createComplex
public IComplexNDArray createComplex(double[] data, int[] shape, int offset)
- Specified by:
createComplexin interfaceNDArrayFactory- Overrides:
createComplexin classBaseNDArrayFactory- Parameters:
data-shape-offset-- Returns:
-
createComplex
public IComplexNDArray createComplex(DataBuffer buffer, int[] shape, int offset)
-
createComplex
public IComplexNDArray createComplex(float[] data, int[] shape, int[] stride, int offset, char ordering)
Create a complex ndarray with the given data- Parameters:
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 ndarray- Returns:
- the created complex ndarray
-
create
public INDArray create(float[][] floats)
-
createComplex
public IComplexNDArray createComplex(float[] dim)
-
create
public INDArray create(float[] data, int[] shape, int[] stride, int offset, char ordering)
-
create
public INDArray create(DataBuffer buffer, int[] shape, int offset)
-
createComplex
public IComplexNDArray createComplex(float[] data, int[] shape, int offset, char ordering)
- Parameters:
data-shape-offset-ordering-- Returns:
-
createComplex
public IComplexNDArray createComplex(float[] data, int[] shape, int offset)
- Parameters:
data-shape-offset-- Returns:
-
create
public INDArray create(float[] data, int[] shape, int offset)
- Specified by:
createin interfaceNDArrayFactory- Overrides:
createin classBaseNDArrayFactory
-
-
DMelt 3.0 © DataMelt by jWork.ORG