org.apfloat.internal
Class IntShortConvolutionStrategy

java.lang.Object
  extended byorg.apfloat.internal.IntBaseMath
      extended byorg.apfloat.internal.IntShortConvolutionStrategy
All Implemented Interfaces:
ConvolutionStrategy, IntRadixConstants, java.io.Serializable

public class IntShortConvolutionStrategy
extends IntBaseMath
implements ConvolutionStrategy, IntRadixConstants

Short convolution strategy. Performs a simple multiplication when the size of one operand is 1.

Version:
1.0
Author:
Mikko Tommila
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apfloat.internal.IntRadixConstants
BASE, BASE_DIGITS, MAX_EXPONENT, MINIMUM_FOR_DIGITS
 
Constructor Summary
IntShortConvolutionStrategy(int radix)
          Creates a convolution strategy using the specified radix.
 
Method Summary
 DataStorage convolute(DataStorage x, DataStorage y, long resultSize)
          Convolutes the two sets of data.
 
Methods inherited from class org.apfloat.internal.IntBaseMath
baseAdd, baseDivide, baseMultiplyAdd, baseSubtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntShortConvolutionStrategy

public IntShortConvolutionStrategy(int radix)
Creates a convolution strategy using the specified radix.

Parameters:
radix - The radix that will be used.
Method Detail

convolute

public DataStorage convolute(DataStorage x,
                             DataStorage y,
                             long resultSize)
                      throws ApfloatRuntimeException
Description copied from interface: ConvolutionStrategy
Convolutes the two sets of data.

Specified by:
convolute in interface ConvolutionStrategy
Parameters:
x - First data set.
y - Second data set.
resultSize - Number of elements needed in the result data.
Returns:
The convolved data.
Throws:
ApfloatRuntimeException