/[escript]/trunk/escriptcore/test/python/test_util_unary_new.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/test_util_unary_new.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6457 by jfenwick, Tue Jan 10 02:05:39 2017 UTC revision 6458 by jfenwick, Tue Jan 10 03:04:13 2017 UTC
# Line 256  class Test_util_unary_new(Test_util_valu Line 256  class Test_util_unary_new(Test_util_valu
256          opname="tanh"          opname="tanh"
257          update1="numpy.tanh(r2)"    # The updates are a problem here because this is not a reduction          update1="numpy.tanh(r2)"    # The updates are a problem here because this is not a reduction
258          update2=None          update2=None
259          self.generate_operation_test_batch(supportcplx, opstring, misccheck, oraclecheck, opname, update1, update2, multisteptag=False)                  self.generate_operation_test_batch(supportcplx, opstring, misccheck, oraclecheck, opname, update1, update2, multisteptag=False)
260       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
261       def test_transpose_combined(self):
262            supportcplx=True
263            opstring="transpose(a)"
264            misccheck="isinstance(res,type(a))"
265            oraclecheck="numpy.transpose(ref, axes=list(range(len(ref.shape)//2,len(ref.shape)))+list(range(0,len(ref.shape)//2)))"
266            opname="tranpose"
267            update1="numpy.transpose(r2, axes=list(range(len(r2.shape)//2,len(r2.shape)))+list(range(0,len(r2.shape)//2)))"    # The updates are a problem here because this is not a reduction
268            update2=None
269            self.generate_operation_test_batch(supportcplx, opstring, misccheck, oraclecheck, opname, update1, update2, multisteptag=False)  
270            opname="transpose-offset-1"
271            opstring="transpose(a,axis_offset=1)"        
272            oraclecheck="numpy.transpose(ref, axes=list(range(1,len(ref.shape)))+list(range(0,1)))"
273            update1="numpy.transpose(r2, axes=list(range(1,len(r2.shape)))+list(range(0,1)))"    # The updates are a problem here because this is not a reduction
274            self.generate_operation_test_batch(supportcplx, opstring, misccheck, oraclecheck, opname, update1, update2, multisteptag=False, data_only=True)        
275     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
276     def test_length_combined(self):     def test_length_combined(self):
277          supportcplx=True          supportcplx=True

Legend:
Removed from v.6457  
changed lines
  Added in v.6458

  ViewVC Help
Powered by ViewVC 1.1.26