Automatic Differentiation for gamma and psi functions
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Frantisek Gaspar
am 29 Nov. 2020
Kommentiert: Frantisek Gaspar
am 21 Feb. 2024
Is there a way to make automatic differentiation work with MATLAB functions gamma and psi? I can use equivalent custom functions but it is not quite as elegant.
I am using automatic differentiation equivalent to rosenbrock example in https://www.mathworks.com/help/deeplearning/ug/include-automatic-differentiation.html. When I try to use gamma function of psi function in the differentiated function the code ends with error that dlarray is not supported input for the gamma and/or psi function.
If the psi and gamma are just not supported can you recomend a place where I can angrily write that MATLAB is basicaly unsable and ask for this feature to be in the new update? :D
0 Kommentare
Akzeptierte Antwort
Aditya Patil
am 23 Dez. 2020
Currently, dlarray support is not available for gamma and psi. I have brought your request to the notice of concerned people. As a workaround, you can write a function that implements the aforementioned functions using other functions that have dlarray support.
In general, to request any new features, see How can I make a features request?
3 Kommentare
Torsten
am 18 Dez. 2023
I don't understand why automatic differentiation is needed although there are custom MATLAB functions for the derivatives of gamma and polygamma.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Special Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!