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< float > Struct Template Reference

#include <typetraits.h>

Data Structures

struct  is_complex
 

Public Types

typedef float real_type
 
typedef float2 complex_type
 

Static Public Member Functions

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

Detailed Description

template<>
struct iu::type_trait< float >

Wrapper class for float to allow more efficient templating.

Member Typedef Documentation

typedef float2 iu::type_trait< float >::complex_type

Define basic complex type (float2)

typedef float iu::type_trait< float >::real_type

Define basic real type (float)

Member Function Documentation

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

Compute absolute value.

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

Make float from a single float value.

static __host__ __device__ float2 iu::type_trait< float >::make_complex ( float  x)
inlinestatic

Make float2 from a single float value.

static __host__ __device__ float2 iu::type_trait< float >::make_complex ( float  x,
float  y 
)
inlinestatic

Make float2 from two float values.

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

Compute maximum value.

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

Return type name.


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