Exemple #1
0
 def test_calculated_index2(self):
     a = np.arange(10)
     nx = 0
     expr = 'a[1:5] + a[nx+1:5+nx]'
     size_check.check_expr(expr,locals())
 def test_calculated_index(self):
     a = np.arange(10)
     nx = 0
     expr = "a[5] + a[nx+3]"
     size_check.check_expr(expr, locals())