Skip to content
Snippets Groups Projects
Commit 43a7b188 authored by Christian Engwer's avatar Christian Engwer
Browse files

operator != and ==

[[Imported from SVN: r769]]
parent 86885bd3
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,19 @@ namespace Dune {
return *this;
}
//! operator ==
bool operator== (const Vec<dim,T> & b) const
{
for (int i=0; i<dim; i++) if (this->a[i] != b.a[i]) return false;
return true;
}
//! operator !=
bool operator!= (const Vec<dim,T> & b) const
{
return ! operator== (b);
}
//! 1 norm
T norm1 () const
{
......
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