Skip to content

streamline .set_order() methods for elliptic curves and points #34787

@yyyyx4

Description

@yyyyx4

Elliptic curves and points have .set_order() methods to supply the order to Sage's algorithms instead of computing it.

However, .set_order() for curves currently has a num_checks= keyword argument instead of the usual check= flag, and .set_order() for points does not have either argument and simply runs checks unconditionally.

In this patch we add check= arguments to both methods. Moreover, we make .set_order() work for points over general fields, where order-computation algorithms are not available at the moment.

Component: elliptic curves

Author: Lorenz Panny

Branch/Commit: 12d13b3

Reviewer: Kwankyu Lee

Issue created by migration from https://trac.sagemath.org/ticket/34787

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions