Skip to content

Python math module support #19026

@eellison

Description

@eellison

[jit] Python math module support

The python math module is often used in numerical code. It would be nice to support it. I've divided up the math module into relatively higher priority and lower priority functions below.

Higher-pri:

  • acos
  • asin
  • atan
  • atan2
  • cos
  • fmod
  • modf
  • remainder
  • sin
  • tan
  • ceil
  • exp
  • floor
  • log
  • log10
  • log1p
  • log2
  • pow
  • sqrt

Lower-Pri

  • asinh
  • atanh
  • copysign
  • acosh
  • degrees
  • erf
  • erfc
  • expm1
  • fabs
  • factorial
  • frexp
  • fsum
  • gamma
  • gcd
  • isclose
  • isfinite
  • isinf
  • isnan
  • ldexp
  • lgamma
  • radians
  • sinh
  • cosh
  • tanh
  • trunc
  • hypot

cc @ezyang @gchanan @zou3519 @jerryzh168 @suo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNot as big of a feature, but technically not a bug. Should be easy to fixjit-backlogoncall: jitAdd this issue/PR to JIT oncall triage queuetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions