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
4fd6b18a
Commit
4fd6b18a
authored
14 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
Jesus, check that the code compiles before commiting.
[[Imported from SVN: r6206]]
parent
92ea0264
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/densematrix.hh
+3
-3
3 additions, 3 deletions
dune/common/densematrix.hh
with
3 additions
and
3 deletions
dune/common/densematrix.hh
+
3
−
3
View file @
4fd6b18a
...
...
@@ -1079,16 +1079,16 @@ namespace Dune
//! calculates ret = matrix * x
template
<
typename
MAT
,
typename
V1
,
typename
V2
>
static
inline
void
multAssign
(
const
DenseMatrix
<
MAT
>
&
matrix
,
const
DenseVector
<
V
2
>
&
x
,
DenseVector
<
V2
>
&
ret
)
static
inline
void
multAssign
(
const
DenseMatrix
<
MAT
>
&
matrix
,
const
DenseVector
<
V
1
>
&
x
,
DenseVector
<
V2
>
&
ret
)
{
assert
(
x
.
size
()
==
matrix
.
rows
());
assert
(
ret
.
size
()
==
matrix
.
cols
());
typedef
typename
DenseMatrix
<
MAT
>::
size_type
size_type
;
for
(
size_type
i
=
0
;
i
<
matrix
.
size
();
++
i
)
for
(
size_type
i
=
0
;
i
<
matrix
.
rows
();
++
i
)
{
ret
[
i
]
=
0.0
;
for
(
size_type
j
=
0
;
j
<
matrix
[
i
].
size
();
++
j
)
for
(
size_type
j
=
0
;
j
<
matrix
.
cols
();
++
j
)
{
ret
[
i
]
+=
matrix
[
i
][
j
]
*
x
[
j
];
}
...
...
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