Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
agnumpde
dune-solvers
Commits
9778fb8c
Commit
9778fb8c
authored
12 years ago
by
Uli Sack
Committed by
usack
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
* export field_type
* make method mv const * add method usmv [[Imported from SVN: r6465]]
parent
56ab9ea0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/solvers/operators/sumoperator.hh
+11
-1
11 additions, 1 deletion
dune/solvers/operators/sumoperator.hh
with
11 additions
and
1 deletion
dune/solvers/operators/sumoperator.hh
+
11
−
1
View file @
9778fb8c
...
...
@@ -18,6 +18,8 @@ class SumOperator
//! export the summand type
typedef
LowRankMatrix
LowRankMatrixType
;
typedef
typename
SparseMatrixType
::
field_type
field_type
;
//! default constructor - allocates memory for summand operators internally
SumOperator
()
:
summands_allocated_internally_
(
true
)
...
...
@@ -60,12 +62,20 @@ class SumOperator
//! b = (A+M)x
template
<
class
LVectorType
,
class
RVectorType
>
void
mv
(
const
LVectorType
&
x
,
RVectorType
&
b
)
void
mv
(
const
LVectorType
&
x
,
RVectorType
&
b
)
const
{
sparse_matrix_
->
mv
(
x
,
b
);
lowrank_matrix_
->
umv
(
x
,
b
);
}
//! b += a*(A+M)x
template
<
class
LVectorType
,
class
RVectorType
>
void
usmv
(
const
field_type
a
,
const
LVectorType
&
x
,
RVectorType
&
b
)
const
{
sparse_matrix_
->
usmv
(
a
,
x
,
b
);
lowrank_matrix_
->
usmv
(
a
,
x
,
b
);
}
//! return the number of rows
size_t
N
()
const
{
...
...
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