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

add operator==, !=, because FieldMatrix has them as well. Patch by Uli Sack

[[Imported from SVN: r1459]]
parent 7f7ff672
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,19 @@ namespace Dune {
return *this;
}
//===== comparison ops
//! comparison operator
bool operator==(const DiagonalMatrix& other) const
{
return diag_==other.diagonal();
}
//! incomparison operator
bool operator!=(const DiagonalMatrix& other) const
{
return diag_!=other.diagonal();
}
//===== linear maps
......
......@@ -234,6 +234,20 @@ namespace Dune {
return *this;
}
//===== comparison ops
//! comparison operator
bool operator==(const ScaledIdentityMatrix& other) const
{
return p_==other.diagonal();
}
//! incomparison operator
bool operator!=(const ScaledIdentityMatrix& other) const
{
return p_!=other.diagonal();
}
//===== 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