Package org.ejml.ops

Class ComplexMath_F32

java.lang.Object
org.ejml.ops.ComplexMath_F32

@Generated("org.ejml.ops.ComplexMath_F64") public class ComplexMath_F32 extends Object
Basic math operations on complex numbers.
  • Constructor Details

    • ComplexMath_F32

      public ComplexMath_F32()
  • Method Details

    • conj

      public static void conj(Complex_F32 input, Complex_F32 conj)
      Complex conjugate
      Parameters:
      input - Input complex number
      conj - Complex conjugate of the input number
    • plus

      public static void plus(Complex_F32 a, Complex_F32 b, Complex_F32 result)

      Addition: result = a + b

      Parameters:
      a - Complex number. Not modified.
      b - Complex number. Not modified.
      result - Storage for output
    • minus

      public static void minus(Complex_F32 a, Complex_F32 b, Complex_F32 result)

      Subtraction: result = a - b

      Parameters:
      a - Complex number. Not modified.
      b - Complex number. Not modified.
      result - Storage for output
    • multiply

      public static void multiply(Complex_F32 a, Complex_F32 b, Complex_F32 result)

      Multiplication: result = a * b

      Parameters:
      a - Complex number. Not modified.
      b - Complex number. Not modified.
      result - Storage for output
    • divide

      public static void divide(Complex_F32 a, Complex_F32 b, Complex_F32 result)

      Division: result = a / b

      Parameters:
      a - Complex number. Not modified.
      b - Complex number. Not modified.
      result - Storage for output
    • convert

      public static void convert(Complex_F32 input, ComplexPolar_F32 output)

      Converts a complex number into polar notation.

      Parameters:
      input - Standard notation
      output - Polar notation
    • convert

      public static void convert(ComplexPolar_F32 input, Complex_F32 output)

      Converts a complex number in polar notation into standard notation.

      Parameters:
      input - Standard notation
      output - Polar notation
    • multiply

      public static void multiply(ComplexPolar_F32 a, ComplexPolar_F32 b, ComplexPolar_F32 result)
      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

      public static void divide(ComplexPolar_F32 a, ComplexPolar_F32 b, ComplexPolar_F32 result)
      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

      public static void pow(ComplexPolar_F32 a, int N, ComplexPolar_F32 result)
      Computes the power of a complex number in polar notation
      Parameters:
      a - Complex number
      N - Power it is to be multiplied by
      result - Result
    • root

      public static void root(ComplexPolar_F32 a, int N, int k, ComplexPolar_F32 result)
      Computes the Nth root of a complex number in polar notation. There are N distinct Nth roots.
      Parameters:
      a - Complex number
      N - The root's magnitude
      k - Specifies which root. 0 ≤ k < N
      result - Computed root
    • root

      public static void root(Complex_F32 a, int N, int k, Complex_F32 result)
      Computes the Nth root of a complex number. There are N distinct Nth roots.
      Parameters:
      a - Complex number
      N - The root's magnitude
      k - Specifies which root. 0 ≤ k < N
      result - Computed root
    • sqrt

      public static void sqrt(Complex_F32 input, Complex_F32 root)
      Computes the square root of the complex number.
      Parameters:
      input - Input complex number.
      root - Output. The square root of the input