Woolz Image Processing
Version 1.7.5
|
Files | |
file | AlgComplexUtils.c |
Provides basic complex number utilities. | |
Functions | |
double | AlgCModSq (ComplexD z) |
Computes the square of the modulus of the given complex value. More... | |
double | AlgCMod (ComplexD z) |
Computes the modulus of the given complex value. More... | |
double | AlgCArg (ComplexD z) |
Computes the argument of the given complex value. More... | |
double | AlgCRe (ComplexD z) |
Returns the real component of the given complex value. More... | |
double | AlgCIm (ComplexD z) |
Returns the imaginary component of the given complex value. More... | |
ComplexD | AlgCConj (ComplexD z) |
Returns the complex conjugate of the given complex value. More... | |
ComplexD | AlgCAdd (ComplexD z1, ComplexD z2) |
Computes the sum of the two given complex values. More... | |
ComplexD | AlgCSub (ComplexD z1, ComplexD z2) |
Subtracts the second complex value from the first. More... | |
ComplexD | AlgCMult (ComplexD z1, ComplexD z2) |
Multiplies the second complex value with the first. More... | |
ComplexD | AlgCDiv (ComplexD z1, ComplexD z2) |
Divides the first complex value by the second. More... | |
ComplexD | AlgCPow (ComplexD z, double y) |
Pomputes the value of the given complex value to the power of the given real value. More... | |
double AlgCModSq | ( | ComplexD | z | ) |
Computes the square of the modulus of the given complex value.
z | Given complex value. |
References _ComplexD::im, and _ComplexD::re.
Referenced by AlgCDiv().
double AlgCMod | ( | ComplexD | z | ) |
Computes the modulus of the given complex value.
z | Given complex value. |
References _ComplexD::im, and _ComplexD::re.
Referenced by AlgCPow().
double AlgCArg | ( | ComplexD | z | ) |
Computes the argument of the given complex value.
z | Given complex value. |
References _ComplexD::im, and _ComplexD::re.
Referenced by AlgCPow().
double AlgCRe | ( | ComplexD | z | ) |
Returns the real component of the given complex value.
z | Given complex value. |
References _ComplexD::re.
double AlgCIm | ( | ComplexD | z | ) |
Returns the imaginary component of the given complex value.
z | Given complex value. |
References _ComplexD::im.
Returns the complex conjugate of the given complex value.
z | Given complex value. |
References _ComplexD::im, and _ComplexD::re.
Referenced by AlgCDiv().
Computes the sum of the two given complex values.
z1 | First complex value. |
z2 | Second complex value. |
References _ComplexD::im, and _ComplexD::re.
Subtracts the second complex value from the first.
z1 | First complex value. |
z2 | Second complex value. |
References _ComplexD::im, and _ComplexD::re.
Multiplies the second complex value with the first.
z1 | First complex value. |
z2 | Second complex value. |
References _ComplexD::im, and _ComplexD::re.
Referenced by AlgCDiv(), WlzBasisFnConf2DFromCPts(), and WlzBasisFnValueConf2D().
Divides the first complex value by the second.
z1 | First complex value. |
z2 | Second complex value. |
References AlgCConj(), AlgCModSq(), AlgCMult(), _ComplexD::im, and _ComplexD::re.
Pomputes the value of the given complex value to the power of the given real value.
z | Given complex value. |
y | Given real value. |
References AlgCArg(), AlgCMod(), _ComplexD::im, and _ComplexD::re.