Uses of Class
org.flag4j.algebraic_structures.Complex64
Packages that use Complex64
Package
Description
Provides algebraic structures such as semirings, rings, and fields,
along with their concrete implementations.
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
This package contains classes for Pseudo-random generation of real/complex numbers, and arrays, vectors,
matrices, and tensors.
-
Uses of Complex64 in org.flag4j.algebraic_structures
Classes in org.flag4j.algebraic_structures that implement interfaces with type arguments of type Complex64Modifier and TypeClassDescriptionclass
Represents an immutable complex number with single-precision floating point components.Fields in org.flag4j.algebraic_structures declared as Complex64Modifier and TypeFieldDescriptionstatic final Complex64
Complex64.IMAGINARY_UNIT
The imaginary unit i.static final Complex64
Complex64.INV_IMAGINARY_UNIT
The additive inverse of the imaginary unit, -i.static final Complex64
Complex64.NaN
Complex number with real and imaginary parts equal toFloat.NaN
.static final Complex64
Complex64.NEGATIVE_INFINITY
Complex number with real part equal toFloat.NEGATIVE_INFINITY
.static final Complex64
Complex64.ONE
The complex number with zero imaginary part and one real part.static final Complex64
Complex64.POSITIVE_INFINITY
Complex number with real part equal toFloat.POSITIVE_INFINITY
.static final Complex64
Complex64.ROOT_THREE
The float value closer than any other to the square root of 3static final Complex64
Complex64.ROOT_TWO
The float value closer than any other to the square root of 2static final Complex64
Complex64.THREE
The complex number with zero imaginary part and three real part.static final Complex64
Complex64.TWO
The complex number with zero imaginary part and two real part.static final Complex64
Complex64.ZERO
The complex number with zero imaginary and real parts.Methods in org.flag4j.algebraic_structures that return Complex64Modifier and TypeMethodDescriptionstatic Complex64
Computes the inverse cosine of a complex value.Complex64.add
(float b) Sums an elements of this field with a real number.Sums two elements of this field (associative and commutative).Complex64.addInv()
Computes the additive inverse for an element of this field.static Complex64
Computes the inverse sine of a complex value.static Complex64
Computes the inverse tangent of a complex value.Complex64.conj()
Computes the conjugate of this field element.static Complex64
Computes the trigonometric cosine value of a complex value.static Complex64
Computes the hyperbolic cosine of a complex value.Complex64.div
(float b) Computes the quotient of an elements of this field and a real number.Computes the quotient of two elements of this field.static Complex64
Computes the exponential function with the given input.static Complex64
Complex64.fromPolar
(float r, float theta) Converts a complex number expressed in polar from to the rectangular form.Complex64.getOne()
Gets the multiplicative identity for this semiring.Complex64.getZero()
Gets the additive identity for this semiring.static Complex64
Complex64.ln
(float num) Computes the natural logarithm of a float.static Complex64
Computes the complex natural logarithm of a complex number.static Complex64
Complex64.log
(float num) Computes the complex logarithm base 10 of a complex number.static Complex64
Complex64.log
(float base, float num) Computes the complex logarithm, with specified base, of a complex number.static Complex64
Computes the complex logarithm, with specified base, of a complex number.static Complex64
Computes the complex logarithm base 10 of a complex number.static Complex64
Computes the complex logarithm, with specified base, of a complex number.static Complex64
Computes the maximum magnitude from an array of complex numbers.static Complex64
Computes the minimum real component from an array of complex numbers.static Complex64
Computes the minimum magnitude from an array of complex numbers.static Complex64
Computes the minimum real component from an array of complex numbers.Complex64.mult
(float b) Multiplies an element of this field and a real number (associative and commutative).Multiplies two elements of this field (associative and commutative).Complex64.multInv()
Computes the multiplicative inverse of this complex number.static Complex64
Compute a raised to the power of b.static Complex64
Computesa
raised to the power ofb
.static Complex64
Computesa
raised to the power ofb
.static Complex64
Rounds both components of a complex number to the nearest respective integer.static Complex64
Rounds number to specified number of decimal places.static Complex64
Complex64.roundToZero
(Complex64 n, float tol) Rounds a complex numbers to zero if its magnitude within the specified tolerance from zero.static Complex64
The complex signum function.static Complex64
Computes the trigonometric sine of a complex value.static Complex64
Computes the hyperbolic sine of a complex value.Complex64.sqrt()
Computes the square root of this field element.static Complex64
Complex64.sqrt
(float num) Computes the principle square root of a number.Complex64.sub
(float b) Computes difference of an element of this field and a real number.Computes difference of two elements of this field.static Complex64
Computes the sum of all data of specified array.static Complex64
Computes the trigonometric tangent value of a complex value.static Complex64
Computes the hyperbolic tangent of a complex value.Methods in org.flag4j.algebraic_structures with parameters of type Complex64Modifier and TypeMethodDescriptionstatic Complex64
Computes the inverse cosine of a complex value.Sums two elements of this field (associative and commutative).static float
Computes the complex argument function for a complex number.static int
Computes the index of the maximum magnitude from an array of complex numbers.static int
Complex64.argmaxReal
(Complex64... values) Computes the index of the minimum real component from an array of complex numbers.static int
Computes the index of the minimum magnitude from an array of complex numbers.static int
Complex64.argminReal
(Complex64... values) Computes the index of the minimum real component from an array of complex numbers.static Complex64
Computes the inverse sine of a complex value.static Complex64
Computes the inverse tangent of a complex value.static float
Computes the 2 argument arc-tangent function for a complex number.int
Compares this element of the field withb
.static Complex64
Computes the trigonometric cosine value of a complex value.static Complex64
Computes the hyperbolic cosine of a complex value.Computes the quotient of two elements of this field.static Complex64
Computes the exponential function with the given input.static int
Gets the length of the string representation of this complex number.static Complex64
Computes the complex natural logarithm of a complex number.static Complex64
Computes the complex logarithm, with specified base, of a complex number.static Complex64
Computes the complex logarithm base 10 of a complex number.static Complex64
Computes the complex logarithm, with specified base, of a complex number.static Complex64
Computes the maximum magnitude from an array of complex numbers.static Complex64
Computes the minimum real component from an array of complex numbers.static Complex64
Computes the minimum magnitude from an array of complex numbers.static Complex64
Computes the minimum real component from an array of complex numbers.Multiplies two elements of this field (associative and commutative).static boolean
Checks if a number is near zero in magnitude.static Complex64
Compute a raised to the power of b.static Complex64
Computesa
raised to the power ofb
.static Complex64
Computesa
raised to the power ofb
.static Complex64
Rounds both components of a complex number to the nearest respective integer.static Complex64
Rounds number to specified number of decimal places.static Complex64
Complex64.roundToZero
(Complex64 n, float tol) Rounds a complex numbers to zero if its magnitude within the specified tolerance from zero.static Complex64
The complex signum function.static Complex64
Computes the trigonometric sine of a complex value.static Complex64
Computes the hyperbolic sine of a complex value.Computes difference of two elements of this field.static Complex64
Computes the sum of all data of specified array.static Complex64
Computes the trigonometric tangent value of a complex value.static Complex64
Computes the hyperbolic tangent of a complex value.Constructors in org.flag4j.algebraic_structures with parameters of type Complex64ModifierConstructorDescriptionComplex128
(Complex64 num) Constructs a 128-bit complex number from a 64-bit complex number. -
Uses of Complex64 in org.flag4j.arrays.dense
Constructors in org.flag4j.arrays.dense with parameters of type Complex64ModifierConstructorDescriptionCreates a tensor with the specified shape and filled withfillValue
.Creates a tensor with the specified data and shape.Creates a complex vector with the specifiedsize
and filled withfillValue
.Creates a complex vector with the specifieddata
. -
Uses of Complex64 in org.flag4j.arrays.sparse
Constructors in org.flag4j.arrays.sparse with parameters of type Complex64ModifierConstructorDescriptionCooCTensor
(Shape shape, Complex64[] entries, int[][] indices) Creates a tensor with the specified data and shape. -
Uses of Complex64 in org.flag4j.io.parsing
Methods in org.flag4j.io.parsing that return Complex64Modifier and TypeMethodDescriptionstatic Complex64
ComplexNumberParser.parseNumberToComplex64
(String num) Parses a complex number in the form of a string into its real and imaginary parts. -
Uses of Complex64 in org.flag4j.linalg.ops.common.complex
Methods in org.flag4j.linalg.ops.common.complex that return Complex64Modifier and TypeMethodDescriptionstatic Complex64[]
Rounds the values of a tensor with specified precision.static Complex64[]
Complex64Ops.roundToZero
(Complex64[] src, float threshold) Rounds values which are close to zero in absolute value to zero.Methods in org.flag4j.linalg.ops.common.complex with parameters of type Complex64Modifier and TypeMethodDescriptionstatic boolean
Checks whether a tensor contains at least one non-real value.static boolean
Checks whether a tensor contains only real values.static Complex64[]
Rounds the values of a tensor with specified precision.static Complex64[]
Complex64Ops.roundToZero
(Complex64[] src, float threshold) Rounds values which are close to zero in absolute value to zero. -
Uses of Complex64 in org.flag4j.rng
Methods in org.flag4j.rng that return Complex64Modifier and TypeMethodDescriptionRandomComplex.randnComplex64()
Generates a pseudorandom complex number sampled from a 2D circular standard Gaussian (normal) distribution on the complex plain.RandomComplex.randnComplex64
(float mean, float std) Generates a pseudorandom complex number sampled from a 2D circular Gaussian (normal) distribution on the complex plain.RandomComplex.randnComplex64
(float meanRe, float stdRe, float meanIm, float stdIm) Generates a pseudorandom complex number sampled from a 2D elliptical Gaussian (normal) distribution on the complex plain.RandomComplex.randnComplex64
(float meanRe, float stdRe, float meanIm, float stdIm, float corrCoeff) Generates a pseudorandom complex number sampled from a bivariate Gaussian (normal) distribution on the complex plain.RandomComplex.randomCartComplex64()
Generates a pseudorandom complex number distributed uniformly in the unit square on the complex plane centered at (0.0, 0.0).RandomComplex.randomCartComplex64
(float minRe, float maxRe, float minIm, float maxIm) Generates a pseudorandom complex number distributed uniformly in a rectangle on the complex plane.RandomComplex.randomComplex64()
Generates a pseudorandom complex number which is uniformly distributed on the unit disk within the complex plane.RandomComplex.randomComplex64
(float mag) Generates pseudorandom complex number with specified magnitude which is uniformly distributed around the origin.RandomComplex.randomComplex64
(float min, float max) Generates a pseudorandom complex number with magnitude in[min, max)
which is uniformly distributed in the annulus (i.e. washer) with minimum and maximum radii equal tomin
andmax
respectively.Methods in org.flag4j.rng with parameters of type Complex64Modifier and TypeMethodDescriptionstatic void
RandomArray.randomFill
(Complex64[] arr, Distribution<Complex64, RandomComplex> distribution) Fills an array with pseudorandom values sampled from the specifieddistribution
.Method parameters in org.flag4j.rng with type arguments of type Complex64Modifier and TypeMethodDescriptionstatic void
RandomArray.randomFill
(Complex64[] arr, Distribution<Complex64, RandomComplex> distribution) Fills an array with pseudorandom values sampled from the specifieddistribution
. -
Uses of Complex64 in org.flag4j.util
Methods in org.flag4j.util that return Complex64Modifier and TypeMethodDescriptionstatic Complex64[]
ArrayConversions.toComplex64
(float[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(int[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(Float[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(Integer[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(String[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.Methods in org.flag4j.util with parameters of type Complex64Modifier and TypeMethodDescriptionstatic void
Performs an array copy similar toSystem.arraycopy(Object, int, Object, int, int)
but wraps floats as complex numbers.static Complex128[]
ArrayConversions.toComplex128
(Complex64[] src, Complex128[] dest) Converts an array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(float[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(int[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(Float[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(Integer[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.static Complex64[]
ArrayConversions.toComplex64
(String[] src, Complex64[] dest) Converts array to an array ofcomplex numbers
.