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.ComplexLaguerreSolver. 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 ComplexComplex. IThe square root of -1, a.k.a.static ComplexComplex. INFA complex number representing "+INF + INF i"static ComplexComplex. ONEA complex number representing one.static ComplexComplex. ZEROA complex number representing zero.Methods in org.apache.commons.numbers.complex that return Complex Modifier and Type Method Description ComplexComplex. acos()Compute the inverse cosine of this complex number.ComplexComplex. acosh()Compute the inverse hyperbolic cosine of this complex number.ComplexComplex. add(double addend)Returns aComplexwhose value is(this + addend), withaddendinterpreted as a real number.ComplexComplex. add(Complex addend)Returns aComplexwhose value is(this + addend).ComplexComplex. asin()Compute the inverse sine of this complex number.ComplexComplex. asinh()Compute the inverse hyperbolic sine of this complex number.ComplexComplex. atan()Compute the inverse tangent of this complex number.ComplexComplex. atanh()Compute the inverse hyperbolic tangent of this complex number.ComplexComplex. conj()Returns the conjugate of this complex number.ComplexComplex. conjugate()Returns the conjugate of this complex number.ComplexComplex. cos()Compute the cosine of this complex number.ComplexComplex. cosh()Compute the hyperbolic cosine of this complex number.ComplexComplex. divide(double divisor)Returns aComplexwhose value is(this / divisor), withdivisorinterpreted as a real number.ComplexComplex. divide(Complex divisor)Returns aComplexwhose value is(this / divisor).ComplexComplex. exp()Compute the exponential function of this complex number.ComplexComplex. log()Compute the natural logarithm of this complex number.ComplexComplex. log10()Compute the base 10 or common logarithm of this complex number.ComplexComplex. multiply(double factor)Returns aComplexwhose value isthis * factor, withfactorinterpreted as a real number.ComplexComplex. multiply(int factor)Returns aComplexwhose value isthis * factor, withfactorinterpreted as a integer number.ComplexComplex. multiply(Complex factor)Returns aComplexwhose value isthis * factor.ComplexComplex. negate()Returns aComplexwhose value is(-this).static ComplexComplex. ofCartesian(double real, double imaginary)Create a complex number given the real and imaginary parts.static ComplexComplex. ofCis(double x)For a real constructor argument x, returns a new Complex object c wherec = cos(x) + i sin (x)static ComplexComplex. ofPolar(double r, double theta)Creates a Complex from its polar representation.static ComplexComplex. ofReal(double real)Create a complex number given the real part.static ComplexComplex. parse(java.lang.String s)Parses a string that would be produced bytoString()and instantiates the corresponding object.ComplexComplex. pow(double x)Returns of value of this complex number raised to the power ofx.ComplexComplex. pow(Complex x)Returns of value of this complex number raised to the power ofx.ComplexComplex. proj()Returns projection of this complex number onto the Riemann sphere, i.e.ComplexComplex. reciprocal()Returns the multiplicative inverse of this instance.ComplexComplex. sin()Compute the sine of this complex number.ComplexComplex. sinh()Compute the hyperbolic sine of this complex number.ComplexComplex. sqrt()Compute the square root of this complex number.ComplexComplex. square()Compute the square of this complex number.ComplexComplex. subtract(double subtrahend)Returns aComplexwhose value is(this - subtrahend).ComplexComplex. subtract(Complex subtrahend)Returns aComplexwhose value is(this - subtrahend).ComplexComplex. tan()Compute the tangent of this complex number.ComplexComplex. 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 ComplexComplex. add(Complex addend)Returns aComplexwhose value is(this + addend).ComplexComplex. divide(Complex divisor)Returns aComplexwhose value is(this / divisor).static booleanComplex. equals(Complex x, Complex y)Returnstrueiff the values are equal as defined byequals(x, y, 1).static booleanComplex. equals(Complex x, Complex y, double eps)Returnstrueif, 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 booleanComplex. equals(Complex x, Complex y, int maxUlps)Test for the floating-point equality between Complex objects.static booleanComplex. equalsWithRelativeTolerance(Complex x, Complex y, double eps)Returnstrueif, 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.ComplexComplex. multiply(Complex factor)Returns aComplexwhose value isthis * factor.ComplexComplex. pow(Complex x)Returns of value of this complex number raised to the power ofx.ComplexComplex. subtract(Complex subtrahend)Returns aComplexwhose 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 ComplexComplexUtils. extractComplexFromImaginaryArray(double[] imaginary, int index)Returns double from arrayimaginary[]at entryindexas aComplex.static ComplexComplexUtils. extractComplexFromImaginaryArray(float[] imaginary, int index)Returns float from arrayimaginary[]at entryindexas aComplex.static ComplexComplexUtils. extractComplexFromInterleavedArray(double[] d, int index)Returns a Complex object from interleaveddouble[]array at entryindex.static ComplexComplexUtils. extractComplexFromInterleavedArray(float[] f, int index)Returns a Complex object from interleavedfloat[]array at entryindex.static ComplexComplexUtils. extractComplexFromRealArray(double[] real, int index)Returns double from arrayreal[]at entryindexas aComplex.static ComplexComplexUtils. extractComplexFromRealArray(float[] real, int index)Returns float from arrayreal[]at entryindexas aComplex.static Complex[]ComplexUtils. imaginary2Complex(double[] imaginary)Converts adouble[]array to an imaginaryComplex[]array.static Complex[][]ComplexUtils. imaginary2Complex(double[][] i)Converts a 2D imaginary arraydouble[][]to a 2DComplex[][]array.static Complex[][][]ComplexUtils. imaginary2Complex(double[][][] i)Converts a 3D imaginary arraydouble[][][]to aComplex[]array.static Complex[][][][]ComplexUtils. imaginary2Complex(double[][][][] i)Converts a 4D imaginary arraydouble[][][][]to a 4DComplex[][][][]array.static Complex[]ComplexUtils. imaginary2Complex(float[] imaginary)Converts afloat[]array to an imaginaryComplex[]array.static Complex[]ComplexUtils. initialize(Complex[] c)Initializes aComplex[]array to zero, to avoid NullPointerExceptions.static Complex[][]ComplexUtils. initialize(Complex[][] c)Initializes aComplex[][]array to zero, to avoid NullPointerExceptions.static Complex[][][]ComplexUtils. initialize(Complex[][][] c)Initializes aComplex[][][]array to zero, to avoid NullPointerExceptions.static Complex[]ComplexUtils. interleaved2Complex(double[] interleaved)Converts a complex interleaveddouble[]array to aComplex[]arraystatic Complex[][]ComplexUtils. interleaved2Complex(double[][] d)Converts a 2D interleaved complexdouble[][]array to aComplex[][]array.static Complex[][][]ComplexUtils. interleaved2Complex(double[][][] d)Converts a 3D interleaved complexdouble[][][]array to aComplex[][][]array.static Complex[][][][]ComplexUtils. interleaved2Complex(double[][][][] i, int interleavedDim)Converts a 4D interleaved complexdouble[][][][]array to aComplex[][][][]array.static Complex[][][]ComplexUtils. interleaved2Complex(double[][][] i, int interleavedDim)Converts a 3D interleaved complexdouble[][][]array to aComplex[][][]array.static Complex[][]ComplexUtils. interleaved2Complex(double[][] i, int interleavedDim)Converts a 2D interleaved complexdouble[][]array to aComplex[][]array.static Complex[]ComplexUtils. interleaved2Complex(float[] interleaved)Converts a complex interleavedfloat[]array to aComplex[]arraystatic Complex[][]ComplexUtils. interleaved2Complex(float[][] d)Converts a 2D interleaved complexfloat[][]array to aComplex[][]array.static Complex[][][]ComplexUtils. interleaved2Complex(float[][][] d)Converts a 3D interleaved complexfloat[][][]array to aComplex[]array.static Complex[][][]ComplexUtils. interleaved2Complex(float[][][] i, int interleavedDim)Converts a 3D interleaved complexfloat[][][]array to aComplex[][][]array.static Complex[][]ComplexUtils. interleaved2Complex(float[][] i, int interleavedDim)Converts a 2D interleaved complexfloat[][]array to aComplex[][]array.static Complex[][][]ComplexUtils. polar2Complex(double[][][] r, double[][][] theta)CreatesComplex[][][]array givendouble[][][]arrays of r and theta.static Complex[][]ComplexUtils. polar2Complex(double[][] r, double[][] theta)CreatesComplex[][]array givendouble[][]arrays of r and theta.static Complex[]ComplexUtils. polar2Complex(double[] r, double[] theta)CreatesComplex[]array givendouble[]arrays of r and theta.static ComplexComplexUtils. polar2Complex(double r, double theta)Creates a complex number from the given polar representation.static Complex[]ComplexUtils. real2Complex(double[] real)Converts adouble[]array to aComplex[]array.static Complex[][]ComplexUtils. real2Complex(double[][] d)Converts a 2D realdouble[][]array to a 2DComplex[][]array.static Complex[][][]ComplexUtils. real2Complex(double[][][] d)Converts a 3D realdouble[][][]array to aComplex [][][]array.static Complex[][][][]ComplexUtils. real2Complex(double[][][][] d)Converts a 4D realdouble[][][][]array to aComplex [][][][]array.static Complex[]ComplexUtils. real2Complex(float[] real)Converts afloat[]array to aComplex[]array.static Complex[][]ComplexUtils. real2Complex(float[][] d)Converts a 2D realfloat[][]array to a 2DComplex[][]array.static Complex[][][]ComplexUtils. real2Complex(float[][][] d)Converts a 3D realfloat[][][]array to aComplex [][][]array.static Complex[][][][]ComplexUtils. split2Complex(double[][][][] real, double[][][][] imag)Converts a 4D split complex arraydouble[][][][] r, double[][][][] ito a 4DComplex[][][][]array.static Complex[][][]ComplexUtils. split2Complex(double[][][] real, double[][][] imag)Converts a 3D split complex arraydouble[][][] r, double[][][] ito a 3DComplex[][][]array.static Complex[][]ComplexUtils. split2Complex(double[][] real, double[][] imag)Converts a 2D split complex arraydouble[][] r, double[][] ito a 2DComplex[][]array.static Complex[]ComplexUtils. split2Complex(double[] real, double[] imag)Converts a split complex arraydouble[] r, double[] ito aComplex[]array.static Complex[][][]ComplexUtils. split2Complex(float[][][] real, float[][][] imag)Converts a 3D split complex arrayfloat[][][] r, float[][][] ito a 3DComplex[][][]array.static Complex[][]ComplexUtils. split2Complex(float[][] real, float[][] imag)Converts a 2D split complex arrayfloat[][] r, float[][] ito a 2DComplex[][]array.static Complex[]ComplexUtils. split2Complex(float[] real, float[] imag)Converts a split complex arrayfloat[] r, float[] ito aComplex[]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)Returnsdouble[]containing absolute values (magnitudes) of aComplex[]array.static double[]ComplexUtils. arg(Complex[] c)Returnsdouble[]containing arguments (phase angles) of aComplex[]array.static double[]ComplexUtils. complex2Imaginary(Complex[] c)Converts imaginary part of aComplex[]array to adouble[]array.static double[][]ComplexUtils. complex2Imaginary(Complex[][] c)Converts imaginary component of a 2DComplex[][]array to a 2Ddouble[][]array.static double[][][]ComplexUtils. complex2Imaginary(Complex[][][] c)Converts imaginary component of a 3DComplex[][][]array to a 3Ddouble[][][]array.static double[][][][]ComplexUtils. complex2Imaginary(Complex[][][][] c)Converts imaginary component of a 4DComplex[][][][]array to a 4Ddouble[][][][]array.static float[]ComplexUtils. complex2ImaginaryFloat(Complex[] c)Converts imaginary component of aComplex[]array to afloat[]array.static float[][]ComplexUtils. complex2ImaginaryFloat(Complex[][] c)Converts imaginary component of a 2DComplex[][]array to a 2Dfloat[][]array.static float[][][]ComplexUtils. complex2ImaginaryFloat(Complex[][][] c)Converts imaginary component of a 3DComplex[][][]array to a 3Dfloat[][][]array.static float[][][][]ComplexUtils. complex2ImaginaryFloat(Complex[][][][] c)Converts imaginary component of a 4DComplex[][][][]array to a 4Dfloat[][][][]array.static double[]ComplexUtils. complex2Interleaved(Complex[] c)Converts aComplex[]array to an interleaved complexdouble[]arraystatic double[][]ComplexUtils. complex2Interleaved(Complex[][] c)Converts a 2DComplex[][]array to an interleaved complexdouble[][]array.static double[][][]ComplexUtils. complex2Interleaved(Complex[][][] c)Converts a 3DComplex[][][]array to an interleaved complexdouble[][][]array.static double[][][][]ComplexUtils. complex2Interleaved(Complex[][][][] c)Converts a 4DComplex[][][][]array to an interleaved complexdouble[][][][]array.static double[][][][]ComplexUtils. complex2Interleaved(Complex[][][][] c, int interleavedDim)Converts a 4DComplex[][][][]array to an interleaved complexdouble[][][][]array.static double[][][]ComplexUtils. complex2Interleaved(Complex[][][] c, int interleavedDim)Converts a 3DComplex[][][]array to an interleaved complexdouble[][][]array.static double[][]ComplexUtils. complex2Interleaved(Complex[][] c, int interleavedDim)Converts a 2DComplex[][]array to an interleaved complexdouble[][]array.static float[]ComplexUtils. complex2InterleavedFloat(Complex[] c)Converts aComplex[]array to an interleaved complexfloat[]arraystatic float[][]ComplexUtils. complex2InterleavedFloat(Complex[][] c)Converts a 2DComplex[][]array to an interleaved complexfloat[][]array.static float[][][]ComplexUtils. complex2InterleavedFloat(Complex[][][] c)Converts a 3DComplex[][][]array to an interleaved complexfloat[][][]array.static float[][][]ComplexUtils. complex2InterleavedFloat(Complex[][][] c, int interleavedDim)Converts a 3DComplex[][][]array to an interleaved complexfloat[][][]array.static float[][]ComplexUtils. complex2InterleavedFloat(Complex[][] c, int interleavedDim)Converts a 2DComplex[][]array to an interleaved complexfloat[][]array.static double[]ComplexUtils. complex2Real(Complex[] c)Converts real component ofComplex[]array to adouble[]array.static double[][]ComplexUtils. complex2Real(Complex[][] c)Converts real component of a 2DComplex[][]array to a 2Ddouble[][]array.static double[][][]ComplexUtils. complex2Real(Complex[][][] c)Converts real component of a 3DComplex[][][]array to a 3Ddouble[][][]array.static double[][][][]ComplexUtils. complex2Real(Complex[][][][] c)Converts real component of a 4DComplex[][][][]array to a 4Ddouble[][][][]array.static float[]ComplexUtils. complex2RealFloat(Complex[] c)Converts real component ofComplex[]array to afloat[]array.static float[][]ComplexUtils. complex2RealFloat(Complex[][] c)Converts real component of a 2DComplex[][]array to a 2Dfloat[][]array.static float[][][]ComplexUtils. complex2RealFloat(Complex[][][] c)Converts real component of a 3DComplex[][][]array to a 3Dfloat[][][]array.static float[][][][]ComplexUtils. complex2RealFloat(Complex[][][][] c)Converts real component of a 4DComplex[][][][]array to a 4Dfloat[][][][]array.static floatComplexUtils. extractImaginaryFloatFromComplexArray(Complex[] complex, int index)Returns imaginary component of arrayComplex[]at entryindexas afloat.static doubleComplexUtils. extractImaginaryFromComplexArray(Complex[] complex, int index)Returns imaginary component of Complex from arrayComplex[]at entryindexas adouble.static float[]ComplexUtils. extractInterleavedFloatFromComplexArray(Complex[] complex, int index)Returns Complex object from arrayComplex[]at entryindexas a size 2floatof the form {real, imag}.static double[]ComplexUtils. extractInterleavedFromComplexArray(Complex[] complex, int index)Returns values of Complex object from arrayComplex[]at entryindexas a size 2doubleof the form {real, imag}.static floatComplexUtils. extractRealFloatFromComplexArray(Complex[] complex, int index)Returns real component of arrayComplex[]at entryindexas afloat.static doubleComplexUtils. extractRealFromComplexArray(Complex[] complex, int index)Returns real component of Complex from arrayComplex[]at entryindexas adouble.static Complex[]ComplexUtils. initialize(Complex[] c)Initializes aComplex[]array to zero, to avoid NullPointerExceptions.static Complex[][]ComplexUtils. initialize(Complex[][] c)Initializes aComplex[][]array to zero, to avoid NullPointerExceptions.static Complex[][][]ComplexUtils. initialize(Complex[][][] c)Initializes aComplex[][][]array to zero, to avoid NullPointerExceptions.
-