Skip to content

Commit

Permalink
Added tanh to casadi's interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Sep 28, 2021
1 parent a2e5428 commit 61bb431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/rbdl/CasadiMath/MX_Xd_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ inline MX_Xd_scalar tan(const MX_Xd_scalar& x){
inline MX_Xd_scalar atan2(const MX_Xd_scalar& x, const MX_Xd_scalar& y){
return casadi::MX::atan2(x,y);
}
inline MX_Xd_scalar tanh(const MX_Xd_scalar& x){
return casadi::MX::tanh(x);
}
inline bool isnan(const casadi::MX& x){
return !x.is_regular();
}
Expand Down

0 comments on commit 61bb431

Please sign in to comment.