Functions
core/vnl/vnl_na.cxx File Reference
#include "vnl_na.h"

Go to the source code of this file.

Functions

double vnl_na (double)
 A particular qNaN to indicate not available.
float vnl_na (float)
 A particular qNaN to indicate not available.
bool vnl_na_isna (double x)
 True if parameter is specific NA qNaN.
bool vnl_na_isna (float x)
 True if parameter is specific NA qNaN.
double vnl_na_nan_to_na (double v)
 Replace NaNs with NA, leave other values alone.
float vnl_na_nan_to_na (float v)
 Replace NaNs with NA, leave other values alone.
template<class T >
void vnl_na_extract_type (vcl_istream &is, T &x)
 Read a floating point number or "NA" from a stream.
void vnl_na_extract (vcl_istream &is, double &x)
void vnl_na_extract (vcl_istream &is, float &x)
void vnl_na_insert (vcl_ostream &os, double x)
 Write a floating point number or "NA" to a stream.
void vnl_na_insert (vcl_ostream &os, float x)
 Write a floating point number or "NA" to a stream.

Detailed Description

Definition in file vnl_na.cxx.


Function Documentation

double vnl_na ( double  )

A particular qNaN to indicate not available.

qNaN to indicate value Not Available.

This returns the bit pattern 0x7ff00000000007a2, as used by Octave and R Don't assume that any VXL functions will treat the value as NA rather than NaN, unless explicitly documented.

Definition at line 18 of file vnl_na.cxx.

float vnl_na ( float  )

A particular qNaN to indicate not available.

qNaN to indicate value Not Available.

This returns the bit pattern 0x7f8007a2 Don't assume that any VXL functions will treat the value as NA rather than NaN, unless explicitly documented.

Definition at line 45 of file vnl_na.cxx.

void vnl_na_extract ( vcl_istream &  is,
double &  x 
)

Definition at line 117 of file vnl_na.cxx.

void vnl_na_extract ( vcl_istream &  is,
float &  x 
)

Definition at line 118 of file vnl_na.cxx.

template<class T >
void vnl_na_extract_type ( vcl_istream &  is,
T &  x 
) [inline]

Read a floating point number or "NA" from a stream.

Definition at line 91 of file vnl_na.cxx.

void vnl_na_insert ( vcl_ostream &  os,
double  x 
)

Write a floating point number or "NA" to a stream.

Definition at line 121 of file vnl_na.cxx.

void vnl_na_insert ( vcl_ostream &  os,
float  x 
)

Write a floating point number or "NA" to a stream.

Definition at line 130 of file vnl_na.cxx.

bool vnl_na_isna ( double  x)

True if parameter is specific NA qNaN.

Tests for bit pattern 0x7ff00000000007a2, as used by Octave and R

Definition at line 56 of file vnl_na.cxx.

bool vnl_na_isna ( float  x)

True if parameter is specific NA qNaN.

Tests for bit pattern 0x7F8007a2

Definition at line 69 of file vnl_na.cxx.

double vnl_na_nan_to_na ( double  v)

Replace NaNs with NA, leave other values alone.

Definition at line 78 of file vnl_na.cxx.

float vnl_na_nan_to_na ( float  v)

Replace NaNs with NA, leave other values alone.

Definition at line 84 of file vnl_na.cxx.