Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Predict
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
Predict
Commits
9ec6cbd9
Commit
9ec6cbd9
authored
2 months ago
by
Wiebe van Breukelen
Browse files
Options
Downloads
Patches
Plain Diff
Swapped radec2lmn::operator() remainder lmn indexing
parent
9bb73a49
No related branches found
No related tags found
2 merge requests
!27
Fix radec2lmn indexing
,
!24
Fixed AVX2 support for radec2lmn.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/Directions.h
+4
-4
4 additions, 4 deletions
include/Directions.h
with
4 additions
and
4 deletions
include/Directions.h
+
4
−
4
View file @
9ec6cbd9
...
@@ -184,9 +184,9 @@ void radec2lmn::operator()(Arch, const Direction &reference, const C &ra,
...
@@ -184,9 +184,9 @@ void radec2lmn::operator()(Arch, const Direction &reference, const C &ra,
double
sin_dec
=
std
::
sin
(
dec
[
i
]);
double
sin_dec
=
std
::
sin
(
dec
[
i
]);
double
cos_dec
=
std
::
cos
(
dec
[
i
]);
double
cos_dec
=
std
::
cos
(
dec
[
i
]);
lmn
(
i
,
0
)
=
cos_dec
*
sin_delta_ra
;
lmn
(
0
,
i
)
=
cos_dec
*
sin_delta_ra
;
lmn
(
i
,
1
)
=
sin_dec
*
cos_dec0
-
cos_dec
*
sin_dec0
*
cos_delta_ra
;
lmn
(
1
,
i
)
=
sin_dec
*
cos_dec0
-
cos_dec
*
sin_dec0
*
cos_delta_ra
;
lmn
(
i
,
2
)
=
sin_dec
*
sin_dec0
+
cos_dec
*
cos_dec0
*
cos_delta_ra
;
lmn
(
2
,
i
)
=
sin_dec
*
sin_dec0
+
cos_dec
*
cos_dec0
*
cos_delta_ra
;
}
}
}
}
...
@@ -197,7 +197,7 @@ inline void Directions::radec2lmn<Directions::computation_strategy::MULTI_SIMD>(
...
@@ -197,7 +197,7 @@ inline void Directions::radec2lmn<Directions::computation_strategy::MULTI_SIMD>(
const
Direction
&
reference
,
xt
::
xtensor
<
double
,
2
>
&
lmn
)
{
const
Direction
&
reference
,
xt
::
xtensor
<
double
,
2
>
&
lmn
)
{
xt
::
xtensor
<
double
,
2
>
lmn_tmp
({
3
,
ra
.
size
()});
xt
::
xtensor
<
double
,
2
>
lmn_tmp
({
3
,
ra
.
size
()});
xsimd
::
dispatch
(
xsimd
::
radec2lmn
{})(
reference
,
ra
,
dec
,
lmn_tmp
,
xsimd
::
dispatch
(
xsimd
::
radec2lmn
{})(
reference
,
ra
,
dec
,
lmn_tmp
,
xsimd
::
aligned_mode
());
xsimd
::
un
aligned_mode
());
lmn
=
xt
::
transpose
(
lmn_tmp
);
lmn
=
xt
::
transpose
(
lmn_tmp
);
}
}
#endif
#endif
\ No newline at end of file
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