Public Member Functions | List of all members
IsfiniteTester< Vector, 2U > Struct Template Reference

Public Member Functions

 IsfiniteTester ()
 

Detailed Description

template<typename Vector>
struct IsfiniteTester< Vector, 2U >

Definition at line 732 of file geo_vectors_utils_test.cc.

Constructor & Destructor Documentation

template<typename Vector >
IsfiniteTester< Vector, 2U >::IsfiniteTester ( )
inline

Definition at line 733 of file geo_vectors_utils_test.cc.

734  {
735  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0 }));
736  BOOST_TEST( geo::vect::isfinite(Vector{ 0.0, 2.0 }));
737  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 0.0 }));
738 
739  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0 }));
740  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan("") }));
741 
742  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan("") }));
743  }
bool isfinite(Vector const &v)
Returns whether all components of the vector are finite.

The documentation for this struct was generated from the following file: