rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
operation_signature.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/operand_specification.hpp>
6#include <rexlib/core/operation/operation_arity.hpp>
7#include <rexlib/core/operation/operation_descriptor.hpp>
8
9#include <rexlib/core/platform/dynamic_shared_object.h>
10#include <rexlib/core/span.hpp>
11
12namespace rexlib
13{
14
92
93} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Describes the operand count of an operation.
Definition operation_arity.hpp:16
Immutable static description of an operation type.
Definition operation_descriptor.hpp:30
Interface deciding the shape and data type of the operands of an operation.
Definition operation_signature.hpp:31
virtual operation_arity get_arity() const noexcept=0
Get the number of output and input operands.
virtual void deduce(const operation_descriptor &descriptor, span< operand_specification > canonical_outputs, span< const operand_specification > inputs) const =0
Compute the output operands the inputs call for.
virtual void accept(const operation_descriptor &descriptor, span< const operand_specification > user_outputs, span< const operand_specification > inputs) const =0
Decide whether output operands supplied in advance are admissible.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
@ inputs
Bound by the input axes that name the variable.