How to speed up the following code using numba?
问题 I am doing a molecular dynamics simulation. It consists of numerical integration, many for loops, manipulating large NumPy arrays. I have tried to use NumPy function and arrays wherever possible. But the code is still too slow. I thought of using numba jit as a speedup. But it always throws an error message. Here is the code. # -*- coding: utf-8 -*- """ Created on Sat Mar 28 12:10:42 2020 @author: Sandipan """ import numpy as np import matplotlib.pyplot as plt from numba import jit import os