| DiSMEC++
    | 
| Functions | |
| long | check_positive (long v, const char *error_msg) | 
| Checks that vis positive and returnsv.  More... | |
| long anonymous_namespace{dense.cpp}::check_positive | ( | long | v, | 
| const char * | error_msg | ||
| ) | 
Checks that v is positive and returns v. 
This function can be used to verify arguments in the initializer list of the constructor.
| v | Number to check. | 
| error_msg | This message will be used in the construction of the std::invalid_argumentexception in case of error. | 
| std::invalid_argument | if v <= 0. |