|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ojalgo.MathUtils
public abstract class MathUtils
Contains stuff that is missing from StrictMath
and that is
not included in PrimitiveFunction
.
Method Summary | |
---|---|
static int |
gcd(int aValue1,
int aValue2)
Deprecated. Since Version 22. Use RationalNumber.gcd(int,int) instead |
static long |
gcd(long aValue1,
long aValue2)
Deprecated. Since Version 22. Use RationalNumber.gcd(long,long) instead |
static double |
getError(int aScale)
Deprecated. Since Version 22. Use NumberContext.getError() instead. |
static boolean |
isZero(double aNmbr)
Deprecated. Since Version 22. Use TypeUtils.isZero(double) instead |
static boolean |
isZero(Number aNmbr)
Deprecated. Since Version 22. Use TypeUtils.isZero(double) instead |
static int |
max(int anIntA,
int anIntB,
int anIntC)
Deprecated. Since Version 22. Use MatrixUtils.max(int,int,int) instead |
static int |
min(int anIntA,
int anIntB,
int anIntC)
Deprecated. Since Version 22. Use MatrixUtils.min(int,int,int) instead |
static long |
power10(int anExponent)
Deprecated. Since Version 22. Use something else... |
static int |
randomInteger(int aLower,
int aHigher)
Deprecated. Since Version 22. Use Uniform.randomInteger(int,int) instead |
static BigDecimal |
toBigDecimal(Number aNumber)
Deprecated. Since Version 22. Use TypeUtils.toBigDecimal(Number) instead |
static ComplexNumber |
toComplexNumber(Number aNumber)
Deprecated. Since Version 22. Use TypeUtils.toComplexNumber(Number) instead |
static RationalNumber |
toRationalScalar(Number aNumber)
Deprecated. Since Version 22. Use TypeUtils.toRationalNumber(Number) instead |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static int gcd(int aValue1, int aValue2)
RationalNumber.gcd(int,int)
instead
@Deprecated public static long gcd(long aValue1, long aValue2)
RationalNumber.gcd(long,long)
instead
@Deprecated public static double getError(int aScale)
NumberContext.getError()
instead.
@Deprecated public static boolean isZero(double aNmbr)
TypeUtils.isZero(double)
instead
@Deprecated public static boolean isZero(Number aNmbr)
TypeUtils.isZero(double)
instead
@Deprecated public static int max(int anIntA, int anIntB, int anIntC)
MatrixUtils.max(int,int,int)
instead
@Deprecated public static int min(int anIntA, int anIntB, int anIntC)
MatrixUtils.min(int,int,int)
instead
@Deprecated public static long power10(int anExponent)
PrimitiveFunction.POW
,
PrimitiveFunction.POWER
,
BigFunction.POW
,
BigFunction.POWER
@Deprecated public static int randomInteger(int aLower, int aHigher)
Uniform.randomInteger(int,int)
instead
@Deprecated public static BigDecimal toBigDecimal(Number aNumber)
TypeUtils.toBigDecimal(Number)
instead
Number
is a BigDecimal
it is passed through unaltered. Otherwise an equivalent BigDecimal is
created.
aNumber
- Any Number
@Deprecated public static ComplexNumber toComplexNumber(Number aNumber)
TypeUtils.toComplexNumber(Number)
instead
@Deprecated public static RationalNumber toRationalScalar(Number aNumber)
TypeUtils.toRationalNumber(Number)
instead
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |