Class NumericalConfiguration
java.lang.Object
org.episteme.core.mathematics.context.NumericalConfiguration
Configuration for numerical computation, including precision, backend preferences, and thresholds.
Standardized as NumericalConfiguration in the mathematics.context package.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFloating-point precision mode for GPU and numerical operations.static enumInteger precision mode for GPU and numerical operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyComputeMode(ComputeMode mode) Applies a computation mode, selecting the appropriate backend and adjusting precision if needed.doublefloatintdoubleintintintdoubleintdoublebooleansetBackendId(String backendId) setComputeMode(ComputeMode computeMode) setDistributedContext(DistributedContext distributedContext) setEpsilonDouble(double epsilonDouble) setEpsilonFloat(float epsilonFloat) setFloatPrecision(NumericalConfiguration.FloatPrecision floatPrecision) setGmresRestart(int gmresRestart) setGpuThreshold(double gpuThreshold) setIntPrecision(NumericalConfiguration.IntPrecision intPrecision) setMathContext(MathContext mathContext) setMaxIterations(int maxIterations) setMaxThreads(int maxThreads) setOverflowMode(MathContext.OverflowMode overflowMode) setParallelThreshold(int parallelThreshold) setPivotThreshold(double pivotThreshold) setPrecisionBits(int precisionBits) setRealPrecision(MathContext.RealPrecision realPrecision) setStabilityThreshold(double stabilityThreshold)
-
Constructor Details
-
NumericalConfiguration
public NumericalConfiguration()
-
-
Method Details
-
getFloatPrecision
-
setFloatPrecision
public NumericalConfiguration setFloatPrecision(NumericalConfiguration.FloatPrecision floatPrecision) -
getIntPrecision
-
setIntPrecision
-
getBackendId
-
setBackendId
-
getRealPrecision
-
setRealPrecision
-
getOverflowMode
-
setOverflowMode
-
getComputeMode
-
setComputeMode
-
getMathContext
-
setMathContext
-
getGpuThreshold
public double getGpuThreshold() -
setGpuThreshold
-
getParallelThreshold
public int getParallelThreshold() -
setParallelThreshold
-
getMaxThreads
public int getMaxThreads() -
setMaxThreads
-
getEpsilonDouble
public double getEpsilonDouble() -
setEpsilonDouble
-
getEpsilonFloat
public float getEpsilonFloat() -
setEpsilonFloat
-
getStabilityThreshold
public double getStabilityThreshold() -
setStabilityThreshold
-
getMaxIterations
public int getMaxIterations() -
setMaxIterations
-
getGmresRestart
public int getGmresRestart() -
setGmresRestart
-
getPrecisionBits
public int getPrecisionBits() -
setPrecisionBits
-
getPivotThreshold
public double getPivotThreshold() -
setPivotThreshold
-
applyComputeMode
Applies a computation mode, selecting the appropriate backend and adjusting precision if needed. -
isGpuAvailable
public boolean isGpuAvailable() -
getDistributedContext
-
setDistributedContext
-