Add log
and exp
support for rust
#16286
Labels
enhancement
New feature or an improvement of an existing feature
log
and exp
support for rust
#16286
Description
In python the
log
etc. functions are provided by supporting numpy. However I am writing a library on top of polars in Rust, and am really feeling the lack of a logarithm. A lot of information theoretical and statstic processes are quire reliant on logarithms or exponents. Given that logarithms have dedicated CPU instructions (source: https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24592.pdf page 319) I think it would be best to see if polars can support this directly instead of building it on top of it.Having the base be an argument is nice to have, but not necessary as arbitrary bases can be calculated from another one quite easily.
I would expect it to work just like other arithmetic functions:
should give back the following data frame:
The text was updated successfully, but these errors were encountered: