The Stan Forums
Breaking gradients with fabs and the "double monomial"
Modeling
specification
rok_cesnovar
July 20, 2021, 8:32am
2
fabs(x)
is not differentiable at x = 0
A bit more on that here:
Sqrt(square()) vs. fabs()
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Sqrt(square()) vs. fabs()
General
6
2762
May 2, 2019
L-BFGS-B comment
Algorithms
optimization
23
4606
October 13, 2016
Simple Example of an Improper Posterior Without Warnings from Stan
General
22
2874
December 7, 2019
Differentiating conditionals and while loops
Algorithms
13
4770
August 10, 2018
Making arbitrary C++ functions available to Stan
Modeling
14
2056
June 12, 2018