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

List of all members
Tensor Class Referenceabstract

Class for a data management component responsible for representation of data in the n-dimensions numeric format. This class implements the most general methods for data access. More...

Additional Inherited Members

- Public Types inherited from TensorIface
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.

Constructor & Destructor Documentation

Tensor ( TensorLayout layoutPtr)
inline

Constructor for a Tensor with predefined layout

Parameters
[in]layoutPtrPointer to the Tensor Layout
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED Tensor ( )
inline

Constructor for an empty Tenor

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

Member Function Documentation

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

Allocates memory for a data set

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

Implements TensorIface.

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

Checks the correctness of this tensor

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

Implements TensorIface.

DAAL_DEPRECATED_VIRTUAL services::Status freeDataMemory ( )
inlinevirtual

Deallocates the memory allocated for a data set

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

Implements TensorIface.

MemoryStatus getDataMemoryStatus ( ) const
inline

Gets the status of the memory used by a data set connected with a Tensor

const services::Collection<size_t>& getDimensions ( ) const
inline

Gets the size of dimensions in the Tensor

Returns
Collection with sizes for each dimension
size_t getDimensionSize ( size_t  dimIdx) const
inline

Gets the size of the dimension in the Tensor

Parameters
[in]dimIdxIndex of dimension
Returns
Dimension size
DAAL_DEPRECATED services::SharedPtr<services::KernelErrorCollection> getErrors ( )
inline

Returns errors during the computation

Returns
Errors during the computation
Deprecated:
This item will be removed in a future release.
size_t getNumberOfDimensions ( ) const
inline

Gets the number of dimensions in the Tensor

Returns
Number of dimensions
size_t getSize ( ) const

Returns the full size of the tensor in number of elements

Returns
The full size of the tensor in number of elements
size_t getSize ( size_t  startingIdx,
size_t  rangeSize 
) const

Returns the product of sizes of the range of dimensions

Parameters
[in]startingIdxThe first dimension to include in the range
[in]rangeSizeNumber of dimensions to include in the range
Returns
The product of sizes of the range of dimensions

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

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