Java* API Reference for Intel® Data Analytics Acceleration Library 2019

List of all members
HomogenTensor Class Reference

A derivative class of the Tensor class, that provides methods to access the data that is stored as a contiguous homogeneous array. More...

Class Constructor

HomogenTensor ( DaalContext  context,
HomogenTensorImpl  impl 
)

Constructs homogeneous tensor using implementation provided by user

Parameters
contextContext to manage created homogeneous tensor
implImplementation of homogeneous tensor
HomogenTensor ( DaalContext  context,
long[]  dims,
double[]  data 
)

Constructs homogeneous tensor from the array of doubles

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
HomogenTensor ( DaalContext  context,
long[]  dims,
float[]  data 
)

Constructs homogeneous tensor from the array of floats

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
HomogenTensor ( DaalContext  context,
long[]  dims,
int[]  data 
)

Constructs homogeneous tensor from the array of integers

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
HomogenTensor ( DaalContext  context,
long[]  dims,
long[]  data 
)

Constructs homogeneous tensor from the array of longs

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
HomogenTensor ( DaalContext  context,
long[]  dims,
double[]  data,
double  constValue 
)

Constructs homogeneous tensor from the array of doubles and filling the tensor with a constant

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
constValueConstant to initialize entries of the homogeneous tensor
HomogenTensor ( DaalContext  context,
long[]  dims,
float[]  data,
float  constValue 
)

Constructs homogeneous tensor from the array of floats and filling the tensor with a constant

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
constValueConstant to initialize entries of the homogeneous tensor
HomogenTensor ( DaalContext  context,
long[]  dims,
int[]  data,
int  constValue 
)

Constructs homogeneous tensor from the array of integers and filling the tensor with a constant

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
constValueConstant to initialize entries of the homogeneous tensor
HomogenTensor ( DaalContext  context,
long[]  dims,
long[]  data,
long  constValue 
)

Constructs homogeneous tensor from the array of longs and filling the tensor with a constant

Parameters
contextContext to manage created homogeneous tensor
dimsDimensions of the tensor
dataArray with the tensor data
constValueConstant to initialize entries of the homogeneous tensor
HomogenTensor ( DaalContext  context,
long  cObject 
)

Constructs homogeneous tensor from C++ homogeneous tensor

Parameters
contextContext to manage created homogeneous tensor
cObjectPointer to C++ tensor

Detailed Description

Member Function Documentation

Object getDataObject ( )

Gets data as an Object

Returns
Tensor data as an Object
Class<? extends Number> getNumericType ( )

Gets numeric type of data stored in the tensor

Returns
Numeric type of the tensor data
DoubleBuffer getSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
DoubleBuffer  buf 
)
FloatBuffer getSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
FloatBuffer  buf 
)
IntBuffer getSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
IntBuffer  buf 
)
void releaseSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
FloatBuffer  buf 
)
void releaseSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
DoubleBuffer  buf 
)
void releaseSubtensor ( long[]  fixedDims,
long  rangeDimIdx,
long  rangeDimNum,
IntBuffer  buf 
)

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.