is_naninf.hpp File Reference
Include dependency graph for is_naninf.hpp:

Go to the source code of this file.

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::data
 
Functions to load and save matrices and models.
 

Functions

template
<
typename
T
>
bool IsNaNInf (T &val, const std::string &token)
 See if the token is a NaN or an Inf, and if so, set the value accordingly and return a boolean representing whether or not it is. More...

 

Detailed Description

Author
Ryan Curtin

This is an adapted version of Conrad Sanderson's implementation of arma::diskio::convert_naninf() from Armadillo. It is here so as to avoid using Armadillo internal functionality.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file is_naninf.hpp.