rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::ops::reduction_axes Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ reduction_axes()

rexlib::ops::reduction_axes::reduction_axes ( axis_list  axes,
bool  keep_dimensions = false 
)
explicitnoexcept

Construct the parameters of a reduction.

Parameters
axesThe axes reduced.
keep_dimensionsWhether the result keeps the reduced axes with an extent of one.

Member Function Documentation

◆ get_axes()

span< const std::size_t > rexlib::ops::reduction_axes::get_axes ( ) const
noexcept

Get the axes reduced.

Returns
span<const std::size_t> The axes, in the order given.

◆ get_keep_dimensions()

bool rexlib::ops::reduction_axes::get_keep_dimensions ( ) const
noexcept

Check whether the result keeps the reduced axes.

Returns
true The reduced axes are kept with an extent of one.
false The reduced axes are dropped.

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