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...
- Deprecated:
- This item will be removed in a future release.
Constructor for a Tensor with predefined layout
- Parameters
-
[in] | layoutPtr | Pointer to the Tensor Layout |
- Deprecated:
- This item will be removed in a future release.
Constructor for an empty Tenor
- Deprecated:
- This item will be removed in a future release.
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] | description | Additional 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.
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] | dimIdx | Index 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
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] | startingIdx | The first dimension to include in the range |
[in] | rangeSize | Number 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: