|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
The axes a reduction acts along, and whether its result keeps them with an extent of one. More...
#include <rexlib/ops/parameters/reduction_axes.hpp>
Public Member Functions | |
| reduction_axes (axis_list axes, bool keep_dimensions=false) noexcept | |
| Construct the parameters of a reduction. | |
| span< const std::size_t > | get_axes () const noexcept |
| Get the axes reduced. | |
| bool | get_keep_dimensions () const noexcept |
| Check whether the result keeps the reduced axes. | |
The axes a reduction acts along, and whether its result keeps them with an extent of one.
The axes keep the order they were given in. Whether they are admissible is for the shape rule of the operation to decide.
|
explicitnoexcept |
Construct the parameters of a reduction.
| axes | The axes reduced. |
| keep_dimensions | Whether the result keeps the reduced axes with an extent of one. |
Get the axes reduced.
|
noexcept |
Check whether the result keeps the reduced axes.