public static class Operations.UseIfEqualTo extends Operations.UseBase
a == b else use aBinaryOperation.Stubbr, 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() |
toStringpublic 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 BinaryOperationbooleanOperate in class Operations.UseBasea - first operandb - second operandpublic long longOperate(long a, long b)
longOperate in interface BinaryOperationlongOperate in class Operations.UseBasea - first operandb - second operandpublic double doubleOperate(double a, double b)
doubleOperate in interface BinaryOperationdoubleOperate in class Operations.UseBasea - first operandb - second operandpublic void complexOperate(double[] out, double ra, double ia, double rb, double ib)
complexOperate in interface BinaryOperationcomplexOperate in class Operations.UseBaseout - 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.