Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
eb70bc9f
Commit
eb70bc9f
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
merge statements
parent
1c72a4db
No related branches found
No related tags found
1 merge request
!928
Simplify Frame API; simplify DetectorMask API and internals; no longer use Powerfield<bool>
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Base/Axis/Frame.cpp
+1
-2
1 addition, 2 deletions
Base/Axis/Frame.cpp
with
1 addition
and
2 deletions
Base/Axis/Frame.cpp
+
1
−
2
View file @
eb70bc9f
...
...
@@ -42,8 +42,7 @@ Bin1D Frame::projectedBin(size_t i_flat, size_t k_axis) const
std
::
vector
<
int
>
Frame
::
allIndices
(
size_t
i_flat
)
const
{
size_t
remainder
=
i_flat
;
std
::
vector
<
int
>
result
;
result
.
resize
(
rank
());
std
::
vector
<
int
>
result
(
rank
());
for
(
size_t
k
=
0
;
k
<
rank
();
++
k
)
{
size_t
kk
=
rank
()
-
1
-
k
;
result
[
kk
]
=
(
int
)(
remainder
%
m_axes
[
kk
]
->
size
());
...
...
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