|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NTTStrategy
Number Theoretic Transform (NTT) strategy. An implementing class could be e.g.
Method Summary | |
---|---|
long |
getTransformLength(long size)
Return the supported transform length for the specified data size. |
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. |
Method Detail |
---|
void transform(DataStorage dataStorage, int modulus) throws ApfloatRuntimeException
Multiple moduli can be used, if the convolution algorithm uses the Chinese Remainder Theorem to calculate the final result.
dataStorage
- The data to be transformed.modulus
- Number of modulus to use (in case the transform supports multiple moduli).
ApfloatRuntimeException
void inverseTransform(DataStorage dataStorage, int modulus, long totalTransformLength) throws ApfloatRuntimeException
Multiple moduli can be used, if the convolution algorithm uses the Chinese Remainder Theorem to calculate the final result.
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.
ApfloatRuntimeException
long getTransformLength(long size)
size
- Length of the data to be transformed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |