SundancePoint.cpp
Go to the documentation of this file.
00001 #include "SundancePoint.hpp"
00002 
00003 using namespace Teuchos;
00004 using namespace Sundance;
00005 
00006 
00007 
00008 void Point::boundsCheck(int i) const
00009 {
00010   TEUCHOS_TEST_FOR_EXCEPTION(i < 0 || i>=dim_, std::runtime_error,
00011                      "Point::boundsCheck() dim:" << dim_ << " , i:" << i);
00012 }
00013 
00014 namespace std
00015 {
00016   ostream& operator<<(std::ostream& os, const Point& point)
00017   {
00018     os << "(";
00019     os.precision(12);
00020     for (int i=0; i<point.dim(); i++)
00021       {
00022         
00023         os << point[i];
00024         if (i<(point.dim()-1)) os << ", ";
00025       }
00026     os << ")";
00027     return os;
00028   }
00029 }
00030 

Site Contact