Numba on nested Numpy arrays
问题 Setup I have the following two implementations of a matrix-calculation: The first implementation uses a matrix of shape (n, m) and the calculation is repeated in a for-loop for repetition -times: import numpy as np from numba import jit @jit def foo(): for i in range(1, n): for j in range(1, m): _deleteA = ( matrix[i, j] + #some constants added here ) _deleteB = ( matrix[i, j-1] + #some constants added here ) matrix[i, j] = min(_deleteA, _deleteB) return matrix repetition = 3 for x in range