Borderbasix

has_sign.hpp
Go to the documentation of this file.
1 #ifndef ARITHM_PRINT_HPP
2 #define ARITHM_PRINT_HPP
3 
4 template <class X>
5 bool has_positive_sign(const X& x) {
6  return true;
7 }
8 
9 bool has_positive_sign(const int& x) {
10  return (x>0);
11 }
12 
13 bool has_positive_sign(const double& x) {
14  return (x>0);
15 }
16 
17 bool has_positive_sign(const long double& x) {
18  return (x>0);
19 }
20 
21 #endif
MSKaccmodee MSKint32t MSKsoltypee MSKstakeye MSKrealt * x
Definition: mosek.h:3209
bool has_positive_sign(const X &x)
Definition: has_sign.hpp:5
Home  |  Download & InstallContributions