|
Grangeat-based 2D/3D image registration
|
General tools. More...
#include <torch/extension.h>Go to the source code of this file.
Namespaces | |
| namespace | reg23 |
Macros | |
| #define | __host__ |
| #define | __device__ |
Functions | |
| template<typename T > | |
| __host__ __device__ T | reg23::Square (const T &x) |
| Returns the square of the given value. | |
| template<typename T > | |
| __host__ __device__ T | reg23::Modulo (const T &x, const T &y) |
| Modulo operation that respect the sign. | |
| template<typename T > | |
| __host__ __device__ T | reg23::Sign (const T &x) |
General tools.
| #define __device__ |
Definition of CUDA macro as nothing when compiling with just C++
| #define __host__ |
Definition of CUDA macro as nothing when compiling with just C++