Package org.apfloat.aparapi
Class LongAparapiFactor3NTTStrategy
java.lang.Object
org.apfloat.internal.Factor3NTTStrategy
org.apfloat.aparapi.LongAparapiFactor3NTTStrategy
- All Implemented Interfaces:
Parallelizable
,NTTStrategy
Factor-3 NTT implementation for the
long
element type.- Since:
- 1.8.3
- Version:
- 1.9.0
- Author:
- Mikko Tommila
-
Field Summary
Fields inherited from class org.apfloat.internal.Factor3NTTStrategy
stepStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
inverseTransform
(DataStorage dataStorage, int modulus, long totalTransformLength) Perform an inverse transform on the data.void
transform
(DataStorage dataStorage, int modulus) Perform a forward transform on the data.Methods inherited from class org.apfloat.internal.Factor3NTTStrategy
getTransformLength
-
Constructor Details
-
LongAparapiFactor3NTTStrategy
public LongAparapiFactor3NTTStrategy()Default constructor.
-
-
Method Details
-
transform
Description copied from interface:NTTStrategy
Perform a forward transform on the data.Multiple moduli can be used, if the convolution algorithm uses the Chinese Remainder Theorem to calculate the final result.
- Specified by:
transform
in interfaceNTTStrategy
- Overrides:
transform
in classFactor3NTTStrategy
- Parameters:
dataStorage
- The data to be transformed.modulus
- Number of modulus to use (in case the transform supports multiple moduli).- Throws:
ApfloatRuntimeException
-
inverseTransform
public void inverseTransform(DataStorage dataStorage, int modulus, long totalTransformLength) throws ApfloatRuntimeException Description copied from interface:NTTStrategy
Perform an inverse transform on the data.Multiple moduli can be used, if the convolution algorithm uses the Chinese Remainder Theorem to calculate the final result.
- Specified by:
inverseTransform
in interfaceNTTStrategy
- Overrides:
inverseTransform
in classFactor3NTTStrategy
- Parameters:
dataStorage
- The data to be transformed.modulus
- Number of modulus to use (in case the transform supports multiple moduli).totalTransformLength
- Total transform length; the final result elements are divided by this value.- Throws:
ApfloatRuntimeException
-