add inverse trig functions to Tensor (#7805)

* implement inverse trig functions

* guess we should still test nans?

* magnitude as variable name :D

* reorder onnx_ops ops

* approximation -> x for consistency

* address feedback

* simpler acos

* improvement?

* actually just have asin depend on atan

* actually this is nicer

* remove a comment

---------

Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
geohotstan
2024-11-21 22:13:36 +08:00
committed by GitHub
parent 5399ff6d06
commit cf1ec90ad4
4 changed files with 53 additions and 19 deletions

View File

@@ -13,6 +13,9 @@ Elementwise ops operate on a per element basis. They don't change the shape of t
::: tinygrad.Tensor.sin
::: tinygrad.Tensor.cos
::: tinygrad.Tensor.tan
::: tinygrad.Tensor.asin
::: tinygrad.Tensor.acos
::: tinygrad.Tensor.atan
::: tinygrad.Tensor.trunc
::: tinygrad.Tensor.ceil
::: tinygrad.Tensor.floor