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
46c18c91
Commit
46c18c91
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm LLData<>::convertCoordinate
parent
3115bcec
No related branches found
No related tags found
1 merge request
!41
various simplifications and clarifications around OutputData
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Device/Data/LLData.h
+0
-12
0 additions, 12 deletions
Device/Data/LLData.h
with
0 additions
and
12 deletions
Device/Data/LLData.h
+
0
−
12
View file @
46c18c91
...
...
@@ -62,7 +62,6 @@ private:
void
allocate
(
size_t
rank
,
const
int
*
dimensions
);
void
clear
();
bool
checkDimensions
(
size_t
rank
,
const
int
*
dimensions
)
const
;
size_t
convertCoordinate
(
int
*
coordinate
)
const
;
void
swapContents
(
LLData
<
T
>&
other
);
T
getZeroElement
()
const
;
...
...
@@ -228,17 +227,6 @@ template <class T> inline bool LLData<T>::checkDimensions(size_t rank, const int
[](
const
int
&
dim
)
->
bool
{
return
dim
>
0
;
});
}
template
<
class
T
>
inline
size_t
LLData
<
T
>::
convertCoordinate
(
int
*
coordinate
)
const
{
size_t
offset
=
1
;
size_t
result
=
0
;
for
(
size_t
i
=
m_rank
;
i
>
0
;
--
i
)
{
result
+=
offset
*
coordinate
[
i
-
1
];
offset
*=
m_dims
[
i
-
1
];
}
return
result
;
}
template
<
class
T
>
void
LLData
<
T
>::
swapContents
(
LLData
<
T
>&
other
)
{
std
::
swap
(
this
->
m_rank
,
other
.
m_rank
);
...
...
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