Example #1
0
 def testFastclip(self):
     print "testing fastclip"
     A = arange(0, 10, 1, Float)
     B = clip(A, 3, 5)
     NE.fastclip(A, 3, 5)
     assert alltrue(A == B), "fastclip and clip gave different answers"
Example #2
0
 def testFastclip(self):
     print "testing fastclip"
     A = arange(0,10,1,Float)
     B = clip(A, 3, 5)
     NE.fastclip(A, 3, 5)
     assert alltrue(A == B), "fastclip and clip gave different answers"