Uses of Class
org.apache.commons.numbers.complex.Complex

Packages that use Complex 
Package Description
org.apache.commons.math4.analysis.solvers
Root finding algorithms, for univariate real functions.
org.apache.commons.numbers.complex
Complex numbers.
org.apache.commons.numbers.complex.streams
Complex numbers collections.
  • Uses of Complex in org.apache.commons.math4.analysis.solvers

    Methods in org.apache.commons.math4.analysis.solvers that return Complex 
    Modifier and Type Method Description
    Complex[] LaguerreSolver.solveAllComplex​(double[] coefficients, double initial)
    Find all complex roots for the polynomial with the given coefficients, starting from the given initial value.
    Complex LaguerreSolver.solveComplex​(double[] coefficients, double initial)
    Find a complex root for the polynomial with the given coefficients, starting from the given initial value.
  • Uses of Complex in org.apache.commons.numbers.complex

    Fields in org.apache.commons.numbers.complex declared as Complex 
    Modifier and Type Field Description
    static Complex Complex.I
    The square root of -1, a.k.a.
    static Complex Complex.INF
    A complex number representing "+INF + INF i"
    static Complex Complex.ONE
    A complex number representing one.
    static Complex Complex.ZERO
    A complex number representing zero.
    Methods in org.apache.commons.numbers.complex that return Complex 
    Modifier and Type Method Description
    Complex Complex.acos()
    Compute the inverse cosine of this complex number.
    Complex Complex.acosh()
    Compute the inverse hyperbolic cosine of this complex number.
    Complex Complex.add​(double addend)
    Returns a Complex whose value is (this + addend), with addend interpreted as a real number.
    Complex Complex.add​(Complex addend)
    Returns a Complex whose value is (this + addend).
    Complex Complex.asin()
    Compute the inverse sine of this complex number.
    Complex Complex.asinh()
    Compute the inverse hyperbolic sine of this complex number.
    Complex Complex.atan()
    Compute the inverse tangent of this complex number.
    Complex Complex.atanh()
    Compute the inverse hyperbolic tangent of this complex number.
    Complex Complex.conj()
    Returns the conjugate of this complex number.
    Complex Complex.conjugate()
    Returns the conjugate of this complex number.
    Complex Complex.cos()
    Compute the cosine of this complex number.
    Complex Complex.cosh()
    Compute the hyperbolic cosine of this complex number.
    Complex Complex.divide​(double divisor)
    Returns a Complex whose value is (this / divisor), with divisor interpreted as a real number.
    Complex Complex.divide​(Complex divisor)
    Returns a Complex whose value is (this / divisor).
    Complex Complex.exp()
    Compute the exponential function of this complex number.
    Complex Complex.log()
    Compute the natural logarithm of this complex number.
    Complex Complex.log10()
    Compute the base 10 or common logarithm of this complex number.
    Complex Complex.multiply​(double factor)
    Returns a Complex whose value is this * factor, with factor interpreted as a real number.
    Complex Complex.multiply​(int factor)
    Returns a Complex whose value is this * factor, with factor interpreted as a integer number.
    Complex Complex.multiply​(Complex factor)
    Returns a Complex whose value is this * factor.
    Complex Complex.negate()
    Returns a Complex whose value is (-this).
    static Complex Complex.ofCartesian​(double real, double imaginary)
    Create a complex number given the real and imaginary parts.
    static Complex Complex.ofCis​(double x)
    For a real constructor argument x, returns a new Complex object c where c = cos(x) + i sin (x)
    static Complex Complex.ofPolar​(double r, double theta)
    Creates a Complex from its polar representation.
    static Complex Complex.ofReal​(double real)
    Create a complex number given the real part.
    static Complex Complex.parse​(java.lang.String s)
    Parses a string that would be produced by toString() and instantiates the corresponding object.
    Complex Complex.pow​(double x)
    Returns of value of this complex number raised to the power of x.
    Complex Complex.pow​(Complex x)
    Returns of value of this complex number raised to the power of x.
    Complex Complex.proj()
    Returns projection of this complex number onto the Riemann sphere, i.e.
    Complex Complex.reciprocal()
    Returns the multiplicative inverse of this instance.
    Complex Complex.sin()
    Compute the sine of this complex number.
    Complex Complex.sinh()
    Compute the hyperbolic sine of this complex number.
    Complex Complex.sqrt()
    Compute the square root of this complex number.
    Complex Complex.square()
    Compute the square of this complex number.
    Complex Complex.subtract​(double subtrahend)
    Returns a Complex whose value is (this - subtrahend).
    Complex Complex.subtract​(Complex subtrahend)
    Returns a Complex whose value is (this - subtrahend).
    Complex Complex.tan()
    Compute the tangent of this complex number.
    Complex Complex.tanh()
    Compute the hyperbolic tangent of this complex number.
    Methods in org.apache.commons.numbers.complex that return types with arguments of type Complex 
    Modifier and Type Method Description
    java.util.List<Complex> Complex.nthRoot​(int n)
    Computes the n-th roots of this complex number.
    Methods in org.apache.commons.numbers.complex with parameters of type Complex 
    Modifier and Type Method Description
    Complex Complex.add​(Complex addend)
    Returns a Complex whose value is (this + addend).
    Complex Complex.divide​(Complex divisor)
    Returns a Complex whose value is (this / divisor).
    static boolean Complex.equals​(Complex x, Complex y)
    Returns true iff the values are equal as defined by equals(x, y, 1).
    static boolean Complex.equals​(Complex x, Complex y, double eps)
    Returns true if, both for the real part and for the imaginary part, there is no double value strictly between the arguments or the difference between them is within the range of allowed error (inclusive).
    static boolean Complex.equals​(Complex x, Complex y, int maxUlps)
    Test for the floating-point equality between Complex objects.
    static boolean Complex.equalsWithRelativeTolerance​(Complex x, Complex y, double eps)
    Returns true if, both for the real part and for the imaginary part, there is no double value strictly between the arguments or the relative difference between them is smaller or equal to the given tolerance.
    Complex Complex.multiply​(Complex factor)
    Returns a Complex whose value is this * factor.
    Complex Complex.pow​(Complex x)
    Returns of value of this complex number raised to the power of x.
    Complex Complex.subtract​(Complex subtrahend)
    Returns a Complex whose value is (this - subtrahend).
  • Uses of Complex in org.apache.commons.numbers.complex.streams

    Methods in org.apache.commons.numbers.complex.streams that return Complex 
    Modifier and Type Method Description
    static Complex ComplexUtils.extractComplexFromImaginaryArray​(double[] imaginary, int index)
    Returns double from array imaginary[] at entry index as a Complex.
    static Complex ComplexUtils.extractComplexFromImaginaryArray​(float[] imaginary, int index)
    Returns float from array imaginary[] at entry index as a Complex.
    static Complex ComplexUtils.extractComplexFromInterleavedArray​(double[] d, int index)
    Returns a Complex object from interleaved double[] array at entry index.
    static Complex ComplexUtils.extractComplexFromInterleavedArray​(float[] f, int index)
    Returns a Complex object from interleaved float[] array at entry index.
    static Complex ComplexUtils.extractComplexFromRealArray​(double[] real, int index)
    Returns double from array real[] at entry index as a Complex.
    static Complex ComplexUtils.extractComplexFromRealArray​(float[] real, int index)
    Returns float from array real[] at entry index as a Complex.
    static Complex[] ComplexUtils.imaginary2Complex​(double[] imaginary)
    Converts a double[] array to an imaginary Complex[] array.
    static Complex[][] ComplexUtils.imaginary2Complex​(double[][] i)
    Converts a 2D imaginary array double[][] to a 2D Complex[][] array.
    static Complex[][][] ComplexUtils.imaginary2Complex​(double[][][] i)
    Converts a 3D imaginary array double[][][] to a Complex[] array.
    static Complex[][][][] ComplexUtils.imaginary2Complex​(double[][][][] i)
    Converts a 4D imaginary array double[][][][] to a 4D Complex[][][][] array.
    static Complex[] ComplexUtils.imaginary2Complex​(float[] imaginary)
    Converts a float[] array to an imaginary Complex[] array.
    static Complex[] ComplexUtils.initialize​(Complex[] c)
    Initializes a Complex[] array to zero, to avoid NullPointerExceptions.
    static Complex[][] ComplexUtils.initialize​(Complex[][] c)
    Initializes a Complex[][] array to zero, to avoid NullPointerExceptions.
    static Complex[][][] ComplexUtils.initialize​(Complex[][][] c)
    Initializes a Complex[][][] array to zero, to avoid NullPointerExceptions.
    static Complex[] ComplexUtils.interleaved2Complex​(double[] interleaved)
    Converts a complex interleaved double[] array to a Complex[] array
    static Complex[][] ComplexUtils.interleaved2Complex​(double[][] d)
    Converts a 2D interleaved complex double[][] array to a Complex[][] array.
    static Complex[][][] ComplexUtils.interleaved2Complex​(double[][][] d)
    Converts a 3D interleaved complex double[][][] array to a Complex[][][] array.
    static Complex[][][][] ComplexUtils.interleaved2Complex​(double[][][][] i, int interleavedDim)
    Converts a 4D interleaved complex double[][][][] array to a Complex[][][][] array.
    static Complex[][][] ComplexUtils.interleaved2Complex​(double[][][] i, int interleavedDim)
    Converts a 3D interleaved complex double[][][] array to a Complex[][][] array.
    static Complex[][] ComplexUtils.interleaved2Complex​(double[][] i, int interleavedDim)
    Converts a 2D interleaved complex double[][] array to a Complex[][] array.
    static Complex[] ComplexUtils.interleaved2Complex​(float[] interleaved)
    Converts a complex interleaved float[] array to a Complex[] array
    static Complex[][] ComplexUtils.interleaved2Complex​(float[][] d)
    Converts a 2D interleaved complex float[][] array to a Complex[][] array.
    static Complex[][][] ComplexUtils.interleaved2Complex​(float[][][] d)
    Converts a 3D interleaved complex float[][][] array to a Complex[] array.
    static Complex[][][] ComplexUtils.interleaved2Complex​(float[][][] i, int interleavedDim)
    Converts a 3D interleaved complex float[][][] array to a Complex[][][] array.
    static Complex[][] ComplexUtils.interleaved2Complex​(float[][] i, int interleavedDim)
    Converts a 2D interleaved complex float[][] array to a Complex[][] array.
    static Complex[][][] ComplexUtils.polar2Complex​(double[][][] r, double[][][] theta)
    Creates Complex[][][] array given double[][][] arrays of r and theta.
    static Complex[][] ComplexUtils.polar2Complex​(double[][] r, double[][] theta)
    Creates Complex[][] array given double[][] arrays of r and theta.
    static Complex[] ComplexUtils.polar2Complex​(double[] r, double[] theta)
    Creates Complex[] array given double[] arrays of r and theta.
    static Complex ComplexUtils.polar2Complex​(double r, double theta)
    Creates a complex number from the given polar representation.
    static Complex[] ComplexUtils.real2Complex​(double[] real)
    Converts a double[] array to a Complex[] array.
    static Complex[][] ComplexUtils.real2Complex​(double[][] d)
    Converts a 2D real double[][] array to a 2D Complex[][] array.
    static Complex[][][] ComplexUtils.real2Complex​(double[][][] d)
    Converts a 3D real double[][][] array to a Complex [][][] array.
    static Complex[][][][] ComplexUtils.real2Complex​(double[][][][] d)
    Converts a 4D real double[][][][] array to a Complex [][][][] array.
    static Complex[] ComplexUtils.real2Complex​(float[] real)
    Converts a float[] array to a Complex[] array.
    static Complex[][] ComplexUtils.real2Complex​(float[][] d)
    Converts a 2D real float[][] array to a 2D Complex[][] array.
    static Complex[][][] ComplexUtils.real2Complex​(float[][][] d)
    Converts a 3D real float[][][] array to a Complex [][][] array.
    static Complex[][][][] ComplexUtils.split2Complex​(double[][][][] real, double[][][][] imag)
    Converts a 4D split complex array double[][][][] r, double[][][][] i to a 4D Complex[][][][] array.
    static Complex[][][] ComplexUtils.split2Complex​(double[][][] real, double[][][] imag)
    Converts a 3D split complex array double[][][] r, double[][][] i to a 3D Complex[][][] array.
    static Complex[][] ComplexUtils.split2Complex​(double[][] real, double[][] imag)
    Converts a 2D split complex array double[][] r, double[][] i to a 2D Complex[][] array.
    static Complex[] ComplexUtils.split2Complex​(double[] real, double[] imag)
    Converts a split complex array double[] r, double[] i to a Complex[] array.
    static Complex[][][] ComplexUtils.split2Complex​(float[][][] real, float[][][] imag)
    Converts a 3D split complex array float[][][] r, float[][][] i to a 3D Complex[][][] array.
    static Complex[][] ComplexUtils.split2Complex​(float[][] real, float[][] imag)
    Converts a 2D split complex array float[][] r, float[][] i to a 2D Complex[][] array.
    static Complex[] ComplexUtils.split2Complex​(float[] real, float[] imag)
    Converts a split complex array float[] r, float[] i to a Complex[] array.
    Methods in org.apache.commons.numbers.complex.streams with parameters of type Complex 
    Modifier and Type Method Description
    static double[] ComplexUtils.abs​(Complex[] c)
    Returns double[] containing absolute values (magnitudes) of a Complex[] array.
    static double[] ComplexUtils.arg​(Complex[] c)
    Returns double[] containing arguments (phase angles) of a Complex[] array.
    static double[] ComplexUtils.complex2Imaginary​(Complex[] c)
    Converts imaginary part of a Complex[] array to a double[] array.
    static double[][] ComplexUtils.complex2Imaginary​(Complex[][] c)
    Converts imaginary component of a 2D Complex[][] array to a 2D double[][] array.
    static double[][][] ComplexUtils.complex2Imaginary​(Complex[][][] c)
    Converts imaginary component of a 3D Complex[][][] array to a 3D double[][][] array.
    static double[][][][] ComplexUtils.complex2Imaginary​(Complex[][][][] c)
    Converts imaginary component of a 4D Complex[][][][] array to a 4D double[][][][] array.
    static float[] ComplexUtils.complex2ImaginaryFloat​(Complex[] c)
    Converts imaginary component of a Complex[] array to a float[] array.
    static float[][] ComplexUtils.complex2ImaginaryFloat​(Complex[][] c)
    Converts imaginary component of a 2D Complex[][] array to a 2D float[][] array.
    static float[][][] ComplexUtils.complex2ImaginaryFloat​(Complex[][][] c)
    Converts imaginary component of a 3D Complex[][][] array to a 3D float[][][] array.
    static float[][][][] ComplexUtils.complex2ImaginaryFloat​(Complex[][][][] c)
    Converts imaginary component of a 4D Complex[][][][] array to a 4D float[][][][] array.
    static double[] ComplexUtils.complex2Interleaved​(Complex[] c)
    Converts a Complex[] array to an interleaved complex double[] array
    static double[][] ComplexUtils.complex2Interleaved​(Complex[][] c)
    Converts a 2D Complex[][] array to an interleaved complex double[][] array.
    static double[][][] ComplexUtils.complex2Interleaved​(Complex[][][] c)
    Converts a 3D Complex[][][] array to an interleaved complex double[][][] array.
    static double[][][][] ComplexUtils.complex2Interleaved​(Complex[][][][] c)
    Converts a 4D Complex[][][][] array to an interleaved complex double[][][][] array.
    static double[][][][] ComplexUtils.complex2Interleaved​(Complex[][][][] c, int interleavedDim)
    Converts a 4D Complex[][][][] array to an interleaved complex double[][][][] array.
    static double[][][] ComplexUtils.complex2Interleaved​(Complex[][][] c, int interleavedDim)
    Converts a 3D Complex[][][] array to an interleaved complex double[][][] array.
    static double[][] ComplexUtils.complex2Interleaved​(Complex[][] c, int interleavedDim)
    Converts a 2D Complex[][] array to an interleaved complex double[][] array.
    static float[] ComplexUtils.complex2InterleavedFloat​(Complex[] c)
    Converts a Complex[] array to an interleaved complex float[] array
    static float[][] ComplexUtils.complex2InterleavedFloat​(Complex[][] c)
    Converts a 2D Complex[][] array to an interleaved complex float[][] array.
    static float[][][] ComplexUtils.complex2InterleavedFloat​(Complex[][][] c)
    Converts a 3D Complex[][][] array to an interleaved complex float[][][] array.
    static float[][][] ComplexUtils.complex2InterleavedFloat​(Complex[][][] c, int interleavedDim)
    Converts a 3D Complex[][][] array to an interleaved complex float[][][] array.
    static float[][] ComplexUtils.complex2InterleavedFloat​(Complex[][] c, int interleavedDim)
    Converts a 2D Complex[][] array to an interleaved complex float[][] array.
    static double[] ComplexUtils.complex2Real​(Complex[] c)
    Converts real component of Complex[] array to a double[] array.
    static double[][] ComplexUtils.complex2Real​(Complex[][] c)
    Converts real component of a 2D Complex[][] array to a 2D double[][] array.
    static double[][][] ComplexUtils.complex2Real​(Complex[][][] c)
    Converts real component of a 3D Complex[][][] array to a 3D double[][][] array.
    static double[][][][] ComplexUtils.complex2Real​(Complex[][][][] c)
    Converts real component of a 4D Complex[][][][] array to a 4D double[][][][] array.
    static float[] ComplexUtils.complex2RealFloat​(Complex[] c)
    Converts real component of Complex[] array to a float[] array.
    static float[][] ComplexUtils.complex2RealFloat​(Complex[][] c)
    Converts real component of a 2D Complex[][] array to a 2D float[][] array.
    static float[][][] ComplexUtils.complex2RealFloat​(Complex[][][] c)
    Converts real component of a 3D Complex[][][] array to a 3D float[][][] array.
    static float[][][][] ComplexUtils.complex2RealFloat​(Complex[][][][] c)
    Converts real component of a 4D Complex[][][][] array to a 4D float[][][][] array.
    static float ComplexUtils.extractImaginaryFloatFromComplexArray​(Complex[] complex, int index)
    Returns imaginary component of array Complex[] at entry index as a float.
    static double ComplexUtils.extractImaginaryFromComplexArray​(Complex[] complex, int index)
    Returns imaginary component of Complex from array Complex[] at entry index as a double.
    static float[] ComplexUtils.extractInterleavedFloatFromComplexArray​(Complex[] complex, int index)
    Returns Complex object from array Complex[] at entry index as a size 2 float of the form {real, imag}.
    static double[] ComplexUtils.extractInterleavedFromComplexArray​(Complex[] complex, int index)
    Returns values of Complex object from array Complex[] at entry index as a size 2 double of the form {real, imag}.
    static float ComplexUtils.extractRealFloatFromComplexArray​(Complex[] complex, int index)
    Returns real component of array Complex[] at entry index as a float.
    static double ComplexUtils.extractRealFromComplexArray​(Complex[] complex, int index)
    Returns real component of Complex from array Complex[] at entry index as a double.
    static Complex[] ComplexUtils.initialize​(Complex[] c)
    Initializes a Complex[] array to zero, to avoid NullPointerExceptions.
    static Complex[][] ComplexUtils.initialize​(Complex[][] c)
    Initializes a Complex[][] array to zero, to avoid NullPointerExceptions.
    static Complex[][][] ComplexUtils.initialize​(Complex[][][] c)
    Initializes a Complex[][][] array to zero, to avoid NullPointerExceptions.