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
f9f7c745
Commit
f9f7c745
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
sacrifice a few ASSERTs
parent
352f8979
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!886
Powerfield now inherits from IField; new c'tors
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Device/Data/Powerfield.h
+0
-4
0 additions, 4 deletions
Device/Data/Powerfield.h
with
0 additions
and
4 deletions
Device/Data/Powerfield.h
+
0
−
4
View file @
f9f7c745
...
@@ -396,7 +396,6 @@ typename Powerfield<T>::const_iterator Powerfield<T>::begin() const
...
@@ -396,7 +396,6 @@ typename Powerfield<T>::const_iterator Powerfield<T>::begin() const
template
<
class
T
>
template
<
class
T
>
std
::
vector
<
int
>
Powerfield
<
T
>::
getAxesBinIndices
(
size_t
global_index
)
const
std
::
vector
<
int
>
Powerfield
<
T
>::
getAxesBinIndices
(
size_t
global_index
)
const
{
{
ASSERT
(
m_ll_data
);
size_t
remainder
=
global_index
;
size_t
remainder
=
global_index
;
std
::
vector
<
int
>
result
;
std
::
vector
<
int
>
result
;
result
.
resize
(
rank
());
result
.
resize
(
rank
());
...
@@ -411,7 +410,6 @@ std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const
...
@@ -411,7 +410,6 @@ std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const
template
<
class
T
>
template
<
class
T
>
size_t
Powerfield
<
T
>::
getAxisBinIndex
(
size_t
global_index
,
size_t
i_selected_axis
)
const
size_t
Powerfield
<
T
>::
getAxisBinIndex
(
size_t
global_index
,
size_t
i_selected_axis
)
const
{
{
ASSERT
(
m_ll_data
);
size_t
remainder
(
global_index
);
size_t
remainder
(
global_index
);
for
(
size_t
i
=
0
;
i
<
rank
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
rank
();
++
i
)
{
size_t
i_axis
=
rank
()
-
1
-
i
;
size_t
i_axis
=
rank
()
-
1
-
i
;
...
@@ -426,7 +424,6 @@ size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axi
...
@@ -426,7 +424,6 @@ size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axi
template
<
class
T
>
template
<
class
T
>
size_t
Powerfield
<
T
>::
toGlobalIndex
(
const
std
::
vector
<
unsigned
>&
axes_indices
)
const
size_t
Powerfield
<
T
>::
toGlobalIndex
(
const
std
::
vector
<
unsigned
>&
axes_indices
)
const
{
{
ASSERT
(
m_ll_data
);
ASSERT
(
axes_indices
.
size
()
==
rank
());
ASSERT
(
axes_indices
.
size
()
==
rank
());
size_t
result
=
0
;
size_t
result
=
0
;
size_t
step_size
=
1
;
size_t
step_size
=
1
;
...
@@ -441,7 +438,6 @@ size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) c
...
@@ -441,7 +438,6 @@ size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) c
template
<
class
T
>
template
<
class
T
>
size_t
Powerfield
<
T
>::
findGlobalIndex
(
const
std
::
vector
<
double
>&
coordinates
)
const
size_t
Powerfield
<
T
>::
findGlobalIndex
(
const
std
::
vector
<
double
>&
coordinates
)
const
{
{
ASSERT
(
m_ll_data
);
ASSERT
(
coordinates
.
size
()
==
rank
());
ASSERT
(
coordinates
.
size
()
==
rank
());
std
::
vector
<
unsigned
>
axes_indexes
;
std
::
vector
<
unsigned
>
axes_indexes
;
axes_indexes
.
resize
(
rank
());
axes_indexes
.
resize
(
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