8 # include <vcl_msvc_warnings.h> 10 #include "vnl/vnl_export.h" 45 VNL_EXPORT
double vnl_na(
double dummy);
50 VNL_EXPORT
float vnl_na(
float dummy);
93 struct vnl_na_stream_t
96 vnl_na_stream_t(T& x): x_(x) {}
101 struct vnl_na_stream_const_t
104 vnl_na_stream_const_t(
const T& x): x_(x) {}
109 inline vnl_na_stream_t<T> vnl_na_stream(T& x)
111 return vnl_na_stream_t<T>(x);
115 template <
class T>
inline vnl_na_stream_const_t<T> vnl_na_stream(
const T& x)
117 return vnl_na_stream_const_t<T>(x);
121 template <
class T>
inline std::ostream&
operator <<(std::ostream &os,
const vnl_na_stream_t<T>& ns)
128 template <
class T>
inline std::ostream&
operator <<(std::ostream &os,
const vnl_na_stream_const_t<T>& ns)
135 template <
class T>
inline std::istream& operator >>(std::istream &is,
const vnl_na_stream_t<T>& ns)
void vnl_na_extract(std::istream &is, double &x)
void vnl_na_insert(std::ostream &os, double x)
Write a floating point number or "NA" to a stream.
std::ostream & operator<<(std::ostream &s, vnl_decnum const &r)
decimal output.
VNL_EXPORT bool vnl_na_isna(double)
True if parameter is specific NA qNaN.
VNL_EXPORT double vnl_na_nan_to_na(double v)
Replace NaNs with NA, leave other values alone.
VNL_EXPORT double vnl_na(double dummy)
qNaN to indicate value Not Available.