Skip to content
Snippets Groups Projects
Commit 7e28e400 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

added == operator to fmatrix (fvector also has one)

[[Imported from SVN: r6065]]
parent accbddbd
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,21 @@ namespace Dune
return *this;
}
//! Binary matrix comparison
bool operator== (const FieldMatrix& y) const
{
for (size_type i=0; i<rows; i++)
if (p[i]!=y.p[i])
return false;
return true;
}
//! Binary vector incomparison
bool operator!= (const FieldMatrix& y) const
{
return !operator==(y);
}
//===== linear maps
//! y = A x
......@@ -1090,6 +1105,17 @@ namespace Dune
return *this;
}
//! Binary matrix comparison
bool operator== (const FieldMatrix& y) const
{
return a[0] == y.a[0];
}
//! Binary vector incomparison
bool operator!= (const FieldMatrix& y) const
{
return !operator==(y);
}
//===== linear maps
//! y = A x
......
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