rexlib
0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
rexlib
core
operation
type_rule
same_type_transform.hpp
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include <rexlib/core/numerical/numerical_type.hpp>
6
#include <rexlib/core/numerical/numerical_type_domain_tags.hpp>
7
#include <rexlib/core/numerical/numerical_type_traits.hpp>
8
9
namespace
rexlib
10
{
11
51
struct
same_type_transform
52
{
53
using
domain_type
=
any_type_domain
;
54
60
static
const
char
*
get_relation
()
noexcept
;
61
68
static
numerical_type
apply
(
numerical_type
type)
noexcept
;
69
75
template
<
typename
T
>
76
struct
apply_type
77
{
78
using
type
=
T
;
79
};
80
};
81
82
}
// namespace rexlib
83
84
#include "same_type_transform.inl"
rexlib::array
Container for multidimensional numeric data.
Definition
array.hpp:31
rexlib
Arrays, the operations on them and the devices that run those operations.
Definition
cpu_device.hpp:10
rexlib::numerical_type
numerical_type
Representation of all considered numerical types for computations.
Definition
numerical_type.hpp:19
rexlib::any_type_domain
Named domain holding every representable type.
Definition
numerical_type_domain_tags.hpp:199
rexlib::same_type_transform::apply_type
Apply the transform to a native pivot type.
Definition
same_type_transform.hpp:77
rexlib::same_type_transform
Transform mapping a pivot type onto itself.
Definition
same_type_transform.hpp:52
rexlib::same_type_transform::get_relation
static const char * get_relation() noexcept
Get a fragment naming the mapping, for diagnostics.
rexlib::same_type_transform::apply
static numerical_type apply(numerical_type type) noexcept
Apply the transform to a pivot type.
Generated by
1.9.8