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

Public Member Functions

 IsfiniteTester ()
 

Detailed Description

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

Definition at line 710 of file geo_vectors_utils_test.cc.

Constructor & Destructor Documentation

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

Definition at line 711 of file geo_vectors_utils_test.cc.

712  {
713  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 3.0 }));
714  BOOST_TEST( geo::vect::isfinite(Vector{ 0.0, 2.0, 3.0 }));
715  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 0.0, 3.0 }));
716  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 0.0 }));
717  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 3.0 }));
718 
719  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, 3.0 }));
720  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), 3.0 }));
721  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, 2.0, std::nan("") }));
722 
723  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), std::nan("") }));
724  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, std::nan("") }));
725  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), 3.0 }));
726 
727  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), std::nan("") }));
728  }
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: