How to vectorize this five-point difference code to fast calculate derivatives of a matrix?

前端 未结 0 690
生来不讨喜
生来不讨喜 2021-01-19 06:00

I am trying to calculate the partial first derivatives with respect to each of the two dimensions in a 2D matrix, i.e dF/dx and dF/dy, using the five point method. I have ma

相关标签:
回答
  • 消灭零回复
提交回复
热议问题