|
Parallel Colt 0.7.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcuda.jcublas.JCuDoubleComplex
public class JCuDoubleComplex
Java port of the CUBLAS complex number structure for double precision numbers
Field Summary | |
---|---|
double |
x
The real part of the complex number |
double |
y
The imaginary part of the complex number |
Method Summary | |
---|---|
static double |
cuCabs(JCuDoubleComplex x)
Returns the absolute value of the given complex number Original comment: This implementation guards against intermediate underflow and overflow by scaling. |
static JCuDoubleComplex |
cuCadd(JCuDoubleComplex x,
JCuDoubleComplex y)
Returns a new complex number that is the sum of the given complex numbers |
static JCuDoubleComplex |
cuCdiv(JCuDoubleComplex x,
JCuDoubleComplex y)
Returns the quotient of the given complex numbers. Original comment: This implementation guards against intermediate underflow and overflow by scaling. |
static double |
cuCimag(JCuDoubleComplex x)
Returns the imaginary part of the given complex number |
static JCuDoubleComplex |
cuCmplx(double r,
double i)
Creates a new complex number consisting of the given real and imaginary part |
static JCuDoubleComplex |
cuCmul(JCuDoubleComplex x,
JCuDoubleComplex 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 JCuDoubleComplex |
cuConj(JCuDoubleComplex x)
Returns the complex conjugate of the given complex number |
static double |
cuCreal(JCuDoubleComplex x)
Returns the real part of the given complex number |
String |
toString()
Returns a String representation of this complex number |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double x
public double y
Method Detail |
---|
public static double cuCreal(JCuDoubleComplex x)
x
- The complex number whose real part should be returned
public static double cuCimag(JCuDoubleComplex x)
x
- The complex number whose imaginary part should be returned
public static JCuDoubleComplex cuCmplx(double r, double i)
r
- The real part of the complex numberi
- The imaginary part of the complex number
public static JCuDoubleComplex cuConj(JCuDoubleComplex x)
x
- The complex number whose complex conjugate should be returned
public static JCuDoubleComplex cuCadd(JCuDoubleComplex x, JCuDoubleComplex y)
x
- The first addendy
- The second addend
public static JCuDoubleComplex cuCmul(JCuDoubleComplex x, JCuDoubleComplex y)
x
- The first factory
- The second factor
public static JCuDoubleComplex cuCdiv(JCuDoubleComplex x, JCuDoubleComplex y)
x
- The dividendy
- The divisor
public static double cuCabs(JCuDoubleComplex x)
x
- The complex number whose absolute value should be returned
public String toString()
toString
in class Object
|
Parallel Colt 0.7.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |