Package org.apfloat.aparapi
Class LongAparapiFactor3NTTStrategy
- java.lang.Object
-
- org.apfloat.internal.Factor3NTTStrategy
-
- org.apfloat.aparapi.LongAparapiFactor3NTTStrategy
-
- All Implemented Interfaces:
Parallelizable,NTTStrategy
public class LongAparapiFactor3NTTStrategy extends Factor3NTTStrategy
Factor-3 NTT implementation for thelongelement type.- Since:
- 1.8.3
- Version:
- 1.9.0
-
-
Field Summary
-
Fields inherited from class org.apfloat.internal.Factor3NTTStrategy
stepStrategy
-
-
Constructor Summary
Constructors Constructor Description LongAparapiFactor3NTTStrategy()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinverseTransform(DataStorage dataStorage, int modulus, long totalTransformLength)Perform an inverse transform on the data.private voidpostTransform(DataStorage dataStorage)private voidpreTransform(DataStorage dataStorage)voidtransform(DataStorage dataStorage, int modulus)Perform a forward transform on the data.-
Methods inherited from class org.apfloat.internal.Factor3NTTStrategy
getTransformLength
-
-
-
-
Method Detail
-
transform
public void transform(DataStorage dataStorage, int modulus) throws ApfloatRuntimeException
Description copied from interface:NTTStrategyPerform 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:
transformin interfaceNTTStrategy- Overrides:
transformin 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:NTTStrategyPerform 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:
inverseTransformin interfaceNTTStrategy- Overrides:
inverseTransformin 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
-
preTransform
private void preTransform(DataStorage dataStorage)
-
postTransform
private void postTransform(DataStorage dataStorage)
-
-