C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Public Types | List of all members
CSRNumericTableIface Class Referenceabstract

Abstract class that defines the interface of CSR numeric tables. More...

Public Types

enum  CSRIndexing { zeroBased = 0, oneBased = 1 }
 Enumeration to specify the indexing scheme for access to data in the CSR layout. More...
 

Class Declaration

Member Enumeration Documentation

Enumerator
zeroBased 

0-based indexing

oneBased 

1-based indexing

Member Function Documentation

virtual size_t getDataSize ( )
pure virtual

Returns number of elements in values array.

Returns
Number of elements in values array.

Implemented in CSRNumericTable.

virtual services::Status getSparseBlock ( size_t  vector_idx,
size_t  vector_num,
ReadWriteMode  rwflag,
CSRBlockDescriptor< double > &  block 
)
pure virtual

Gets a block of feature vectors in the CSR layout.

Parameters
[in]vector_idxIndex of the first row to include into the block.
[in]vector_numNumber of rows in the block.
[in]rwflagFlag specifying read/write access to the block of feature vectors.
[out]blockThe block of feature values.
Returns
Actual number of feature vectors returned by the method.

Implemented in CSRNumericTable.

virtual services::Status getSparseBlock ( size_t  vector_idx,
size_t  vector_num,
ReadWriteMode  rwflag,
CSRBlockDescriptor< float > &  block 
)
pure virtual

Gets a block of feature vectors in the CSR layout.

Parameters
[in]vector_idxIndex of the first row to include into the block.
[in]vector_numNumber of rows in the block.
[in]rwflagFlag specifying read/write access to the block of feature vectors.
[out]blockThe block of feature values.
Returns
Actual number of feature vectors returned by the method.

Implemented in CSRNumericTable.

virtual services::Status getSparseBlock ( size_t  vector_idx,
size_t  vector_num,
ReadWriteMode  rwflag,
CSRBlockDescriptor< int > &  block 
)
pure virtual

Gets a block of feature vectors in the CSR layout.

Parameters
[in]vector_idxIndex of the first row to include into the block.
[in]vector_numNumber of rows in the block.
[in]rwflagFlag specifying read/write access to the block of feature vectors.
[out]blockThe block of feature values.
Returns
Actual number of feature vectors returned by the method.

Implemented in CSRNumericTable.

virtual services::Status releaseSparseBlock ( CSRBlockDescriptor< double > &  block)
pure virtual

Releases a block of feature vectors in the CSR layout.

Parameters
[in]blockThe block of feature values.

Implemented in CSRNumericTable.

virtual services::Status releaseSparseBlock ( CSRBlockDescriptor< float > &  block)
pure virtual

Releases a block of feature vectors in the CSR layout.

Parameters
[in]blockThe block of feature values.

Implemented in CSRNumericTable.

virtual services::Status releaseSparseBlock ( CSRBlockDescriptor< int > &  block)
pure virtual

Releases a block of feature vectors in the CSR layout.

Parameters
[in]blockThe block of feature values.

Implemented in CSRNumericTable.


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

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