- java.lang.Object
-
- org.ojalgo.scalar.ComplexNumber
-
- All Implemented Interfaces:
java.lang.Comparable<ComplexNumber>,Field<Scalar<ComplexNumber>>,Group,Group.Additive<Scalar<ComplexNumber>>,Group.Multiplicative<Scalar<ComplexNumber>>,NormedVectorSpace<Scalar<ComplexNumber>,ComplexNumber>,Operation,Operation.Addition<Scalar<ComplexNumber>>,Operation.Division<Scalar<ComplexNumber>>,Operation.Multiplication<Scalar<ComplexNumber>>,Operation.Subtraction<Scalar<ComplexNumber>>,Ring<Scalar<ComplexNumber>>,ScalarOperation,ScalarOperation.Addition<Scalar<ComplexNumber>,ComplexNumber>,ScalarOperation.Division<Scalar<ComplexNumber>,ComplexNumber>,ScalarOperation.Multiplication<Scalar<ComplexNumber>,ComplexNumber>,ScalarOperation.Subtraction<Scalar<ComplexNumber>,ComplexNumber>,VectorSpace<Scalar<ComplexNumber>,ComplexNumber>,Scalar<ComplexNumber>,SelfDeclaringScalar<ComplexNumber>,Access1D<java.lang.Double>,Access2D<java.lang.Double>,Access2D.Collectable<java.lang.Double,Mutate2D>,AccessScalar<ComplexNumber>,Structure1D,Structure2D,Transformation2D<java.lang.Double>,Tensor<ComplexNumber,Scalar<ComplexNumber>>,NumberContext.Enforceable<ComplexNumber>,NumberDefinition
public final class ComplexNumber extends java.lang.Object implements SelfDeclaringScalar<ComplexNumber>, Access2D<java.lang.Double>, Transformation2D<java.lang.Double>, Access2D.Collectable<java.lang.Double,Mutate2D>
ComplexNumber is an immutable complex number class. It only implements the most basic complex number operations. ComplexFunction implements some of the more complicated ones.- See Also:
ComplexFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access2D
Access2D.Aggregatable<N extends java.lang.Comparable<N>>, Access2D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate2D>, Access2D.ColumnView<N extends java.lang.Comparable<N>>, Access2D.ElementView<N extends java.lang.Comparable<N>>, Access2D.RowView<N extends java.lang.Comparable<N>>, Access2D.SelectionView<N extends java.lang.Comparable<N>>, Access2D.Sliceable<N extends java.lang.Comparable<N>>, Access2D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.scalar.Scalar
Scalar.Factory<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.ScalarOperation
ScalarOperation.Addition<T,N extends java.lang.Comparable<N>>, ScalarOperation.Division<T,N extends java.lang.Comparable<N>>, ScalarOperation.Multiplication<T,N extends java.lang.Comparable<N>>, ScalarOperation.Subtraction<T,N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,B extends Structure2D.Logical<S,B>>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.Reshapable, Structure2D.RowColumnKey<R,C>, Structure2D.RowColumnMapper<R,C>
-
-
Field Summary
Fields Modifier and Type Field Description private static doubleARGUMENT_TOLERANCEstatic Scalar.Factory<ComplexNumber>FACTORYdoubleistatic ComplexNumberIComplex numberi, Z = (0.0 + 1.0i), satisfies i2 = -1;static ComplexNumberINFINITYComplex number Z = (+∞ + 0.0i)private static java.lang.StringLEFTprivate static java.lang.StringMINUSprivate booleanmyRealForSureprivate doublemyRealValuestatic ComplexNumberNComplex number-i, Z = (0.0 - 1.0i)static ComplexNumberNaNComplex number Z = (NaN + NaNi)static ComplexNumberNEGComplex number Z = (-1.0 + 0.0i)static ComplexNumberONEComplex number Z = (1.0 + 0.0i)private static java.lang.StringPLUSprivate static java.lang.StringRIGHTstatic ComplexNumberTWOComplex number Z = (2.0 + 0.0i)static ComplexNumberZEROComplex number Z = (0.0 + 0.0i)
-
Constructor Summary
Constructors Modifier Constructor Description ComplexNumber()Complex number constructor, returnsZEROprivateComplexNumber(double real)(package private)ComplexNumber(double real, double imaginary)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplexNumberadd(double arg)Performs the binary operation '+' with a real numberComplexNumberadd(ComplexNumber arg)Performs the binary operation '+' with a complex number.intcompareTo(ComplexNumber other)First compares the real values.ComplexNumberconjugate()Returns the conjugate of this complex number.longcount()count() == countRows() * countColumns()longcountColumns()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.longcountRows()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.ComplexNumberdivide(double arg)Performs the binary operation '/' with a real number.ComplexNumberdivide(ComplexNumber arg)Performs the binary operation '/' with a complex number.doubledoubleValue()doubledoubleValue(int index)doubledoubleValue(int row, int col)Extracts one element of this matrix as a double.ComplexNumberenforce(NumberContext context)Will call NumberContext.enforce(double) on the real and imaginary parts separately.booleanequals(java.lang.Object obj)floatfloatValue()ComplexNumberget()java.lang.Doubleget(long index)java.lang.Doubleget(long row, long col)doublegetArgument()intgetColDim()doublegetImaginary()doublegetModulus()doublegetReal()intgetRowDim()inthashCode()intintValue()ComplexNumberinvert()Performs the unary operation '1/x'booleanisAbsolute()static booleanisAbsolute(ComplexNumber value)static booleanisInfinite(ComplexNumber value)Test ifvalueis infinite.static booleanisNaN(ComplexNumber value)Test ifvalueis NaN.booleanisReal()static booleanisReal(ComplexNumber value)Test ifvalueis real.booleanisSmall(double comparedTo)static booleanisSmall(double comparedTo, ComplexNumber value)booleanisZero()Tests if this scalar value is exactly zero.longlongValue()static ComplexNumbermakePolar(double norm, double phase)Static factory method returning a complex number from polar coordinatesstatic ComplexNumbermakeRotation(double angle)ComplexNumbermultiply(double arg)Performs the binary operation '*' with a real number.ComplexNumbermultiply(ComplexNumber arg)Performs the binary operation '*' with a complex number.doublemultiplyIm(double argRe, double argIm)The imaginary part of the complex number resulting when multiplying this with a complex number whose real and imaginary parts are argRe and argIm.doublemultiplyRe(double argRe, double argIm)The real part of the complex number resulting when multiplying this with a complex number whose real and imaginary parts are argRe and argIm.ComplexNumbernegate()Performs the unary operation '-'.static ComplexNumbernewUnitRoot(int nbRoots)static ComplexNumber[]newUnitRoots(int nbRoots)doublenorm()Returns the norm of this complex number.static ComplexNumberof(double real, double imaginary)Static factory method returning a complex number from cartesian coordinates.doublephase()Returns the phase of this complex number.ComplexNumberpower(int power)Multiply by itselfpowertimes.ComplexNumbersignum()this == this.signum().multiply(this.norm())ComplexNumbersubtract(double arg)Performs the binary operation '-' with a real number.ComplexNumbersubtract(ComplexNumber arg)Performs the binary operation '-' with a complex number.voidsupplyTo(Mutate2D receiver)java.math.BigDecimaltoBigDecimal()MatrixStore<java.lang.Double>toMultiplicationMatrix()MatrixStore<java.lang.Double>toMultiplicationVector()MatrixStore<java.lang.Double>toRotationMatrix()java.lang.StringtoString()java.lang.StringtoString(NumberContext context)<T extends Mutate2D.ModifiableReceiver<java.lang.Double>>
voidtransform(T transformable)(package private) <T extends Mutate2D.ModifiableReceiver<java.lang.Double>>
voidtransformWhenUnit(T transformable)static ComplexNumbervalueOf(double value)Static factory method returning a complex number from a real valuestatic ComplexNumbervalueOf(java.lang.Comparable<?> number)Static factory method returning a complex number from arbitrary number-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, dot, select, supplyTo, toList, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.Access2D
asCollectable2D, asKeyed2D, byteValue, byteValue, byteValue, byteValue, columns, columns, columns, doubleValue, doubleValue, elements, floatValue, floatValue, floatValue, floatValue, intValue, intValue, intValue, intValue, longValue, longValue, longValue, longValue, nonzeros, rows, rows, rows, select, select, shortValue, shortValue, shortValue, shortValue, toRawCopy2D
-
Methods inherited from interface org.ojalgo.structure.Access2D.Collectable
collect
-
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, shortValue
-
Methods inherited from interface org.ojalgo.scalar.Scalar
add, dimensions, divide, multiply, rank, subtract, toPlainString
-
Methods inherited from interface org.ojalgo.scalar.SelfDeclaringScalar
add, divide, multiply, subtract
-
Methods inherited from interface org.ojalgo.structure.Structure2D
firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Methods inherited from interface org.ojalgo.tensor.Tensor
components, isSameShape
-
-
-
-
Field Detail
-
FACTORY
public static final Scalar.Factory<ComplexNumber> FACTORY
-
I
public static final ComplexNumber I
Complex numberi, Z = (0.0 + 1.0i), satisfies i2 = -1;
-
INFINITY
public static final ComplexNumber INFINITY
Complex number Z = (+∞ + 0.0i)
-
N
public static final ComplexNumber N
Complex number-i, Z = (0.0 - 1.0i)
-
NaN
public static final ComplexNumber NaN
Complex number Z = (NaN + NaNi)
-
NEG
public static final ComplexNumber NEG
Complex number Z = (-1.0 + 0.0i)
-
ONE
public static final ComplexNumber ONE
Complex number Z = (1.0 + 0.0i)
-
TWO
public static final ComplexNumber TWO
Complex number Z = (2.0 + 0.0i)
-
ZERO
public static final ComplexNumber ZERO
Complex number Z = (0.0 + 0.0i)
-
ARGUMENT_TOLERANCE
private static final double ARGUMENT_TOLERANCE
-
LEFT
private static final java.lang.String LEFT
- See Also:
- Constant Field Values
-
MINUS
private static final java.lang.String MINUS
- See Also:
- Constant Field Values
-
PLUS
private static final java.lang.String PLUS
- See Also:
- Constant Field Values
-
RIGHT
private static final java.lang.String RIGHT
- See Also:
- Constant Field Values
-
i
public final double i
-
myRealForSure
private final boolean myRealForSure
-
myRealValue
private final double myRealValue
-
-
Constructor Detail
-
ComplexNumber
public ComplexNumber()
Complex number constructor, returnsZERO
-
ComplexNumber
private ComplexNumber(double real)
-
ComplexNumber
ComplexNumber(double real, double imaginary)
-
-
Method Detail
-
isAbsolute
public static boolean isAbsolute(ComplexNumber value)
-
isInfinite
public static boolean isInfinite(ComplexNumber value)
Test ifvalueis infinite. A complex number is infinite if its real part and/or its imaginary part is infinite.- Parameters:
value- the complex number to test- Returns:
- true if the specified value is infinite (real and/or imaginary part) otherwise false
-
isNaN
public static boolean isNaN(ComplexNumber value)
Test ifvalueis NaN. A complex number is NaN if its real and/or its imaginary part is NaN.- Parameters:
value- the complex number to test- Returns:
- true if the specified value is NaN (real and/or imaginary part) otherwise false
-
isReal
public static boolean isReal(ComplexNumber value)
Test ifvalueis real. A complex number Z is real if and only if Im(Z) = 0.0.- Parameters:
value- the complex number to test- Returns:
- true if the imaginary part of the specified value is null otherwise false
-
isSmall
public static boolean isSmall(double comparedTo, ComplexNumber value)
-
makePolar
public static ComplexNumber makePolar(double norm, double phase)
Static factory method returning a complex number from polar coordinates- Parameters:
norm- the complex number's normphase- the complex number's phase- Returns:
- a complex number
-
makeRotation
public static ComplexNumber makeRotation(double angle)
-
newUnitRoot
public static ComplexNumber newUnitRoot(int nbRoots)
-
newUnitRoots
public static ComplexNumber[] newUnitRoots(int nbRoots)
-
of
public static ComplexNumber of(double real, double imaginary)
Static factory method returning a complex number from cartesian coordinates.- Parameters:
real- the complex number's real partimaginary- the complex number's imaginary part- Returns:
- a complex number
-
valueOf
public static ComplexNumber valueOf(java.lang.Comparable<?> number)
Static factory method returning a complex number from arbitrary number- Parameters:
number- a numeric value- Returns:
ZEROifnumberis null otherwise the double value ofnumber
-
valueOf
public static ComplexNumber valueOf(double value)
Static factory method returning a complex number from a real value- Parameters:
value- the complex number's real part- Returns:
- a complex number Z = (
value+ 0.0i)
-
add
public ComplexNumber add(ComplexNumber arg)
Performs the binary operation '+' with a complex number.- Specified by:
addin interfaceScalarOperation.Addition<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
addin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the complex number to add- Returns:
- a complex number Z = ((Re(this) + Re(arg)) + (Im(this) + Im(arg))i)
-
add
public ComplexNumber add(double arg)
Performs the binary operation '+' with a real number- Specified by:
addin interfaceScalarOperation.Addition<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
addin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the real number to add- Returns:
- a complex number Z = ((Re(this) + arg) + Im(this)i)
-
compareTo
public int compareTo(ComplexNumber other)
First compares the real values. Only if they are equal will compare the imaginary part.- Specified by:
compareToin interfacejava.lang.Comparable<ComplexNumber>
-
conjugate
public ComplexNumber conjugate()
Returns the conjugate of this complex number. A complex number conjugate is its reflexion about the real axis.- Specified by:
conjugatein interfaceSelfDeclaringScalar<ComplexNumber>- Specified by:
conjugatein interfaceVectorSpace<Scalar<ComplexNumber>,ComplexNumber>- Returns:
- a complex number Z = (Re(this) - Im(this)i)
-
count
public long count()
Description copied from interface:Structure2Dcount() == countRows() * countColumns()- Specified by:
countin interfaceStructure1D- Specified by:
countin interfaceStructure2D
-
countColumns
public long countColumns()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumnsin interfaceStructure2D- Returns:
- The number of columns
-
countRows
public long countRows()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRowsin interfaceStructure2D- Returns:
- The number of rows
-
divide
public ComplexNumber divide(ComplexNumber arg)
Performs the binary operation '/' with a complex number.- Specified by:
dividein interfaceScalarOperation.Division<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
dividein interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the complex number to divide by- Returns:
- a complex number Z = this / arg
-
divide
public ComplexNumber divide(double arg)
Performs the binary operation '/' with a real number.- Specified by:
dividein interfaceScalarOperation.Division<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
dividein interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the real number to divide by- Returns:
- a complex number Z = ((Re(this) / arg) + (Im(this) / arg)i)
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein interfaceNumberDefinition
-
doubleValue
public double doubleValue(int index)
- Specified by:
doubleValuein interfaceAccess1D<java.lang.Double>- Specified by:
doubleValuein interfaceAccess2D<java.lang.Double>
-
doubleValue
public double doubleValue(int row, int col)Description copied from interface:Access2DExtracts one element of this matrix as a double.- Specified by:
doubleValuein interfaceAccess2D<java.lang.Double>- Parameters:
row- A row index.col- A column index.- Returns:
- One matrix element
-
enforce
public ComplexNumber enforce(NumberContext context)
Will call NumberContext.enforce(double) on the real and imaginary parts separately.- Specified by:
enforcein interfaceNumberContext.Enforceable<ComplexNumber>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
floatValue
public float floatValue()
- Specified by:
floatValuein interfaceNumberDefinition
-
get
public ComplexNumber get()
- Specified by:
getin interfaceAccessScalar<ComplexNumber>
-
get
public java.lang.Double get(long index)
-
get
public java.lang.Double get(long row, long col)
-
getArgument
public double getArgument()
-
getColDim
public int getColDim()
- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getImaginary
public double getImaginary()
-
getModulus
public double getModulus()
-
getReal
public double getReal()
-
getRowDim
public int getRowDim()
- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
intValue
public int intValue()
- Specified by:
intValuein interfaceNumberDefinition
-
invert
public ComplexNumber invert()
Performs the unary operation '1/x'- Specified by:
invertin interfaceGroup.Multiplicative<Scalar<ComplexNumber>>- Specified by:
invertin interfaceSelfDeclaringScalar<ComplexNumber>- Returns:
- the complex number Z inverse of this, satisfies Z * this = 1
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfaceScalar<ComplexNumber>- Returns:
- true if this is equal to its own norm, modulus or absolute value (non-negative real part and no imaginary part); otherwise false.
- See Also:
Scalar.isAbsolute()
-
isReal
public boolean isReal()
-
isSmall
public boolean isSmall(double comparedTo)
- Specified by:
isSmallin interfaceNormedVectorSpace<Scalar<ComplexNumber>,ComplexNumber>- Parameters:
comparedTo- What to compare with- Returns:
- true if this is small compared to the magnitude of the input reference value.
-
isZero
public boolean isZero()
Description copied from interface:ScalarTests if this scalar value is exactly zero.Each implementation should test for zero as exactly as possible based on what's achievable with that specific scalar type. The purpose is NOT to have similar behavior between different implementations, but rather to leverage the full precision and capabilities of each type.
For example:
- Primitive types (like
double) should use exact equality comparison - High-precision types (like
Quadruple) should check both base and remainder components - Arbitrary-precision types (like
BigDecimal) should use their built-in zero detection - Complex types should check both real and imaginary parts
This method should NOT use tolerance-based comparisons or approximate zero detection, as those are better handled by context-aware methods like
NormedVectorSpace.isSmall(double).- Specified by:
isZeroin interfaceScalar<ComplexNumber>- Returns:
- true if this scalar represents exactly zero, false otherwise
- See Also:
NormedVectorSpace.isSmall(double)
- Primitive types (like
-
longValue
public long longValue()
- Specified by:
longValuein interfaceNumberDefinition
-
multiply
public ComplexNumber multiply(ComplexNumber arg)
Performs the binary operation '*' with a complex number.- Specified by:
multiplyin interfaceScalarOperation.Multiplication<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
multiplyin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the complex number to multiply by- Returns:
- a complex number Z = this * arg
-
multiply
public ComplexNumber multiply(double arg)
Performs the binary operation '*' with a real number.- Specified by:
multiplyin interfaceScalarOperation.Multiplication<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
multiplyin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the real number to multiply by- Returns:
- a complex number Z = ((Re(this) * arg) + Im(this) * arg))
-
multiplyIm
public double multiplyIm(double argRe, double argIm)The imaginary part of the complex number resulting when multiplying this with a complex number whose real and imaginary parts are argRe and argIm.
-
multiplyRe
public double multiplyRe(double argRe, double argIm)The real part of the complex number resulting when multiplying this with a complex number whose real and imaginary parts are argRe and argIm.
-
negate
public ComplexNumber negate()
Performs the unary operation '-'.- Specified by:
negatein interfaceGroup.Additive<Scalar<ComplexNumber>>- Specified by:
negatein interfaceSelfDeclaringScalar<ComplexNumber>- Returns:
- a complex number Z = -this
-
norm
public double norm()
Returns the norm of this complex number. The norm of a complex number is defined by |Z| = (ZZ*)1/2.- Specified by:
normin interfaceNormedVectorSpace<Scalar<ComplexNumber>,ComplexNumber>- Returns:
- the norm of this complex number.
-
phase
public double phase()
Returns the phase of this complex number. The phase of a complex number Z is the angle between the positive real axis and the straight line defined by origin and Z in complex plane.- Returns:
- the phase of this complex number
-
power
public ComplexNumber power(int power)
Description copied from interface:Operation.MultiplicationMultiply by itselfpowertimes.- Specified by:
powerin interfaceOperation.Multiplication<Scalar<ComplexNumber>>- Specified by:
powerin interfaceSelfDeclaringScalar<ComplexNumber>
-
signum
public ComplexNumber signum()
Description copied from interface:NormedVectorSpacethis == this.signum().multiply(this.norm())- Specified by:
signumin interfaceNormedVectorSpace<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
signumin interfaceSelfDeclaringScalar<ComplexNumber>- Returns:
- A unit "vector"
-
subtract
public ComplexNumber subtract(ComplexNumber arg)
Performs the binary operation '-' with a complex number.- Specified by:
subtractin interfaceScalarOperation.Subtraction<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
subtractin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the complex number to subtract- Returns:
- a complex number Z = this -
arg
-
subtract
public ComplexNumber subtract(double arg)
Performs the binary operation '-' with a real number.- Specified by:
subtractin interfaceScalarOperation.Subtraction<Scalar<ComplexNumber>,ComplexNumber>- Specified by:
subtractin interfaceSelfDeclaringScalar<ComplexNumber>- Parameters:
arg- the real number to subtract- Returns:
- a complex number Z = ((Re(this) - arg) + Im(this)i)
-
supplyTo
public void supplyTo(Mutate2D receiver)
- Specified by:
supplyToin interfaceAccess2D.Collectable<java.lang.Double,Mutate2D>
-
toBigDecimal
public java.math.BigDecimal toBigDecimal()
- Specified by:
toBigDecimalin interfaceScalar<ComplexNumber>
-
toMultiplicationMatrix
public MatrixStore<java.lang.Double> toMultiplicationMatrix()
-
toMultiplicationVector
public MatrixStore<java.lang.Double> toMultiplicationVector()
-
toRotationMatrix
public MatrixStore<java.lang.Double> toRotationMatrix()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
toString
public java.lang.String toString(NumberContext context)
- Specified by:
toStringin interfaceScalar<ComplexNumber>
-
transform
public <T extends Mutate2D.ModifiableReceiver<java.lang.Double>> void transform(T transformable)
- Specified by:
transformin interfaceTransformation2D<java.lang.Double>
-
transformWhenUnit
<T extends Mutate2D.ModifiableReceiver<java.lang.Double>> void transformWhenUnit(T transformable)
-
-