Modified gradient for gpuArray's

Slightly modified the gradient function of MATLAB that is usable for gpuArray.

You are now following this Submission

It gives my 2-5x speed up on gradient calculation of very large arrays (e.g. 1024*1024*256 arrays)

Cite As

boyexex (2026). Modified gradient for gpuArray's (https://www.mathworks.com/matlabcentral/fileexchange/39042-modified-gradient-for-gpuarray-s), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0