C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

Public Types | List of all members
TensorIface Class Referenceabstract

Abstract interface class for a data management component responsible for representation of data in the numeric format. This class declares the most general methods for data access. More...

Public Types

enum  MemoryStatus { notAllocated = 0, userAllocated = 1, internallyAllocated = 2 }
 Enumeration to specify the status of memory related to the Numeric Table. More...
 
enum  AllocationFlag { doNotAllocate = 0, notAllocate = 0, doAllocate = 1 }
 Enumeration to specify whether the Numeric Table must allocate memory. More...
 

Class Declaration

Member Enumeration Documentation

◆ AllocationFlag

Enumerator
doNotAllocate 

Memory will not be allocated by Tensor

notAllocate 

Memory will not be allocated by Tensor

Deprecated:
This item will be removed in a future release. Use doNotAllocate instead.
doAllocate 

Memory will be allocated by Tensor when needed

◆ MemoryStatus

Enumerator
notAllocated 

No memory allocated

userAllocated 

Memory allocated on user side

internallyAllocated 

Memory allocated and managed by Tensor

Member Function Documentation

◆ allocateDataMemory()

virtual DAAL_DEPRECATED_VIRTUAL services::Status allocateDataMemory ( daal::MemType  type = daal::dram)
pure virtual

Allocates memory for a data set

Deprecated:
This item will be removed in a future release.

Implemented in Tensor.

◆ check()

virtual services::Status check ( const char *  description) const
pure virtual

Checks the correctness of this tensor

Parameters
[in]descriptionAdditional information about error
Returns
Check status: True if the tensor satisfies the requirements, false otherwise.

Implemented in Tensor.

◆ freeDataMemory()

virtual DAAL_DEPRECATED_VIRTUAL services::Status freeDataMemory ( )
pure virtual

Deallocates the memory allocated for a data set

Deprecated:
This item will be removed in a future release.

Implemented in Tensor.

◆ getSampleTensor()

virtual DAAL_DEPRECATED_VIRTUAL TensorPtr getSampleTensor ( size_t  firstDimIndex)
pure virtual

Returns new tensor with first dimension limited to one point

Parameters
[in]firstDimIndexIndex of the point in the first dimention
Deprecated:
This item will be removed in a future release.

Implemented in HomogenTensor< DataType >.

◆ setDimensions() [1/2]

virtual services::Status setDimensions ( size_t  ndim,
const size_t *  dimSizes 
)
pure virtual

Sets the number of dimensions in the Tensor

Parameters
[in]ndimNumber of dimensions
[in]dimSizesArray with sizes for each dimension

Implemented in HomogenTensor< DataType >.

◆ setDimensions() [2/2]

virtual services::Status setDimensions ( const services::Collection< size_t > &  dimensions)
pure virtual

Sets the number and size of dimensions in the Tensor

Parameters
[in]dimensionsCollection with sizes for each dimension

Implemented in HomogenTensor< DataType >.


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

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