Grangeat-based 2D/3D image registration
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Global.h File Reference

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)
 

Detailed Description

General tools.

Macro Definition Documentation

◆ __device__

#define __device__

Definition of CUDA macro as nothing when compiling with just C++

◆ __host__

#define __host__

Definition of CUDA macro as nothing when compiling with just C++