ivy icon indicating copy to clipboard operation
ivy copied to clipboard

Add Mathematical functions to Numpy Frontend

Open Aarsh2001 opened this issue 2 years ago • 35 comments

Add Mathematical functions to Numpy frontend:

_

Please keep in mind that the proper way to link an issue to this list is to comment "- [ ] #issue_number" while the issue's title only includes the name of the function you've chosen.

_

  • [x] #2443
  • [x] cos
  • [x] #3821
  • [x] arcsin
  • [x] #26079
  • [x] #2789
  • [ ] hypot
  • [x] #22745
  • [x] degrees
  • [x] #4126
  • [x] #13261
  • [x] deg2rad
  • [x] rad2deg
  • [x] #2685
  • [x] #2689
  • [x] tanh
  • [x] #3799
  • [x] arccosh
  • [x] #3084
  • [x] #21150
  • [x] #19015_
  • [x] #9985
  • [x] fix
  • [ ] #22574
  • [x] #3674
  • [x] #5721
  • [x] #26190
  • [x] sum
  • [x] nanprod
  • [x] nansum
  • [x] cumprod
  • [x] cumsum
  • [x] nancumprod
  • [x] nancumsum
  • [x] #9919
  • [x] #13356
  • [ ] #26249
  • [x] #12120
  • [ ] #19376
  • [x] #2576
  • [x] expm1
  • [x] exp2
  • [x] #2885
  • [x] log10
  • [x] log2
  • [x] log1p
  • [x] logaddexp
  • [x] #4110
  • [x] #9748
  • [x] #22090
  • [x] #23332
  • [x] #9237
  • [x] #12334
  • [x] #12856
  • [x] #13077
  • [x] #16433
  • [x] #15700
  • [x] #15975
  • [ ] #26213
  • [x] #12907
  • [x] #3841
  • [x] #4008
  • [x] #2492
  • [x] divide
  • [x] #5845
  • [x] #2435
  • [x] true_divide
  • [x] #4442
  • [x] #6747
  • [x] fmod
  • [x] #6582
  • [x] #12086
  • [x] #17587
  • [x] #12565
  • [x] angle
  • [x] #10478
  • [x] #10395
  • [x] #12400
  • [x] #14593
  • [x] maximum
  • [x] #12337
  • [x] amax
  • [x] #8000
  • [x] #3715
  • [x] fmin
  • [x] #4641
  • [x] #4851
  • [x] #7075
  • [x] clip
  • [x] #2766
  • [x] cbrt
  • [x] #2591
  • [x] absolute
  • [x] fabs
  • [x] sign
  • [x] heaviside
  • [x] nan_to_num
  • [x] real_if_close
  • [x] interp

The main file paths where these functions are likely to be added are:

  • ivy/functional/frontends/numpy/mathematical\_functions/trigonometric\_functions.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_np\_trigonometric\_functions.py
  • ivy/functional/frontends/numpy/mathematical\_functions/hyperbolic\_functions.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_np\_hyperbolic\_functions.py
  • ivy/functional/frontends/numpy/mathematical\_functions/rounding.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_rounding.py
  • ivy/functional/frontends/numpy/mathematical\_functions/sums\_products\_differences.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_sums\_products\_differences.py
  • ivy/functional/frontends/numpy/\_\_init\_\_.py
  • ivy/functional/frontends/numpy/mathematical\_functions/exponents\_and\_logarithms.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_exponents\_and\_logarithms.py
  • ivy/functional/frontends/numpy/mathematical\_functions/miscellaneous.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_miscellaneous.py
  • ivy/functional/frontends/numpy/mathematical\_functions/floating\_point\_routines.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_floating\_point\_routines.py
  • ivy/functional/frontends/numpy/mathematical\_functions/arithmetic\_operations.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_np\_arithmetic\_operations.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_arithmetic\_operations.py
  • ivy/functional/frontends/numpy/mathematical\_functions/handling\_complex\_numbers.py
  • ivy/functional/frontends/numpy/ufunc/methods.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_handling\_complex\_numbers.py
  • ivy/functional/frontends/numpy/mathematical\_functions/extrema\_finding.py
  • ivy\_tests/test\_ivy/test\_frontends/test\_numpy/test\_mathematical\_functions/test\_extrema\_finding.py

Aarsh2001 avatar Jun 19 '22 13:06 Aarsh2001

#2435

TheMonocledHamster avatar Jul 29 '22 21:07 TheMonocledHamster

sin #2443

fnhirwa avatar Jul 30 '22 06:07 fnhirwa

Hello @Aarsh2001 I have created a Pull request for adding cosh function. Kindly review and let me know if I should make any changes for the same :) Link: https://github.com/unifyai/ivy/pull/2951

aryanxk02 avatar Aug 13 '22 06:08 aryanxk02

Hello @Darshan2104 I am currently working on writing code for tanh. And I am almost done.

aryanxk02 avatar Aug 13 '22 15:08 aryanxk02

@aryanxk02 No problem go for it I'll change mine :)

Darshan2104 avatar Aug 14 '22 13:08 Darshan2104

tanh https://github.com/unifyai/ivy/issues/3005

aryanxk02 avatar Aug 14 '22 13:08 aryanxk02

@aryanxk02 No problem go for it I'll change mine :)

Hi @Darshan2104 I have written code for tanh function. But the tests are failing when I run them locally. Could you please help me with that!

One of the short test summary info is -

FAILED:
test_ivy/test_frontends/test_numpy/test_mathematical_functions/test_np_hyperbolic_functions.py::test_numpy_tanh[cpu-ivy.functional.backends.numpy-True-False-np_call-numpy]

Thanks :}

aryanxk02 avatar Aug 15 '22 19:08 aryanxk02

@aryanxk02 this is not the right place for discussion! Do join a discord server, people are there to help.

Darshan2104 avatar Aug 16 '22 07:08 Darshan2104

hey @aryanxk02 I am already working on sqrt function so can you pls skip this issue as it's already created here #2766 ?

yugaljain1999 avatar Aug 16 '22 18:08 yugaljain1999

  • [ ] #4226

JonaOmara avatar Sep 09 '22 07:09 JonaOmara

@ivy-seed fmin #4194

i want to continue working on this issue

salmamohsen6 avatar Sep 20 '22 13:09 salmamohsen6

@ivy-seed please review the pending pull request https://github.com/unifyai/ivy/pull/4831

samegavi avatar Sep 29 '22 09:09 samegavi

remainder #5910

Aniket2002 avatar Oct 19 '22 15:10 Aniket2002

  • [ ] #5549

karlschwarz avatar Nov 05 '22 02:11 karlschwarz

#16582

h-0-0 avatar Jun 12 '23 11:06 h-0-0

#17726

roshandhanasekaran avatar Jun 24 '23 20:06 roshandhanasekaran

  • [ ] #18166

mogwaitr avatar Jul 02 '23 10:07 mogwaitr

#19874

asimnecip avatar Jul 22 '23 13:07 asimnecip

fmin #20937

mohansharma077 avatar Jul 28 '23 06:07 mohansharma077

Add Mathematical functions to Numpy Frontend #1525

Ramzan-Ali12 avatar Jul 28 '23 19:07 Ramzan-Ali12

  • [ ] #19014_ #21278 This is numpy.round()

stalemate1 avatar Aug 04 '23 10:08 stalemate1

  • [x] #21321

joshiayush avatar Aug 05 '23 09:08 joshiayush

  • [ ] #22525

allaprakashsai avatar Aug 27 '23 12:08 allaprakashsai

  • [ ] #22726

allaprakashsai avatar Aug 29 '23 07:08 allaprakashsai

  • [ ] #22923

sineha17 avatar Sep 01 '23 17:09 sineha17

  • [ ] #23311

stalemate1 avatar Sep 09 '23 07:09 stalemate1

  • [ ] #22745

Abhayooo7 avatar Sep 09 '23 07:09 Abhayooo7

[]#23345

yatin3510 avatar Sep 09 '23 18:09 yatin3510

  • [ ] #23416

khawajaJunaid avatar Sep 11 '23 12:09 khawajaJunaid

  • [ ] #23468

steve-mir avatar Sep 12 '23 11:09 steve-mir

#23545

Sol1man avatar Sep 13 '23 17:09 Sol1man

  • [x] #23571

Anteemony avatar Sep 13 '23 23:09 Anteemony

  • [ ] #23606

juliusmarkwei avatar Sep 14 '23 15:09 juliusmarkwei

#23645

mintesin avatar Sep 15 '23 09:09 mintesin

  • [ ] #23545

Sol1man avatar Sep 15 '23 21:09 Sol1man