public static class Operations.UseIfEqualTo extends Operations.UseBase
a == b
else use aBinaryOperation.Stub
br, dr, lr
Constructor and Description |
---|
UseIfEqualTo(boolean br,
long lr,
double dr,
double di) |
UseIfEqualTo(org.apache.commons.math3.complex.Complex z) |
UseIfEqualTo(Number r) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanOperate(long a,
long b) |
void |
complexOperate(double[] out,
double ra,
double ia,
double rb,
double ib) |
double |
doubleOperate(double a,
double b) |
long |
longOperate(long a,
long b) |
String |
toString() |
toString
public UseIfEqualTo(boolean br, long lr, double dr, double di)
br
- given value as booleanlr
- given value as longdr
- given value as doubledi
- given value for imaginary part as doublepublic UseIfEqualTo(Number r)
r
- given value as Numberpublic UseIfEqualTo(org.apache.commons.math3.complex.Complex z)
z
- given value as Complexpublic boolean booleanOperate(long a, long b)
booleanOperate
in interface BinaryOperation
booleanOperate
in class Operations.UseBase
a
- first operandb
- second operandpublic long longOperate(long a, long b)
longOperate
in interface BinaryOperation
longOperate
in class Operations.UseBase
a
- first operandb
- second operandpublic double doubleOperate(double a, double b)
doubleOperate
in interface BinaryOperation
doubleOperate
in class Operations.UseBase
a
- first operandb
- second operandpublic void complexOperate(double[] out, double ra, double ia, double rb, double ib)
complexOperate
in interface BinaryOperation
complexOperate
in class Operations.UseBase
out
- holds (ra, ia) op (rb, ib)ra
- real part of first operandia
- imaginary part of first operandrb
- real part of second operandib
- imaginary part of second operandCopyright © 2014–2022 Eclipse Foundation. All rights reserved.