MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
operators.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__host__ static __device__
__inline__ cuDoubleComplex 
operator- (const cuDoubleComplex &a)
__host__ static __device__
__inline__ cuDoubleComplex 
operator+ (const cuDoubleComplex a, const cuDoubleComplex b)
__host__ static __device__
__inline__ void 
operator+= (cuDoubleComplex &a, const cuDoubleComplex b)
__host__ static __device__
__inline__ cuDoubleComplex 
operator- (const cuDoubleComplex a, const cuDoubleComplex b)
__host__ static __device__
__inline__ void 
operator-= (cuDoubleComplex &a, const cuDoubleComplex b)
__host__ static __device__
__inline__ cuDoubleComplex 
operator* (const cuDoubleComplex a, const cuDoubleComplex b)
__host__ static __device__
__inline__ cuDoubleComplex 
operator* (const cuDoubleComplex a, const double s)
__host__ static __device__
__inline__ cuDoubleComplex 
operator* (const double s, const cuDoubleComplex a)
__host__ static __device__
__inline__ void 
operator*= (cuDoubleComplex &a, const cuDoubleComplex b)
__host__ static __device__
__inline__ void 
operator*= (cuDoubleComplex &a, const double s)
__host__ static __device__
__inline__ cuFloatComplex 
operator- (const cuFloatComplex &a)
__host__ static __device__
__inline__ cuFloatComplex 
operator+ (const cuFloatComplex a, const cuFloatComplex b)
__host__ static __device__
__inline__ void 
operator+= (cuFloatComplex &a, const cuFloatComplex b)
__host__ static __device__
__inline__ cuFloatComplex 
operator- (const cuFloatComplex a, const cuFloatComplex b)
__host__ static __device__
__inline__ void 
operator-= (cuFloatComplex &a, const cuFloatComplex b)
__host__ static __device__
__inline__ cuFloatComplex 
operator* (const cuFloatComplex a, const cuFloatComplex b)
__host__ static __device__
__inline__ cuFloatComplex 
operator* (const cuFloatComplex a, const float s)
__host__ static __device__
__inline__ cuFloatComplex 
operator* (const float s, const cuFloatComplex a)
__host__ static __device__
__inline__ void 
operator*= (cuFloatComplex &a, const cuFloatComplex b)
__host__ static __device__
__inline__ void 
operator*= (cuFloatComplex &a, const float s)

Function Documentation

__host__ static __device__ __inline__ cuDoubleComplex operator* ( const cuDoubleComplex  a,
const cuDoubleComplex  b 
)
static

Definition at line 50 of file operators.h.

{
return make_cuDoubleComplex(a.x * b.x - a.y * b.y, a.y * b.x + a.x * b.y);
}
__host__ static __device__ __inline__ cuDoubleComplex operator* ( const cuDoubleComplex  a,
const double  s 
)
static

Definition at line 56 of file operators.h.

{
return make_cuDoubleComplex(a.x * s, a.y * s);
}
__host__ static __device__ __inline__ cuDoubleComplex operator* ( const double  s,
const cuDoubleComplex  a 
)
static

Definition at line 62 of file operators.h.

{
return make_cuDoubleComplex(a.x * s, a.y * s);
}
__host__ static __device__ __inline__ cuFloatComplex operator* ( const cuFloatComplex  a,
const cuFloatComplex  b 
)
static

Definition at line 116 of file operators.h.

{
return make_cuFloatComplex(a.x * b.x - a.y * b.y, a.y * b.x + a.x * b.y);
}
__host__ static __device__ __inline__ cuFloatComplex operator* ( const cuFloatComplex  a,
const float  s 
)
static

Definition at line 122 of file operators.h.

{
return make_cuFloatComplex(a.x * s, a.y * s);
}
__host__ static __device__ __inline__ cuFloatComplex operator* ( const float  s,
const cuFloatComplex  a 
)
static

Definition at line 128 of file operators.h.

{
return make_cuFloatComplex(a.x * s, a.y * s);
}
__host__ static __device__ __inline__ void operator*= ( cuDoubleComplex &  a,
const cuDoubleComplex  b 
)
static

Definition at line 68 of file operators.h.

{
double tmp = a.y * b.x + a.x * b.y;
a.x = a.x * b.x - a.y * b.y;
a.y = tmp;
}
__host__ static __device__ __inline__ void operator*= ( cuDoubleComplex &  a,
const double  s 
)
static

Definition at line 76 of file operators.h.

{
a.x *= s; a.y *= s;
}
__host__ static __device__ __inline__ void operator*= ( cuFloatComplex &  a,
const cuFloatComplex  b 
)
static

Definition at line 134 of file operators.h.

{
float tmp = a.y * b.x + a.x * b.y;
a.x = a.x * b.x - a.y * b.y;
a.y = tmp;
}
__host__ static __device__ __inline__ void operator*= ( cuFloatComplex &  a,
const float  s 
)
static

Definition at line 142 of file operators.h.

{
a.x *= s; a.y *= s;
}
__host__ static __device__ __inline__ cuDoubleComplex operator+ ( const cuDoubleComplex  a,
const cuDoubleComplex  b 
)
static

Definition at line 26 of file operators.h.

{
return make_cuDoubleComplex(a.x + b.x, a.y + b.y);
}
__host__ static __device__ __inline__ cuFloatComplex operator+ ( const cuFloatComplex  a,
const cuFloatComplex  b 
)
static

Definition at line 92 of file operators.h.

{
return make_cuFloatComplex(a.x + b.x, a.y + b.y);
}
__host__ static __device__ __inline__ void operator+= ( cuDoubleComplex &  a,
const cuDoubleComplex  b 
)
static

Definition at line 32 of file operators.h.

{
a.x += b.x; a.y += b.y;
}
__host__ static __device__ __inline__ void operator+= ( cuFloatComplex &  a,
const cuFloatComplex  b 
)
static

Definition at line 98 of file operators.h.

{
a.x += b.x; a.y += b.y;
}
__host__ static __device__ __inline__ cuDoubleComplex operator- ( const cuDoubleComplex &  a)
static

Definition at line 20 of file operators.h.

{
return make_cuDoubleComplex(-a.x, -a.y);
}
__host__ static __device__ __inline__ cuDoubleComplex operator- ( const cuDoubleComplex  a,
const cuDoubleComplex  b 
)
static

Definition at line 38 of file operators.h.

{
return make_cuDoubleComplex(a.x - b.x, a.y - b.y);
}
__host__ static __device__ __inline__ cuFloatComplex operator- ( const cuFloatComplex &  a)
static

Definition at line 86 of file operators.h.

{
return make_cuFloatComplex(-a.x, -a.y);
}
__host__ static __device__ __inline__ cuFloatComplex operator- ( const cuFloatComplex  a,
const cuFloatComplex  b 
)
static

Definition at line 104 of file operators.h.

{
return make_cuFloatComplex(a.x - b.x, a.y - b.y);
}
__host__ static __device__ __inline__ void operator-= ( cuDoubleComplex &  a,
const cuDoubleComplex  b 
)
static

Definition at line 44 of file operators.h.

{
a.x -= b.x; a.y -= b.y;
}
__host__ static __device__ __inline__ void operator-= ( cuFloatComplex &  a,
const cuFloatComplex  b 
)
static

Definition at line 110 of file operators.h.

{
a.x -= b.x; a.y -= b.y;
}