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

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

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

Member Enumeration Documentation

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.
doAllocate 

Memory will be allocated by Tensor when needed

Enumerator
notAllocated 

No memory allocated

userAllocated 

Memory allocated on user side

internallyAllocated 

Memory allocated and managed by Tensor

Member Function Documentation

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.

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.

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.

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 >.

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 >.

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.