Skip to content
Snippets Groups Projects
Commit e16d38ac authored by Oliver Sander's avatar Oliver Sander
Browse files

added operator<< for BlockVectors

[[Imported from SVN: r1079]]
parent 81cf6b11
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ namespace Dune {
//===== assignment from scalar
//! Assignment from a scalar
block_vector_unmanaged& operator= (const field_type& k)
{
for (int i=0; i<this->n; i++)
......@@ -353,6 +354,15 @@ namespace Dune {
}
};
//! Send BlockVector to an output stream
template<class K, class A>
std::ostream& operator<< (std::ostream& s, const BlockVector<K, A>& v)
{
for (int i=0; i<v.size(); i++)
s << v[i] << std::endl;
return s;
}
/** BlockVectorWindow adds window manipulation functions
to the block_vector_unmanaged template.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment