# Class FloatMediumConvolutionStrategy

java.lang.Object
org.apfloat.internal.FloatBaseMath
org.apfloat.internal.FloatMediumConvolutionStrategy

All Implemented Interfaces:
  `Serializable, ConvolutionStrategy`

Direct Known Subclasses:
  `FloatKaratsubaConvolutionStrategy`

public class FloatMediumConvolutionStrategy extends FloatBaseMath implements ConvolutionStrategy
Medium-length convolution strategy. Performs a simple O(n2) multiplication when the size of one operand is relatively short.

Version:
  1.15.0
Author:
  Mikko Tommila
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FloatMediumConvolutionStrategy(int radix)`
  Creates a convolution strategy using the specified radix.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DataStorage`
  `convolute(DataStorage x, DataStorage y, long resultSize)`
  Convolutes the two sets of data.

  ### Methods inherited from class FloatBaseMath

  `baseAdd, baseDivide, baseMultiplyAdd, baseSubtract`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FloatMediumConvolutionStrategy

    public FloatMediumConvolutionStrategy(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: `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`