20 #ifndef _SIGNUM_FUNCTION_H_ 21 #define _SIGNUM_FUNCTION_H_ 23 #include "mbsim/functions/function.h" 24 #include "mbsim/utils/utils.h" 30 template<
typename Ret,
typename Arg>
33 int getArgSize()
const override {
return 1; }
34 std::pair<int, int> getRetSize()
const override {
return std::make_pair(1,1); }
35 Ret operator()(
const Arg &x_)
override {
Definition: signum_function.h:28
double sign(double x)
Compute the sign of x.
Definition: utils.cc:30
Definition: contact_kinematics.h:32
namespace MBSim
Definition: eigenanalyzer.cc:47