Draft: Do dot product using lambda functions
Compare changes
Files
2+ 4
− 1
@@ -53,6 +53,9 @@ function(get_library package_target tag)
@@ -61,7 +64,7 @@ function(get_library package_target tag)
Reduce dot product code using lambda functions. After the new commit. I think this solution is cleaner than the Kokkos subview method.
This solution uses three lambda functions so that within c++20 standard (required for lambda template), we can wrap any dot product to single line execution.
The advantage is
mdspan
, we don't have to use c++23.The disadvantage is
Another solution is to just reduce code using an inner for-loop. (This would have a slight overhead of computing the incrementing id.)
make format
for linting)
Draft:
You are not supposed to merge this request by yourself, the maintainers of libiconmath take care of this action!