Package org.apfloat.internal
Class IntShortConvolutionStrategy
java.lang.Object
org.apfloat.internal.IntBaseMath
org.apfloat.internal.IntShortConvolutionStrategy
- All Implemented Interfaces:
Serializable,ConvolutionStrategy
Short convolution strategy.
Performs a simple multiplication when the size of one operand is 1.
- Version:
- 1.9.0
- Author:
- Mikko Tommila
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntShortConvolutionStrategy(int radix) Creates a convolution strategy using the specified radix. -
Method Summary
Modifier and TypeMethodDescriptionconvolute(DataStorage x, DataStorage y, long resultSize) Convolutes the two sets of data.Methods inherited from class org.apfloat.internal.IntBaseMath
baseAdd, baseDivide, baseMultiplyAdd, baseSubtract
-
Constructor Details
-
IntShortConvolutionStrategy
public IntShortConvolutionStrategy(int radix) Creates a convolution strategy using the specified radix.- Parameters:
radix- The radix that will be used.
-
-
Method Details
-
convolute
public DataStorage convolute(DataStorage x, DataStorage y, long resultSize) throws ApfloatRuntimeException Description copied from interface:ConvolutionStrategyConvolutes the two sets of data.- Specified by:
convolutein interfaceConvolutionStrategy- Parameters:
x- First data set.y- Second data set.resultSize- Number of elements needed in the result data.- Returns:
- The convolved data.
- Throws:
ApfloatRuntimeException
-