Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:58:28

0001 #!/usr/bin/env python3
0002 
0003 #https://github.com/pydata/numexpr/wiki/Numexpr-Users-Guide
0004 from __future__ import print_function
0005 import numpy as np
0006 import numexpr as ne
0007 a = np.arange(10)
0008 b = np.arange(0, 20, 2)
0009 c = ne.evaluate("2*a+3*b")
0010 print(c)
0011