|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Shape and data type of an operand. More...
#include <rexlib/core/operation/operand_specification.hpp>
Public Types | |
| using | shape_type = std::vector< std::size_t > |
Public Member Functions | |
| operand_specification () noexcept | |
| Construct a specification with no axes and an unknown type. | |
| operand_specification (shape_type shape, numerical_type data_type) noexcept | |
| Construct a specification. | |
| operand_specification (const operand_specification &other)=default | |
| operand_specification (operand_specification &&other) noexcept=default | |
| operand_specification & | operator= (const operand_specification &other)=default |
| operand_specification & | operator= (operand_specification &&other) noexcept=default |
| const shape_type & | get_shape () const noexcept |
| Get the extent of every axis. | |
| void | set_shape (shape_type shape) noexcept |
| Set the extent of every axis. | |
| numerical_type | get_data_type () const noexcept |
| Get the type of the elements. | |
| void | set_data_type (numerical_type data_type) noexcept |
| Set the type of the elements. | |
Static Public Member Functions | |
| static operand_specification | from_descriptor (const array_descriptor &descriptor) |
| Get the specification of an operand with a given descriptor. | |
Friends | |
| bool | operator== (const operand_specification &lhs, const operand_specification &rhs) noexcept |
| bool | operator!= (const operand_specification &lhs, const operand_specification &rhs) noexcept |
Shape and data type of an operand.
Describes an operand apart from where and how its elements are stored, so it holds neither strides nor an offset.
|
noexcept |
Construct a specification.
| shape | The extent of every axis. |
| data_type | The type of the elements. |
|
static |
Get the specification of an operand with a given descriptor.
| descriptor | The descriptor of the operand. |
descriptor.
|
noexcept |
Get the type of the elements.
|
noexcept |
Get the extent of every axis.
|
noexcept |
Set the type of the elements.
| data_type | The new data type. |
|
noexcept |
Set the extent of every axis.
| shape | The new shape. |