rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
extent_pivot.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/shape_rule/any_extent_domain.hpp>
6#include <rexlib/core/operation/shape_rule/extent_pivot_source.hpp>
7#include <rexlib/core/operation/shape_rule/fixed_extent.hpp>
8
9#include <rexlib/core/platform/constexpr.hpp>
10
11#include <cstddef>
12
13namespace rexlib
14{
15
22REXLIB_INLINE_CONST_CONSTEXPR
23std::size_t max_extent_pivot_count = 8;
24
40template <extent_pivot_source Source, typename Accessor, typename Domain>
42{
43 static REXLIB_CONST_CONSTEXPR extent_pivot_source source = Source;
44
45 using accessor_type = Accessor;
46 using domain_type = Domain;
47};
48
54template <typename Domain = any_extent_domain>
57
68template <typename Accessor, typename Domain = any_extent_domain>
71
82template <std::size_t N>
87>;
88
89} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
REXLIB_INLINE_CONST_CONSTEXPR std::size_t max_extent_pivot_count
Maximum number of extent variables a shape rule may declare.
Definition extent_pivot.hpp:23
extent_pivot_source
Origin of the value of a shape rule extent variable.
Definition extent_pivot_source.hpp:12
@ fixed
Fixed by the declaration of the operation.
Domain admitting every extent.
Definition any_extent_domain.hpp:16
Declaration of one extent variable of a shape rule.
Definition extent_pivot.hpp:42