Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
DRTK
Commits
79d832ca
Commit
79d832ca
authored
Jul 25, 2025
by
fengzch-das
Browse files
fix: cannot be narrowed from 'double' to 'float'
parent
3c14f46c
Pipeline
#2865
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/include/cuda_math_helper.h
src/include/cuda_math_helper.h
+3
-3
No files found.
src/include/cuda_math_helper.h
View file @
79d832ca
...
...
@@ -917,13 +917,13 @@ HD_FUNC double rnorm4d(double a, double b, double c, double d) {
return {a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x}; \
} \
HD_FUNC T2 sqrt(T2 a) { \
return {sqrt(a.x), sqrt(a.y)}; \
return {sqrt
f
(a.x), sqrt
f
(a.y)}; \
} \
HD_FUNC T3 sqrt(T3 a) { \
return {sqrt(a.x), sqrt(a.y), sqrt(a.z)}; \
return {sqrt
f
(a.x), sqrt
f
(a.y), sqrt
f
(a.z)}; \
} \
HD_FUNC T4 sqrt(T4 a) { \
return {sqrt(a.x), sqrt(a.y), sqrt(a.z), sqrt(a.w)}; \
return {sqrt
f
(a.x), sqrt
f
(a.y), sqrt
f
(a.z), sqrt
f
(a.w)}; \
} \
HD_FUNC T norm(T2 a) { \
return sqrt(dot(a, a)); \
...
...
Write
Preview
Markdown
is supported
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