Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ throw_nan()

template<typename NameStr , typename ParamStr , typename Param >
void stan::math::internal::throw_nan ( NameStr &&  name_str,
ParamStr &&  param_str,
Param &&  param 
)
inline

Throws an error if the parameter contains NaN or Inf values.

Template Parameters
NameStrType of the name string, e.g. std::string or char*.
ParamStrType of the parameter string, e.g. std::string or char*.
ParamType of the parameter such as a vector, matrix, or scalar.
Parameters
name_strName of the function or context where the error occurred.
param_strName of the parameter that contains NaN or Inf values.
paramThe parameter to check for NaN or Inf values.

Definition at line 397 of file laplace_marginal_density.hpp.