Skip to content

Commit

Permalink
alain_counterexample: work
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Feb 13, 2016
1 parent 70b8db9 commit bc19c48
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
import numpy_force as numpy

def mshare(T,S,R):
A = np.empty(1)

#Manual broadcast of 'A' to a vector that match 'T'
A = as_strided(A, shape=T.shape, strides=(0,))
A.strides = (0,)
A[:] = 42

A = np.ones_like(T)
C = A + 43
E = C + T + np.gather(S,R) + A
D = C[::-1] + np.gather(S,R) + T
Expand Down

0 comments on commit bc19c48

Please sign in to comment.