Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
7e28e400
Commit
7e28e400
authored
14 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
added == operator to fmatrix (fvector also has one)
[[Imported from SVN: r6065]]
parent
accbddbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/fmatrix.hh
+26
-0
26 additions, 0 deletions
dune/common/fmatrix.hh
with
26 additions
and
0 deletions
dune/common/fmatrix.hh
+
26
−
0
View file @
7e28e400
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment