Class NativeRealProvider
java.lang.Object
org.episteme.nativ.mathematics.numbers.real.providers.NativeRealProvider
- All Implemented Interfaces:
RealProvider, AlgorithmProvider
@AutoService(RealProvider.class)
public class NativeRealProvider
extends Object
implements RealProvider
Native MPFR-based implementation of
RealProvider.
Using NativeRealBig backed by Project Panama.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(BigDecimal value) Creates a Real instance from a BigDecimal.getConstant(String name) Returns a mathematical constant by name (e.g., "pi", "e").getName()intReturns the execution priority (higher is better).booleanChecks if the provider is available in the current environment.Creates a Real instance from a String.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AlgorithmProvider
description, getMetadata, score, shutdownMethods inherited from interface RealProvider
getAlgorithmType
-
Constructor Details
-
NativeRealProvider
public NativeRealProvider()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceAlgorithmProvider
-
getPriority
public int getPriority()Description copied from interface:AlgorithmProviderReturns the execution priority (higher is better).- Specified by:
getPriorityin interfaceAlgorithmProvider
-
isAvailable
public boolean isAvailable()Description copied from interface:AlgorithmProviderChecks if the provider is available in the current environment.- Specified by:
isAvailablein interfaceAlgorithmProvider
-
create
Description copied from interface:RealProviderCreates a Real instance from a BigDecimal.- Specified by:
createin interfaceRealProvider
-
of
Description copied from interface:RealProviderCreates a Real instance from a String.- Specified by:
ofin interfaceRealProvider
-
getConstant
Description copied from interface:RealProviderReturns a mathematical constant by name (e.g., "pi", "e"). Implementations should return a Real with at least the requested precision.- Specified by:
getConstantin interfaceRealProvider
-