Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
Data Structures | Public Types | Static Public Member Functions
iu::type_trait< double > Struct Template Reference

#include <typetraits.h>

Data Structures

struct  is_complex
 

Public Types

typedef double real_type
 
typedef double2 complex_type
 

Static Public Member Functions

static __host__ __device__ double2 make_complex (double x)
 
static __host__ __device__ double2 make_complex (double x, double y)
 
static __host__ __device__ double make (double x)
 
static __host__ __device__ double abs (double x)
 
static __host__ __device__ double max (double x, double y)
 
static const char * name ()
 

Detailed Description

template<>
struct iu::type_trait< double >

Wrapper class for double to allow more efficient templating.

Member Typedef Documentation

typedef double2 iu::type_trait< double >::complex_type

Define basic complex type (double2)

typedef double iu::type_trait< double >::real_type

Define basic real type (double)

Member Function Documentation

static __host__ __device__ double iu::type_trait< double >::abs ( double  x)
inlinestatic

Compute absolute value.

static __host__ __device__ double iu::type_trait< double >::make ( double  x)
inlinestatic

Make double from a single double value.

static __host__ __device__ double2 iu::type_trait< double >::make_complex ( double  x)
inlinestatic

Make float2 from a single float value.

static __host__ __device__ double2 iu::type_trait< double >::make_complex ( double  x,
double  y 
)
inlinestatic

Make float2 from two float values.

static __host__ __device__ double iu::type_trait< double >::max ( double  x,
double  y 
)
inlinestatic

Compute maximum value.

static const char* iu::type_trait< double >::name ( )
inlinestatic

Return type name.


The documentation for this struct was generated from the following file: