Latin Hypercube Samples (lhs)
1.0
R, C++, and Rcpp code to generate Latin hypercube samples
OACommonDefines.h
Go to the documentation of this file.
1
25
#ifndef OACOMMONDEFINES_H
26
#define OACOMMONDEFINES_H
27
28
#include <exception>
29
#include <string>
30
#include <vector>
31
#include <cstdio>
32
#include <cmath>
33
#include <cstdlib>
34
#include <algorithm>
35
#include <stdexcept>
36
#include <sstream>
37
#include <iostream>
38
#include <numeric>
39
40
#ifdef RCOMPILE
41
#include <Rcpp.h>
45
#define PRINT_OUTPUT Rcpp::Rcout
46
49
#define PRINT_WARNINGS false
50
#else
51
54
#define PRINT_OUTPUT std::cout
55
58
#define PRINT_WARNINGS true
59
#endif
60
64
#ifndef NDEBUG
65
#ifndef RANGE_DEBUG
66
#define RANGE_DEBUG
67
#endif
68
#endif
69
73
#define SUCCESS_CHECK 1
74
77
#define FAILURE_CHECK 0
78
81
#define UNCHECKED_RETURN 0
82
85
#define WARNING_CHECK 2
86
87
namespace
oacpp
{
93
inline
void
ostringstream_runtime_error
(
const
std::ostringstream & msg)
94
{
95
const
std::string smsg = msg.str();
96
throw
std::runtime_error(smsg.c_str());
97
}
98
}
99
369
#endif
/* OACOMMONDEFINES_H */
oacpp::ostringstream_runtime_error
void ostringstream_runtime_error(const std::ostringstream &msg)
Definition:
OACommonDefines.h:93
oacpp
Definition:
ak.h:39
src
OACommonDefines.h
Generated by
1.8.20