Package | Description |
---|---|
jcuda |
Modifier and Type | Method and Description |
---|---|
static cuComplex |
cuComplex.cuCadd(cuComplex x,
cuComplex y)
Returns a new complex number that is the sum of the given
complex numbers.
|
static cuComplex |
cuComplex.cuCdiv(cuComplex x,
cuComplex y)
Returns the quotient of the given complex numbers.
Original comment: This implementation guards against intermediate underflow and overflow by scaling. |
static cuComplex |
cuComplex.cuCmplx(float r,
float i)
Creates a new complex number consisting of the given real and
imaginary part.
|
static cuComplex |
cuComplex.cuCmul(cuComplex x,
cuComplex y)
Returns the product of the given complex numbers.
Original comment: This implementation could suffer from intermediate overflow even though the final result would be in range. |
static cuComplex |
cuComplex.cuConj(cuComplex x)
Returns the complex conjugate of the given complex number.
|
Modifier and Type | Method and Description |
---|---|
static float |
cuComplex.cuCabs(cuComplex x)
Returns the absolute value of the given complex number.
Original comment: This implementation guards against intermediate underflow and overflow by scaling. |
static cuComplex |
cuComplex.cuCadd(cuComplex x,
cuComplex y)
Returns a new complex number that is the sum of the given
complex numbers.
|
static cuComplex |
cuComplex.cuCdiv(cuComplex x,
cuComplex y)
Returns the quotient of the given complex numbers.
Original comment: This implementation guards against intermediate underflow and overflow by scaling. |
static float |
cuComplex.cuCimag(cuComplex x)
Returns the imaginary part of the given complex number.
|
static cuComplex |
cuComplex.cuCmul(cuComplex x,
cuComplex y)
Returns the product of the given complex numbers.
Original comment: This implementation could suffer from intermediate overflow even though the final result would be in range. |
static cuComplex |
cuComplex.cuConj(cuComplex x)
Returns the complex conjugate of the given complex number.
|
static float |
cuComplex.cuCreal(cuComplex x)
Returns the real part of the given complex number.
|
Copyright © 2014. All Rights Reserved.