Line data Source code
1 : #pragma once 2 : 3 : #include "functions/Bessel.hpp" 4 : #include "Bessel.h" 5 : 6 : #include <thrust/transform.h> 7 : 8 : namespace elsa 9 : { 10 : /// @brief Compute the log of modified Bessel function of the first kind 11 : /// of order zero for each element of the input range 12 : /// @ingroup transforms 13 : template <class InputIter, class OutIter> 14 : void bessel_log_0(InputIter first, InputIter last, OutIter out) 15 4 : { 16 4 : thrust::transform(first, last, out, elsa::fn::bessel_log_0); 17 4 : } 18 : 19 : /// @brief Compute the modified Bessel function of the first kind 20 : /// of order one divided by that of order zero for each element of 21 : /// the input range 22 : /// @ingroup transforms 23 : template <class InputIter, class OutIter> 24 : void bessel_1_0(InputIter first, InputIter last, OutIter out) 25 8 : { 26 8 : thrust::transform(first, last, out, elsa::fn::bessel_1_0); 27 8 : } 28 : } // namespace elsa