Class for a data management component responsible for representation of data layout in the HomogenTensor.
More...
- Deprecated:
- This item will be removed in a future release.
Constructor for TensorOffsetLayout with default layout
- Parameters
-
[in] | dims | The size of dimensions in the Tensor layout |
- Deprecated:
- This item will be removed in a future release.
DAAL_DEPRECATED TensorOffsetLayout |
( |
const services::Collection< size_t > & |
dims, |
|
|
const services::Collection< size_t > & |
offsets, |
|
|
const services::Collection< size_t > & |
indices |
|
) |
| |
|
inline |
Constructor for TensorOffsetLayout with layout defined with offsets between adjacent elements in each dimension
- Parameters
-
[in] | dims | The size of dimensions in the Tensor layout |
[in] | offsets | The offsets between adjacent elements in each dimension |
[in] | indices | Collection with dimensions order |
- Deprecated:
- This item will be removed in a future release.
const services::Collection<size_t>& getIndices |
( |
| ) |
const |
|
inline |
Gets the dimensions order
- Returns
- Collection with dimensions order
const services::Collection<size_t>& getOffsets |
( |
| ) |
const |
|
inline |
Gets the offsets between adjacent elements in each dimension
- Returns
- Collection with offsets for each dimension
virtual int getSerializationTag |
( |
| ) |
const |
|
inlinevirtual |
Returns a serialization tag, a unique identifier of this class used in serialization
- Returns
- Serialization tag
Implements SerializationIface.
Checks if layout is equal to given
- Parameters
-
[in] | layout | The layout type to compare with |
- Returns
- True or false
virtual services::Status shuffleDimensions |
( |
const services::Collection< size_t > & |
dimsOrder | ) |
|
|
virtual |
Sets the new order of existing dimension in the Tensor
- Parameters
-
[in] | dimsOrder | Collection with the new indices for each dimension |
Implements TensorLayoutIface.
The documentation for this class was generated from the following file: