rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
numerical_cast.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "../platform/attributes.hpp"
6
7#include <complex>
8#include <type_traits>
9
10namespace rexlib
11{
12
31template <typename T, typename Q>
33T numerical_cast(const Q &src) noexcept;
34
35} // namespace rexlib
36
37#include "numerical_cast.inl"
#define REXLIB_NODISCARD
Indicates that the return value should be used.
Definition attributes.hpp:76
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_NODISCARD T numerical_cast(const Q &src) noexcept
Explicitly cast a numerical value from one type to another.