Documentation

CompPoly.Univariate.BatchEval.SubproductTree

Subproduct-Tree Batch Evaluation #

Executable subproduct-tree construction and descent for univariate batch evaluation.

inductive CompPoly.CPolynomial.SubproductTree (R : Type u_2) [Zero R] :
Type u_2

A subproduct tree stores the product polynomial at every node.

Instances For

    The product polynomial stored at the root of a subproduct tree.

    Instances For

      Build a leaf for one evaluation point.

      Instances For

        Combine two neighboring trees using the selected multiplication backend.

        Instances For

          Pair adjacent trees into the next subproduct-tree level.

          Instances For

            Repeatedly combine tree levels, bounded by fuel for straightforward termination.

            Instances For

              Build a subproduct tree from an ordered list of evaluation points.

              Instances For

                Build a subproduct tree from an ordered array of evaluation points.

                Instances For

                  Descend a subproduct tree with remainders and return values in leaf order.

                  Instances For
                    def CompPoly.CPolynomial.evalBatchSubproduct {R : Type u_1} [Field R] [BEq R] [LawfulBEq R] (M : MulContext R) (D : ModContext R) (p : CPolynomial R) (xs : Array R) :

                    Evaluate a polynomial at many points using a subproduct tree.

                    Instances For