Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Praetorius, Simon
dune-gfe
Commits
e0ee3aa0
Commit
e0ee3aa0
authored
12 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add range checks
[[Imported from SVN: r8862]]
parent
d91d2cf2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/tensorssd.hh
+4
-0
4 additions, 0 deletions
dune/gfe/tensorssd.hh
with
4 additions
and
0 deletions
dune/gfe/tensorssd.hh
+
4
−
0
View file @
e0ee3aa0
...
...
@@ -40,17 +40,21 @@ public:
default:
assert
(
false
);
}
// Make compiler happy even if NDEBUG is set
return
0
;
}
/** \brief Direct access to individual entries */
T
&
operator
()(
size_t
i
,
size_t
j
,
size_t
k
)
{
assert
(
i
<
N1
&&
j
<
N2
&&
k
<
N3_
);
return
data_
[
i
][
j
][
k
];
}
/** \brief Direct const access to individual entries */
const
T
&
operator
()(
size_t
i
,
size_t
j
,
size_t
k
)
const
{
assert
(
i
<
N1
&&
j
<
N2
&&
k
<
N3_
);
return
data_
[
i
][
j
][
k
];
}
...
...
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