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

Public Member Functions

 IsfiniteTester ()
 

Detailed Description

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

Definition at line 679 of file geo_vectors_utils_test.cc.

Constructor & Destructor Documentation

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

Definition at line 680 of file geo_vectors_utils_test.cc.

681  {
682  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 3.0, 4.0 }));
683  BOOST_TEST( geo::vect::isfinite(Vector{ 0.0, 2.0, 3.0, 4.0 }));
684  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 0.0, 3.0, 4.0 }));
685  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 0.0, 4.0 }));
686  BOOST_TEST( geo::vect::isfinite(Vector{ 1.0, 2.0, 3.0, 0.0 }));
687 
688  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, 3.0, 4.0 }));
689  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), 3.0, 4.0 }));
690  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, 2.0, std::nan(""), 4.0 }));
691  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, 2.0, 3.0, std::nan("") }));
692 
693  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), 3.0, 4.0 }));
694  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, std::nan(""), 4.0 }));
695  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, 3.0, std::nan("") }));
696  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), std::nan(""), 4.0 }));
697  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), 3.0, std::nan("") }));
698  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, 2.0, std::nan(""), std::nan("") }));
699 
700  BOOST_TEST(!geo::vect::isfinite(Vector{ 1.0, std::nan(""), std::nan(""), std::nan("") }));
701  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), 2.0, std::nan(""), std::nan("") }));
702  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), 3.0, std::nan("") }));
703  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), std::nan(""), 4.0 }));
704 
705  BOOST_TEST(!geo::vect::isfinite(Vector{ std::nan(""), std::nan(""), std::nan(""), std::nan("") }));
706  }
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: