Skip to content

Speed up comparisons coming from scalar products #144

@saraedum

Description

@saraedum

in libflatsurf we very commonly ask for a sign of the form sgn(a * b ± c * d). (E.g. when deciding collinearity, orthogonality, or relative length of two vectors.)

Currently, we cast everything to arb numbers, try there, and if this does not work, run the formula in e-antic. That's a bit inefficient since we then do the arb computation twice and this also creates a lot more allocations than necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions