rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
type_pivot.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/type_rule/type_pivot_source.hpp>
6
7#include <rexlib/core/numerical/numerical_type_domain_tags.hpp>
8#include <rexlib/core/platform/constexpr.hpp>
9
10#include <cstddef>
11
12namespace rexlib
13{
14
21REXLIB_INLINE_CONST_CONSTEXPR
22std::size_t max_type_pivot_count = 8;
23
49template <
51 std::size_t Index,
52 typename Domain,
53 std::ptrdiff_t DefaultPivot = -1,
54 typename Accessor = void
55>
57{
58 static REXLIB_CONST_CONSTEXPR type_pivot_source source = Source;
59 static REXLIB_CONST_CONSTEXPR std::size_t index = Index;
60 static REXLIB_CONST_CONSTEXPR std::ptrdiff_t default_pivot = DefaultPivot;
61
62 using domain_type = Domain;
63 using accessor_type = Accessor;
64};
65
72template <std::size_t I, typename Domain = any_type_domain>
74
83template <
84 std::size_t I,
85 typename Domain = any_type_domain,
86 std::ptrdiff_t DefaultPivot = -1
87>
90
102template <typename Accessor, typename Domain = any_type_domain>
105
106} // 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_type_pivot_count
Maximum number of free variables a typing rule may declare.
Definition type_pivot.hpp:22
type_pivot_source
Origin of the value of a typing rule pivot.
Definition type_pivot_source.hpp:12
@ operation
Supplied by the operation instance at runtime.
Named domain holding every representable type.
Definition numerical_type_domain_tags.hpp:199
Declaration of one free variable of a typing rule.
Definition type_pivot.hpp:57