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 thelong
element 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 void
inverseTransform(DataStorage dataStorage, int modulus, long totalTransformLength)
Perform an inverse transform on the data.private void
postTransform(DataStorage dataStorage)
private void
preTransform(DataStorage dataStorage)
void
transform(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: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
-
preTransform
private void preTransform(DataStorage dataStorage)
-
postTransform
private void postTransform(DataStorage dataStorage)
-
-