Java* API Reference for Intel® Data Analytics Acceleration Library 2018 Update 1

List of all members
HomogenNumericTable Class Reference

A derivative class of the NumericTable class, that provides methods to access the data that is stored as a contiguous array of homogeneous feature vectors. Table rows contain feature vectors, and columns contain values of individual features. More...

Class Constructor

HomogenNumericTable ( DaalContext  context,
HomogenNumericTableImpl  impl 
)

Constructs homogeneous numeric table using implementation provided by user

Parameters
contextContext to manage created homogeneous numeric table
implImplementation of homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
double[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of doubles

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
double[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of doubles

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
float[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of floats

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
float[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of floats

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
long[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of longs

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
long[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of longs

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
int[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of integers

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
int[]  data,
long  nFeatures,
long  nVectors 
)

Constructs homogeneous numeric table from the array of integers

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
HomogenNumericTable ( DaalContext  context,
double[]  data,
long  nFeatures,
long  nVectors,
double  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
double[]  data,
long  nFeatures,
long  nVectors,
double  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
float[]  data,
long  nFeatures,
long  nVectors,
float  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
float[]  data,
long  nFeatures,
long  nVectors,
float  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
long[]  data,
long  nFeatures,
long  nVectors,
long  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
long[]  data,
long  nFeatures,
long  nVectors,
long  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
int[]  data,
long  nFeatures,
long  nVectors,
int  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
int[]  data,
long  nFeatures,
long  nVectors,
int  constValue 
)

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

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
dataArray of size nVectors x nFeatures
nFeaturesNumber of features in numeric table
nVectorsNumber of feature vectors in numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
long  cTable 
)

Constructs homogeneous numeric table from C++ homogeneous numeric table

Parameters
contextContext to manage created homogeneous numeric table
cTablePointer to C++ numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns 
)

Constructs homogeneous numeric table without memory allocation

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns 
)

Constructs homogeneous numeric table without memory allocation

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
double  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
double  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
float  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
float  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
long  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
long  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
int  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
DataDictionary.FeaturesEqual  featuresEqual,
Class<?extends Number >  cls,
long  nColumns,
long  nRows,
AllocationFlag  allocFlag,
int  constValue 
)

Constructs homogeneous numeric table with memory allocation controlled via a flag and filling the table with a constant

Parameters
contextContext to manage created homogeneous numeric table
featuresEqualFlag that makes all features in the Numeric Table Data Dictionary equal
clsNumeric type of values in the table
nColumnsNumber of columns in the table
nRowsNumber of rows in the table
allocFlagFlag that controls internal memory allocation for data in the numeric table
constValueConstant to initialize entries of the homogeneous numeric table
HomogenNumericTable ( DaalContext  context,
Class<?extends Number >  cls,
DataDictionary  dict 
)

Constructs an empty Numeric Table with a predefined Data Dictionary

Parameters
contextContext to manage created homogeneous numeric table
clsNumeric type of values in the table
dictPredefined Data Dictionary

Detailed Description

Member Function Documentation

void assign ( long  constValue)

Fills a numeric table with a constant

Parameters
constValueConstant to initialize entries of the homogeneous numeric table
void assign ( int  constValue)

Fills a numeric table with a constant

Parameters
constValueConstant to initialize entries of the homogeneous numeric table
void assign ( double  constValue)

Fills a numeric table with a constant

Parameters
constValueConstant to initialize entries of the homogeneous numeric table
void assign ( float  constValue)

Fills a numeric table with a constant

Parameters
constValueConstant to initialize entries of the homogeneous numeric table
DoubleBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.DoubleBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the DoubleBuffer
FloatBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.FloatBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the FloatBuffer
IntBuffer getBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Gets block of values for a given feature and returns it to java.nio.IntBuffer. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufBuffer to store results
Returns
Block of values of the feature packed into the IntBuffer
DoubleBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.DoubleBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into DoubleBuffer
FloatBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.FloatBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into FloatBuffer
IntBuffer getBlockOfRows ( long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Reads block of rows from the table and returns it to java.nio.IntBuffer. This method needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufBuffer to store results
Returns
Block of table rows packed into IntBuffer
Object getDataObject ( )

Gets data as an Object

Returns
Table data as an Object
double [] getDoubleArray ( )

Gets data as an array of doubles

Returns
Table data as an array of double
float [] getFloatArray ( )

Gets data as an array of floats

Returns
Table data as an array of floats
long [] getLongArray ( )

Gets data as an array of longs

Returns
Table data as an array of longs
Class<? extends Number> getNumericType ( )

Gets numeric type of data stored in numeric table

Returns
Numeric type of table data
void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Transfers the values of a given feature from the input DoubleBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput DoubleBuffer of size vectorNum
void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Transfers the values of a given feature from the input FloatBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput FloatBuffer of size vectorNum
void releaseBlockOfColumnValues ( long  featureIndex,
long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Transfers the values of a given feature from the input IntBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.

Parameters
featureIndexIndex of the feature
vectorIndexIndex of the first row to include into the block
vectorNumNumber of values in the block
bufInput IntBuffer of size vectorNum
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
FloatBuffer  buf 
)

Transfers the data from the input FloatBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput FloatBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
DoubleBuffer  buf 
)

Transfers the data from the input DoubleBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput DoubleBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table
void releaseBlockOfRows ( long  vectorIndex,
long  vectorNum,
IntBuffer  buf 
)

Transfers the data from the input IntBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.

Parameters
vectorIndexIndex of the first row to include into the block
vectorNumNumber of rows in the block
bufInput IntBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table

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

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