Python 有没有一种方法可以并行运行以ndarray为参数的函数?

Python 有没有一种方法可以并行运行以ndarray为参数的函数?,python,parallel-processing,multiprocessing,pool,starmap,Python,Parallel Processing,Multiprocessing,Pool,Starmap,我有一个功能 def noflux(j,i,cells,rfu,lfu,ufu,dfu): 这将numpy数组作为输入,我希望使用多处理包并行运行此函数两次,即 noflux(j,i,cells,rfu,lfu,ufu,dfu): noflux(j,i,cells,rfh,lfh,ufh,dfh): 此函数不返回任何内容,只对参数进行更改 有办法做到这一点吗

我有一个功能

def noflux(j,i,cells,rfu,lfu,ufu,dfu):

这将numpy数组作为输入,我希望使用多处理包并行运行此函数两次,即

noflux(j,i,cells,rfu,lfu,ufu,dfu):
noflux(j,i,cells,rfh,lfh,ufh,dfh):

此函数不返回任何内容,只对参数进行更改

有办法做到这一点吗