public class IntKaratsubaConvolutionStrategy extends IntMediumConvolutionStrategy
| Modifier and Type | Field and Description |
|---|---|
static int |
CUTOFF_POINT
Cut-off point for Karatsuba / basic convolution.
|
| Constructor and Description |
|---|
IntKaratsubaConvolutionStrategy(int radix)
Creates a convolution strategy using the specified radix.
|
| Modifier and Type | Method and Description |
|---|---|
DataStorage |
convolute(DataStorage x,
DataStorage y,
long resultSize)
Convolutes the two sets of data.
|
baseAdd, baseDivide, baseMultiplyAdd, baseSubtractpublic static final int CUTOFF_POINT
Convolutions where the shorter number is at most this long
are calculated using the basic O(n2) algorithm
i.e. super.convolute().
public IntKaratsubaConvolutionStrategy(int radix)
radix - The radix that will be used.public DataStorage convolute(DataStorage x, DataStorage y, long resultSize) throws ApfloatRuntimeException
ConvolutionStrategyconvolute in interface ConvolutionStrategyconvolute in class IntMediumConvolutionStrategyx - First data set.y - Second data set.resultSize - Number of elements needed in the result data.ApfloatRuntimeExceptionCopyright © 2025. All rights reserved.