Package org.ejml.ops
Class ComplexMath_F64
java.lang.Object
org.ejml.ops.ComplexMath_F64
Basic math operations on complex numbers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconj(Complex_F64 input, Complex_F64 conj) Complex conjugatestatic voidconvert(Complex_F64 input, ComplexPolar_F64 output) Converts a complex number into polar notation.static voidconvert(ComplexPolar_F64 input, Complex_F64 output) Converts a complex number in polar notation into standard notation.static voiddivide(Complex_F64 a, Complex_F64 b, Complex_F64 result) Division: result = a / bstatic voiddivide(ComplexPolar_F64 a, ComplexPolar_F64 b, ComplexPolar_F64 result) Division in polar notation.static voidminus(Complex_F64 a, Complex_F64 b, Complex_F64 result) Subtraction: result = a - bstatic voidmultiply(Complex_F64 a, Complex_F64 b, Complex_F64 result) Multiplication: result = a * bstatic voidmultiply(ComplexPolar_F64 a, ComplexPolar_F64 b, ComplexPolar_F64 result) Division in polar notation.static voidplus(Complex_F64 a, Complex_F64 b, Complex_F64 result) Addition: result = a + bstatic voidpow(ComplexPolar_F64 a, int N, ComplexPolar_F64 result) Computes the power of a complex number in polar notationstatic voidroot(Complex_F64 a, int N, int k, Complex_F64 result) Computes the Nth root of a complex number.static voidroot(ComplexPolar_F64 a, int N, int k, ComplexPolar_F64 result) Computes the Nth root of a complex number in polar notation.static voidsqrt(Complex_F64 input, Complex_F64 root) Computes the square root of the complex number.
-
Constructor Details
-
ComplexMath_F64
public ComplexMath_F64()
-
-
Method Details
-
conj
Complex conjugate- Parameters:
input- Input complex numberconj- Complex conjugate of the input number
-
plus
Addition: result = a + b
- Parameters:
a- Complex number. Not modified.b- Complex number. Not modified.result- Storage for output
-
minus
Subtraction: result = a - b
- Parameters:
a- Complex number. Not modified.b- Complex number. Not modified.result- Storage for output
-
multiply
Multiplication: result = a * b
- Parameters:
a- Complex number. Not modified.b- Complex number. Not modified.result- Storage for output
-
divide
Division: result = a / b
- Parameters:
a- Complex number. Not modified.b- Complex number. Not modified.result- Storage for output
-
convert
Converts a complex number into polar notation.
- Parameters:
input- Standard notationoutput- Polar notation
-
convert
Converts a complex number in polar notation into standard notation.
- Parameters:
input- Standard notationoutput- Polar notation
-
multiply
Division in polar notation.- Parameters:
a- Complex number in polar notation. Not modified.b- Complex number in polar notation. Not modified.result- Storage for output.
-
divide
Division in polar notation.- Parameters:
a- Complex number in polar notation. Not modified.b- Complex number in polar notation. Not modified.result- Storage for output.
-
pow
Computes the power of a complex number in polar notation- Parameters:
a- Complex numberN- Power it is to be multiplied byresult- Result
-
root
Computes the Nth root of a complex number in polar notation. There are N distinct Nth roots.- Parameters:
a- Complex numberN- The root's magnitudek- Specifies which root. 0 ≤ k < Nresult- Computed root
-
root
Computes the Nth root of a complex number. There are N distinct Nth roots.- Parameters:
a- Complex numberN- The root's magnitudek- Specifies which root. 0 ≤ k < Nresult- Computed root
-
sqrt
Computes the square root of the complex number.- Parameters:
input- Input complex number.root- Output. The square root of the input
-