Initial commit

This commit is contained in:
2026-04-03 00:22:39 -05:00
commit eca1e8c458
945 changed files with 218160 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
/* -*- 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 <iostream>
namespace cml {
/** Output a vector to a std::ostream. */
template<typename E, class AT > inline std::ostream&
operator<<(std::ostream& os, const vector<E,AT>& v)
{
os << v[0];
for (size_t i = 1; i < v.size(); ++i) {
os << " " << v[i];
}
return os;
}
/** Output a vector expression to a std::ostream. */
template< class XprT > inline std::ostream&
operator<<(std::ostream& os, const et::VectorXpr<XprT>& v)
{
os << v[0];
for (size_t i = 1; i < v.size(); ++i) {
os << " " << v[i];
}
return os;
}
} // namespace cml
#endif
// -------------------------------------------------------------------------
// vim:ft=cpp