Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
ducc
Commits
7679649d
Commit
7679649d
authored
Aug 20, 2020
by
Martin Reinecke
Browse files
fix
parent
245a4fc2
Pipeline
#80841
passed with stages
in 15 minutes and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
python/healpix.cc
View file @
7679649d
...
...
@@ -53,13 +53,13 @@ template<size_t nd1, size_t nd2> shape_t repl_dim(const shape_t &s,
const
array
<
size_t
,
nd1
>
&
si
,
const
array
<
size_t
,
nd2
>
&
so
)
{
MR_assert
(
s
.
size
()
+
nd1
,
"too few input array dimensions"
);
if
constexpr
(
nd1
>
1
)
if
constexpr
(
nd1
>
0
)
for
(
size_t
i
=
0
;
i
<
nd1
;
++
i
)
MR_assert
(
si
[
i
]
==
s
[
s
.
size
()
-
nd1
+
i
],
"input dimension mismatch"
);
shape_t
snew
(
s
.
size
()
-
nd1
+
nd2
);
for
(
size_t
i
=
0
;
i
<
s
.
size
()
-
nd1
;
++
i
)
snew
[
i
]
=
s
[
i
];
if
constexpr
(
nd2
>
1
)
if
constexpr
(
nd2
>
0
)
for
(
size_t
i
=
0
;
i
<
nd2
;
++
i
)
snew
[
i
+
s
.
size
()
-
nd1
]
=
so
[
i
];
return
snew
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment