Package org.apache.commons.math3.util
Class FastMathLiteralArrays
java.lang.Object
org.apache.commons.math3.util.FastMathLiteralArrays
Utility class for loading tabulated data used by
FastMath
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double[]
Exponential over the range of 0 - 1 in increments of 2^-10 exp(x/1024) = expFracTableA[x] + expFracTableB[x].private static final double[]
Exponential over the range of 0 - 1 in increments of 2^-10 exp(x/1024) = expFracTableA[x] + expFracTableB[x].private static final double[]
Exponential evaluated at integer values, exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX].private static final double[]
Exponential evaluated at integer values, exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX]private static final double[][]
Extended precision logarithm table over the range 1 - 2 in increments of 2^-10. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Class contains only static methods. -
Method Summary
Modifier and TypeMethodDescription(package private) static double[]
Load "EXP_FRAC_A".(package private) static double[]
Load "EXP_FRAC_B".(package private) static double[]
Load "EXP_INT_A".(package private) static double[]
Load "EXP_INT_B".(package private) static double[][]
Load "LN_MANT".
-
Field Details
-
EXP_INT_A
private static final double[] EXP_INT_AExponential evaluated at integer values, exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX]. -
EXP_INT_B
private static final double[] EXP_INT_BExponential evaluated at integer values, exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX] -
EXP_FRAC_A
private static final double[] EXP_FRAC_AExponential over the range of 0 - 1 in increments of 2^-10 exp(x/1024) = expFracTableA[x] + expFracTableB[x]. 1024 = 2^10 -
EXP_FRAC_B
private static final double[] EXP_FRAC_BExponential over the range of 0 - 1 in increments of 2^-10 exp(x/1024) = expFracTableA[x] + expFracTableB[x]. -
LN_MANT
private static final double[][] LN_MANTExtended precision logarithm table over the range 1 - 2 in increments of 2^-10.
-
-
Constructor Details
-
FastMathLiteralArrays
private FastMathLiteralArrays()Class contains only static methods.
-
-
Method Details
-
loadExpIntA
static double[] loadExpIntA()Load "EXP_INT_A".- Returns:
- a clone of the data array.
-
loadExpIntB
static double[] loadExpIntB()Load "EXP_INT_B".- Returns:
- a clone of the data array.
-
loadExpFracA
static double[] loadExpFracA()Load "EXP_FRAC_A".- Returns:
- a clone of the data array.
-
loadExpFracB
static double[] loadExpFracB()Load "EXP_FRAC_B".- Returns:
- a clone of the data array.
-
loadLnMant
static double[][] loadLnMant()Load "LN_MANT".- Returns:
- a clone of the data array.
-