public class DoubleConvolutionBuilder extends AbstractConvolutionBuilder
double type.DoubleShortConvolutionStrategy,
DoubleMediumConvolutionStrategy,
DoubleKaratsubaConvolutionStrategy,
ThreeNTTConvolutionStrategy| Constructor and Description |
|---|
DoubleConvolutionBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ConvolutionStrategy |
createKaratsubaConvolutionStrategy(int radix)
Create a Karatsuba convolution strategy.
|
protected ConvolutionStrategy |
createMediumConvolutionStrategy(int radix)
Create a medium-length convolution strategy where the size of one
of the data sets is relatively small (but more than one).
|
protected ConvolutionStrategy |
createShortConvolutionStrategy(int radix)
Create a short-length convolution strategy where the size of either
data set is one.
|
protected ConvolutionStrategy |
createThreeNTTConvolutionStrategy(int radix,
NTTStrategy nttStrategy)
Create a 3-NTT convolution strategy.
|
protected float |
getKaratsubaCostFactor()
Get the Karatsuba convolution cost factor.
|
protected int |
getKaratsubaCutoffPoint()
Get the Karatsuba convolution cutoff point.
|
protected float |
getNTTCostFactor()
Get the NTT convolution cost factor.
|
createConvolutionprotected int getKaratsubaCutoffPoint()
AbstractConvolutionBuildergetKaratsubaCutoffPoint in class AbstractConvolutionBuilderprotected float getKaratsubaCostFactor()
AbstractConvolutionBuildergetKaratsubaCostFactor in class AbstractConvolutionBuilderprotected float getNTTCostFactor()
AbstractConvolutionBuildergetNTTCostFactor in class AbstractConvolutionBuilderprotected ConvolutionStrategy createShortConvolutionStrategy(int radix)
AbstractConvolutionBuildercreateShortConvolutionStrategy in class AbstractConvolutionBuilderradix - The radix that will be used.protected ConvolutionStrategy createMediumConvolutionStrategy(int radix)
AbstractConvolutionBuildercreateMediumConvolutionStrategy in class AbstractConvolutionBuilderradix - The radix that will be used.protected ConvolutionStrategy createKaratsubaConvolutionStrategy(int radix)
AbstractConvolutionBuildercreateKaratsubaConvolutionStrategy in class AbstractConvolutionBuilderradix - The radix that will be used.protected ConvolutionStrategy createThreeNTTConvolutionStrategy(int radix, NTTStrategy nttStrategy)
AbstractConvolutionBuildercreateThreeNTTConvolutionStrategy in class AbstractConvolutionBuilderradix - The radix that will be used.nttStrategy - The underlying NTT strategy.Copyright © 2024. All rights reserved.