Skip to content

Commit

Permalink
Merge pull request #31 from lindsayad/fix-norm-derivative
Browse files Browse the repository at this point in the history
Fix norm derivative
  • Loading branch information
roystgnr committed Nov 27, 2018
2 parents e6a4d0d + 9026498 commit 104919b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numerics/include/metaphysicl/dualnumber.h
Expand Up @@ -389,7 +389,7 @@ DualNumber_std_unary(cosh, std::sinh(in.value()),)
DualNumber_std_unary(tanh, sech_in * sech_in, T sech_in = 1 / std::cosh(in.value()))
DualNumber_std_unary(abs, (in.value() > 0) - (in.value() < 0),) // std < and > return 0 or 1
DualNumber_std_unary(fabs, (in.value() > 0) - (in.value() < 0),) // std < and > return 0 or 1
DualNumber_std_unary(norm, (in.value() > 0) - (in.value() < 0),)
DualNumber_std_unary(norm, 2. * in.value(),)
DualNumber_std_unary(ceil, 0,)
DualNumber_std_unary(floor, 0,)

Expand Down

0 comments on commit 104919b

Please sign in to comment.