Package org.apfloat.aparapi
Class IntAparapiFactor3NTTStrategy
- java.lang.Object
-
- org.apfloat.internal.Factor3NTTStrategy
-
- org.apfloat.aparapi.IntAparapiFactor3NTTStrategy
-
- All Implemented Interfaces:
Parallelizable
,NTTStrategy
public class IntAparapiFactor3NTTStrategy extends Factor3NTTStrategy
Factor-3 NTT implementation for theint
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 Constructor Description IntAparapiFactor3NTTStrategy()
Default constructor.
-
Method Summary
Modifier and Type Method Description void
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
-
-
-
-
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
-
-