rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
shared_rule_signature.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/operation_signature.hpp>
6
7namespace rexlib
8{
9
24template <typename ShapeRule, typename TypeRule>
26{
27 static_assert(
28 !ShapeRule::requires_parameters,
29 "A shape rule reading values of the operation instance cannot be "
30 "shared. Own a rule_signature holding the parameters "
31 "instead."
32 );
33
34 static_assert(
35 !TypeRule::requires_parameters,
36 "A typing rule with an operation supplied pivot cannot be shared. "
37 "Own a rule_signature holding the parameters instead."
38 );
39
46};
47
48} // namespace rexlib
49
50#include "shared_rule_signature.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Interface deciding the shape and data type of the operands of an operation.
Definition operation_signature.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
The signature of every operation that takes no parameters and follows a given pair of rules.
Definition shared_rule_signature.hpp:26
static const operation_signature & get() noexcept
Get the signature.