Example #1
0
 def f(x, a):
     return x.sum(constant(a))
Example #2
0
 def f(x):
     a = 1
     return x.sum(constant(a))
Example #3
0
 def f(x):
     a = np.int_(1)
     return x.sum(constant(a))
Example #4
0
 def f(x):
     return x.sum(constant(1))
Example #5
0
 def f(x):
     a = constant(1)
     return x.sum(a)
Example #6
0
 def f(x):
     for i in range(constant(x)):
         x = x + x
     return x
Example #7
0
 def f(x, r):
     for i in range(constant(r)):
         x = x + x
     return x
Example #8
0
 def f(x):
     a = 1
     return x.sum(constant(a))
Example #9
0
 def f(x):
     a = np.int_(1)
     return x.sum(constant(a))
Example #10
0
 def f(x):
     a = constant(1)
     return x.sum(a)
Example #11
0
 def f(x):
     return x.sum(constant(1))
Example #12
0
 def f(x, r):
     for i in range(constant(r)):
         x = x + x
     return x
Example #13
0
 def f(x):
     for i in range(constant(x)):
         x = x + x
     return x
Example #14
0
 def f(x, a):
     return x.sum(constant(a))