Package org.ejml.ops
Class ComplexMath_F32
java.lang.Object
org.ejml.ops.ComplexMath_F32
Basic math operations on complex numbers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
conj
(Complex_F32 input, Complex_F32 conj) Complex conjugatestatic void
convert
(Complex_F32 input, ComplexPolar_F32 output) Converts a complex number into polar notation.static void
convert
(ComplexPolar_F32 input, Complex_F32 output) Converts a complex number in polar notation into standard notation.static void
divide
(Complex_F32 a, Complex_F32 b, Complex_F32 result) Division: result = a / bstatic void
divide
(ComplexPolar_F32 a, ComplexPolar_F32 b, ComplexPolar_F32 result) Division in polar notation.static void
minus
(Complex_F32 a, Complex_F32 b, Complex_F32 result) Subtraction: result = a - bstatic void
multiply
(Complex_F32 a, Complex_F32 b, Complex_F32 result) Multiplication: result = a * bstatic void
multiply
(ComplexPolar_F32 a, ComplexPolar_F32 b, ComplexPolar_F32 result) Division in polar notation.static void
plus
(Complex_F32 a, Complex_F32 b, Complex_F32 result) Addition: result = a + bstatic void
pow
(ComplexPolar_F32 a, int N, ComplexPolar_F32 result) Computes the power of a complex number in polar notationstatic void
root
(Complex_F32 a, int N, int k, Complex_F32 result) Computes the Nth root of a complex number.static void
root
(ComplexPolar_F32 a, int N, int k, ComplexPolar_F32 result) Computes the Nth root of a complex number in polar notation.static void
sqrt
(Complex_F32 input, Complex_F32 root) Computes the square root of the complex number.
-
Constructor Details
-
ComplexMath_F32
public ComplexMath_F32()
-
-
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
-