org.apfloat.internal.IntNTTBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apfloat Show documentation
Show all versions of apfloat Show documentation
High performance arbitrary precision arithmetic library
package org.apfloat.internal;
import org.apfloat.spi.NTTStrategy;
import org.apfloat.spi.NTTStepStrategy;
import org.apfloat.spi.Factor3NTTStepStrategy;
import org.apfloat.spi.NTTConvolutionStepStrategy;
/**
* Creates Number Theoretic Transforms for the
* int
type.
*
* @see IntTableFNTStrategy
* @see SixStepFNTStrategy
* @see TwoPassFNTStrategy
* @see Factor3NTTStrategy
*
* @version 1.7.0
* @author Mikko Tommila
*/
public class IntNTTBuilder
extends AbstractNTTBuilder
{
/**
* Default constructor.
*/
public IntNTTBuilder()
{
}
public NTTStepStrategy createNTTSteps()
{
return new IntNTTStepStrategy();
}
public NTTConvolutionStepStrategy createNTTConvolutionSteps()
{
return new IntNTTConvolutionStepStrategy();
}
public Factor3NTTStepStrategy createFactor3NTTSteps()
{
return new IntFactor3NTTStepStrategy();
}
protected NTTStrategy createSimpleFNTStrategy()
{
return new IntTableFNTStrategy();
}
protected NTTStrategy createSixStepFNTStrategy()
{
return new SixStepFNTStrategy();
}
protected NTTStrategy createTwoPassFNTStrategy()
{
return new TwoPassFNTStrategy();
}
protected NTTStrategy createFactor3NTTStrategy(NTTStrategy nttStrategy)
{
return new Factor3NTTStrategy(nttStrategy);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy