gpuArray with besselj for non-integral order values

I'm trying to use gpuArray with the besselj function. However, it doesn't work with non-integral values. I get the following error: 'Error using gpuArray/besselj The NU input (first argument) must be a positive integral value.'
The requirement for the non-gpu besselj is that the order must be real but doesn't need to be an integer. Anybody knows why this is not implemented with the gpuArray version?
Thanks.

댓글 수: 1

sbstn
sbstn 2015년 11월 23일
Forgot to mention that I'm trying to run something like this: besselj(1.5,ones(1,3,'gpuArray')).

댓글을 달려면 로그인하십시오.

 채택된 답변

Joss Knight
Joss Knight 2015년 11월 24일

0 개 추천

This is a limitation of the NVIDIA libraries MATLAB uses to compute the bessel functions.

댓글 수: 2

sbstn
sbstn 2015년 11월 30일
I was specifically trying to evaluate spherical bessel functions using gpuArrays. I haven't been able to find a fast MATLAB implementation for these functions. Since this is the slowest part of the computation in my application then I will have to implement a CUDA version of these. Thanks for your answer.
I took your post as an enhancement request so we'll see whether that eventually filters through to an implementation. You should put in a request to NVIDIA to improve their math libraries too!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2015년 11월 23일

댓글:

2015년 12월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by