Interface FieldRuleFactory<T extends FieldElement<T>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Pair<T[],​T[]> getRule​(int numberOfPoints)
      Gets a copy of the quadrature rule with the given number of integration points.
    • Method Detail

      • getRule

        Pair<T[],​T[]> getRule​(int numberOfPoints)
                             throws MathIllegalArgumentException
        Gets a copy of the quadrature rule with the given number of integration points. The number of points is arbitrarily limited to 1000. It prevents resources exhaustion. In practice the number of points is often much lower.
        Parameters:
        numberOfPoints - Number of integration points.
        Returns:
        a copy of the integration rule.
        Throws:
        MathIllegalArgumentException - if numberOfPoints < 1.
        MathIllegalArgumentException - if numberOfPoints > 1000.
        MathIllegalArgumentException - if the elements of the rule pair do not have the same length.