X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fcml%2Fvector%2Fvector_print.h;fp=src%2Fcml%2Fvector%2Fvector_print.h;h=0000000000000000000000000000000000000000;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hp=cbb47642de29a105e9f9e1618c5326ace592b964;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724;p=chaz%2Fyoink diff --git a/src/cml/vector/vector_print.h b/src/cml/vector/vector_print.h deleted file mode 100644 index cbb4764..0000000 --- a/src/cml/vector/vector_print.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- C++ -*- ------------------------------------------------------------ - -Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/ - -The Configurable Math Library (CML) is distributed under the terms of the -Boost Software License, v1.0 (see cml/LICENSE for details). - - *-----------------------------------------------------------------------*/ -/** @file - * @brief - */ - -#ifndef vector_print_h -#define vector_print_h - -#include - -namespace cml { - -/** Output a vector to a std::ostream. */ -template inline std::ostream& -operator<<(std::ostream& os, const vector& v) -{ - os << "["; - for (size_t i = 0; i < v.size(); ++i) { - os << " " << v[i]; - } - os << " ]"; - return os; -} - -/** Output a vector expression to a std::ostream. */ -template< class XprT > inline std::ostream& -operator<<(std::ostream& os, const et::VectorXpr& v) -{ - os << "["; - for (size_t i = 0; i < v.size(); ++i) { - os << " " << v[i]; - } - os << " ]"; - return os; -} - -} // namespace cml - -#endif - -// ------------------------------------------------------------------------- -// vim:ft=cpp