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: function.h:53
Definition: signum_function.h:28
namespace MBSim
Definition: bilateral_constraint.cc:30
double sign(double x)
Compute the sign of x.
Definition: utils.cc:30