Class LongCarryCRTBuilder

java.lang.Object
org.apfloat.internal.LongCarryCRTBuilder
All Implemented Interfaces:
CarryCRTBuilder<long[]>

public class LongCarryCRTBuilder extends Object implements CarryCRTBuilder<long[]>
Creates carry-CRT related objects, for the long type.
Since:
1.7.0
Version:
1.7.0
Author:
Mikko Tommila
  • Constructor Details

    • LongCarryCRTBuilder

      public LongCarryCRTBuilder()
      Default constructor.
  • Method Details

    • createCarryCRT

      public CarryCRTStrategy createCarryCRT(int radix)
      Description copied from interface: CarryCRTBuilder
      Creates an object for implementing the carry-CRT of a three-NTT based convolution using the specified radix.
      Specified by:
      createCarryCRT in interface CarryCRTBuilder<long[]>
      Parameters:
      radix - The radix that will be used.
      Returns:
      A suitable object for performing the carry-CRT.
    • createCarryCRTSteps

      public CarryCRTStepStrategy<long[]> createCarryCRTSteps(int radix)
      Description copied from interface: CarryCRTBuilder
      Creates an object for implementing the steps of the carry-CRT of a three-NTT based convolution using the specified radix.
      Specified by:
      createCarryCRTSteps in interface CarryCRTBuilder<long[]>
      Parameters:
      radix - The radix that will be used.
      Returns:
      A suitable object for performing the carry-CRT steps.