/[escript]/trunk/escript/py_src/test_util_unary_no_tagged_data.py
ViewVC logotype

Diff of /trunk/escript/py_src/test_util_unary_no_tagged_data.py

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

revision 491 by gross, Tue Jan 17 23:54:38 2006 UTC revision 492 by gross, Fri Feb 3 02:07:24 2006 UTC
# Line 5593  class Test_util_unary_no_tagged_data(Tes Line 5593  class Test_util_unary_no_tagged_data(Tes
5593        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
5594        self.failUnlessEqual(res.getShape(),(3, 3),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 3),"wrong shape of result.")
5595        self.failUnless(Lsup(matrixmult(res,arg)-kronecker(3))<=self.RES_TOL,"wrong result")        self.failUnless(Lsup(matrixmult(res,arg)-kronecker(3))<=self.RES_TOL,"wrong result")
5596       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5597       def test_transpose_array_rank0_offset0(self):
5598          arg=numarray.array(-0.991585801448)
5599          res=transpose(arg,0)
5600          ref=numarray.array(-0.991585801448)
5601          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5602          self.failUnlessEqual(res.shape,(),"wrong shape of result.")
5603          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5604       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5605       def test_transpose_array_rank1_offset0(self):
5606          arg=numarray.array([-0.93789697591082799, -0.85164603706162878, -0.93876560479038851])
5607          res=transpose(arg,0)
5608          ref=numarray.array([-0.93789697591082799, -0.85164603706162878, -0.93876560479038851])
5609          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5610          self.failUnlessEqual(res.shape,(3,),"wrong shape of result.")
5611          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5612       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5613       def test_transpose_array_rank1_offset1(self):
5614          arg=numarray.array([0.57950937147989445, 0.61922458089073573, -0.86689205664903102])
5615          res=transpose(arg,1)
5616          ref=numarray.array([0.57950937147989445, 0.61922458089073573, -0.86689205664903102])
5617          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5618          self.failUnlessEqual(res.shape,(3,),"wrong shape of result.")
5619          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5620       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5621       def test_transpose_array_rank2_offset0(self):
5622          arg=numarray.array([[0.74554267093336457, -0.38983213164494734, -0.92162108007187671, -0.27814168115233451, 0.10686669551838812], [-0.79094977940587818, -0.36771179185975589, -0.53004651017715187, 0.6072392220613505, 0.37575091805538463], [0.69989105169549526, -0.4415467907807813, -0.36527282205210621, 0.34876929422929415, 0.19840166525571834], [0.57437881461884266, 0.0025299568086414315, -0.97959099879387979, 0.67950898726549047, 0.74830813263939988]])
5623          res=transpose(arg,0)
5624          ref=numarray.array([[0.74554267093336457, -0.38983213164494734, -0.92162108007187671, -0.27814168115233451, 0.10686669551838812], [-0.79094977940587818, -0.36771179185975589, -0.53004651017715187, 0.6072392220613505, 0.37575091805538463], [0.69989105169549526, -0.4415467907807813, -0.36527282205210621, 0.34876929422929415, 0.19840166525571834], [0.57437881461884266, 0.0025299568086414315, -0.97959099879387979, 0.67950898726549047, 0.74830813263939988]])
5625          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5626          self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")
5627          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5628       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5629       def test_transpose_array_rank2_offset1(self):
5630          arg=numarray.array([[-0.30474580504453863, 0.98563144702907657, 0.50224838837262076, 0.62731733982431925, 0.74993187664314243], [0.93457680986442626, 0.3601419236576926, 0.97798123267446213, 0.87881919384548279, -0.30000086024833261], [-0.34903366971777983, 0.85738257671029516, 0.052447427116289358, 0.49419334797884118, 0.044321898264149118], [0.57682727492265862, 0.27716252486272297, -0.44079399571716715, -0.39038714855728962, -0.82332203527846648]])
5631          res=transpose(arg,1)
5632          ref=numarray.array([[-0.30474580504453863, 0.93457680986442626, -0.34903366971777983, 0.57682727492265862], [0.98563144702907657, 0.3601419236576926, 0.85738257671029516, 0.27716252486272297], [0.50224838837262076, 0.97798123267446213, 0.052447427116289358, -0.44079399571716715], [0.62731733982431925, 0.87881919384548279, 0.49419334797884118, -0.39038714855728962], [0.74993187664314243, -0.30000086024833261, 0.044321898264149118, -0.82332203527846648]])
5633          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5634          self.failUnlessEqual(res.shape,(5, 4),"wrong shape of result.")
5635          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5636       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5637       def test_transpose_array_rank2_offset2(self):
5638          arg=numarray.array([[-0.58013368405730525, -0.92857980063928247, 0.70085030553713668, -0.25547806853804667, 0.011814665793625778], [0.38418489713323667, -0.06080369512380579, 0.55459171728680867, -0.11124317531496764, -0.9833749344955669], [0.61582314984946973, -0.53700585175331406, -0.6091067375473096, 0.65203419280273178, 0.45748564826212301], [0.43914360965543708, 0.6727820420440922, -0.35329412892227374, -0.25873365726002451, 0.55429680617726484]])
5639          res=transpose(arg,2)
5640          ref=numarray.array([[-0.58013368405730525, -0.92857980063928247, 0.70085030553713668, -0.25547806853804667, 0.011814665793625778], [0.38418489713323667, -0.06080369512380579, 0.55459171728680867, -0.11124317531496764, -0.9833749344955669], [0.61582314984946973, -0.53700585175331406, -0.6091067375473096, 0.65203419280273178, 0.45748564826212301], [0.43914360965543708, 0.6727820420440922, -0.35329412892227374, -0.25873365726002451, 0.55429680617726484]])
5641          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5642          self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")
5643          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5644       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5645       def test_transpose_array_rank3_offset0(self):
5646          arg=numarray.array([[[-0.96601243442328921, 0.041409518807083767], [-0.40352002819278376, 0.43537792312447721]], [[-0.94222823486544405, 0.021427776174599122], [0.78052016765589483, 0.50008305969740552]], [[0.89896642789673376, 0.41521291763962997], [0.24567573580506474, 0.38950507369775322]], [[0.85861796270240021, -0.51962633835954208], [-0.28880432723729177, -0.068216494118681803]], [[0.58798107312627623, 0.3478778666383906], [-0.88873273716635603, -0.3973973348469042]], [[-0.44865302574852262, 0.76024479470961959], [-0.72797111599142017, 0.26809687664724402]]])
5647          res=transpose(arg,0)
5648          ref=numarray.array([[[-0.96601243442328921, 0.041409518807083767], [-0.40352002819278376, 0.43537792312447721]], [[-0.94222823486544405, 0.021427776174599122], [0.78052016765589483, 0.50008305969740552]], [[0.89896642789673376, 0.41521291763962997], [0.24567573580506474, 0.38950507369775322]], [[0.85861796270240021, -0.51962633835954208], [-0.28880432723729177, -0.068216494118681803]], [[0.58798107312627623, 0.3478778666383906], [-0.88873273716635603, -0.3973973348469042]], [[-0.44865302574852262, 0.76024479470961959], [-0.72797111599142017, 0.26809687664724402]]])
5649          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5650          self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")
5651          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5652       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5653       def test_transpose_array_rank3_offset1(self):
5654          arg=numarray.array([[[0.77541791069444232, 0.42785423356049179], [0.9706108086220151, 0.78757657833760475]], [[-0.85760178880953264, 0.88496107441065952], [-0.077487704301219207, -0.50835639837845803]], [[-0.51425610306958758, -0.13483837297404455], [-0.66770127309063043, -0.91712705977673425]], [[-0.22471523206337851, 0.88763208073630118], [-0.49221739211225013, -0.15845213992338847]], [[-0.052710828590955439, -0.013047493530843779], [0.25391285203956082, -0.48944179761585471]], [[0.81593949355430095, -0.57124525609145915], [-0.28343172397719396, 0.35854694093602135]]])
5655          res=transpose(arg,1)
5656          ref=numarray.array([[[0.77541791069444232, -0.85760178880953264, -0.51425610306958758, -0.22471523206337851, -0.052710828590955439, 0.81593949355430095], [0.42785423356049179, 0.88496107441065952, -0.13483837297404455, 0.88763208073630118, -0.013047493530843779, -0.57124525609145915]], [[0.9706108086220151, -0.077487704301219207, -0.66770127309063043, -0.49221739211225013, 0.25391285203956082, -0.28343172397719396], [0.78757657833760475, -0.50835639837845803, -0.91712705977673425, -0.15845213992338847, -0.48944179761585471, 0.35854694093602135]]])
5657          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5658          self.failUnlessEqual(res.shape,(2, 2, 6),"wrong shape of result.")
5659          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5660       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5661       def test_transpose_array_rank3_offset2(self):
5662          arg=numarray.array([[[0.4107387718286355, -0.25823001180782534], [-0.66910501721662996, 0.58404606599030728]], [[0.7258659867497157, -0.46058389378317077], [0.80501499591912729, -0.87682813212476685]], [[-0.78898004497687491, 0.31447233731211255], [-0.021978427005372225, 0.61716588998675426]], [[-0.15671353391963794, 0.61658185514101738], [-0.75593475648502428, 0.41937823738331859]], [[0.84166997419402834, -0.038914108991471297], [-0.20779873870192778, -0.68028517664067056]], [[0.003205766919945896, -0.98945427368150418], [-0.83515699811314814, 0.22371237899798246]]])
5663          res=transpose(arg,2)
5664          ref=numarray.array([[[0.4107387718286355, -0.66910501721662996], [0.7258659867497157, 0.80501499591912729], [-0.78898004497687491, -0.021978427005372225], [-0.15671353391963794, -0.75593475648502428], [0.84166997419402834, -0.20779873870192778], [0.003205766919945896, -0.83515699811314814]], [[-0.25823001180782534, 0.58404606599030728], [-0.46058389378317077, -0.87682813212476685], [0.31447233731211255, 0.61716588998675426], [0.61658185514101738, 0.41937823738331859], [-0.038914108991471297, -0.68028517664067056], [-0.98945427368150418, 0.22371237899798246]]])
5665          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5666          self.failUnlessEqual(res.shape,(2, 6, 2),"wrong shape of result.")
5667          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5668       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5669       def test_transpose_array_rank3_offset3(self):
5670          arg=numarray.array([[[0.724139520401202, -0.98731569923730378], [-0.94190785758979145, -0.72651112429905895]], [[0.78511586821969548, -0.59012022491307348], [0.85081912760423806, -0.77317254849388117]], [[0.10689774347744163, -0.54386373082137096], [-0.33232831195778578, 0.91539449878464962]], [[-0.17540031661874367, 0.65159405121611069], [-0.90082790488206199, 0.53019611561978897]], [[0.3618076700728019, -0.68986502491378521], [0.78524986751378645, 0.095904671781718909]], [[-0.69770398784501775, -0.53269269560081178], [-0.0027961902797011273, -0.28489333292668384]]])
5671          res=transpose(arg,3)
5672          ref=numarray.array([[[0.724139520401202, -0.98731569923730378], [-0.94190785758979145, -0.72651112429905895]], [[0.78511586821969548, -0.59012022491307348], [0.85081912760423806, -0.77317254849388117]], [[0.10689774347744163, -0.54386373082137096], [-0.33232831195778578, 0.91539449878464962]], [[-0.17540031661874367, 0.65159405121611069], [-0.90082790488206199, 0.53019611561978897]], [[0.3618076700728019, -0.68986502491378521], [0.78524986751378645, 0.095904671781718909]], [[-0.69770398784501775, -0.53269269560081178], [-0.0027961902797011273, -0.28489333292668384]]])
5673          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5674          self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")
5675          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5676       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5677       def test_transpose_array_rank4_offset0(self):
5678          arg=numarray.array([[[[0.09812401540939053, 0.80946426430131302, -0.45899387640842004, 0.77896016252927036], [-0.54315960491973758, -0.077939066420437797, 0.59063317069743682, -0.33352393778162703], [0.60294370077540971, 0.107425370583355, 0.86297322995114545, 0.16121116397677393]], [[0.86682576315489324, 0.76888052067825274, -0.57922301748199367, 0.60905451241966935], [-0.11661748668576699, 0.66439251442446623, -0.52865134117803492, -0.72268552914190431], [-0.54639825544734832, -0.24531562968038023, 0.53793235406305606, -0.86636140894068392]]], [[[-0.076439807508062785, 0.83156169505435784, 0.91402573100389395, -0.88105081269257801], [-0.76067392638359776, 0.80156058418636489, 0.97688764285623986, -0.12705354757834697], [-0.4600110704654008, 0.29781109471673051, -0.29570804307232956, 0.28705975558477692]], [[-0.70193541376907409, -0.035159748359987031, -0.98005270012329482, 0.39680734748805913], [-0.37326444917914725, -0.67836076096735165, -0.86830151010735479, 0.77042437664500563], [-0.5924251866453718, 0.23723441799977163, 0.25103612608553294, -0.43090409496106696]]], [[[-0.43116385233731647, -0.46396933058788181, 0.24841810386905028, 0.42275908942297735], [0.26296489728983374, -0.43235942967927632, 0.29754617701030539, 0.33023689393070943], [0.26470180547096622, -0.58578568767761285, 0.37388080111033339, -0.35637523566591689]], [[0.15324863417100421, -0.65254701224707223, 0.9226325140442817, 0.69961693627233168], [0.18808763144977725, -0.15618854481254441, 0.86825003440822957, -0.045404058373784251], [-0.96788605246572423, 0.34068734851131643, -0.80896463232761828, 0.65232967047480317]]]])
5679          res=transpose(arg,0)
5680          ref=numarray.array([[[[0.09812401540939053, 0.80946426430131302, -0.45899387640842004, 0.77896016252927036], [-0.54315960491973758, -0.077939066420437797, 0.59063317069743682, -0.33352393778162703], [0.60294370077540971, 0.107425370583355, 0.86297322995114545, 0.16121116397677393]], [[0.86682576315489324, 0.76888052067825274, -0.57922301748199367, 0.60905451241966935], [-0.11661748668576699, 0.66439251442446623, -0.52865134117803492, -0.72268552914190431], [-0.54639825544734832, -0.24531562968038023, 0.53793235406305606, -0.86636140894068392]]], [[[-0.076439807508062785, 0.83156169505435784, 0.91402573100389395, -0.88105081269257801], [-0.76067392638359776, 0.80156058418636489, 0.97688764285623986, -0.12705354757834697], [-0.4600110704654008, 0.29781109471673051, -0.29570804307232956, 0.28705975558477692]], [[-0.70193541376907409, -0.035159748359987031, -0.98005270012329482, 0.39680734748805913], [-0.37326444917914725, -0.67836076096735165, -0.86830151010735479, 0.77042437664500563], [-0.5924251866453718, 0.23723441799977163, 0.25103612608553294, -0.43090409496106696]]], [[[-0.43116385233731647, -0.46396933058788181, 0.24841810386905028, 0.42275908942297735], [0.26296489728983374, -0.43235942967927632, 0.29754617701030539, 0.33023689393070943], [0.26470180547096622, -0.58578568767761285, 0.37388080111033339, -0.35637523566591689]], [[0.15324863417100421, -0.65254701224707223, 0.9226325140442817, 0.69961693627233168], [0.18808763144977725, -0.15618854481254441, 0.86825003440822957, -0.045404058373784251], [-0.96788605246572423, 0.34068734851131643, -0.80896463232761828, 0.65232967047480317]]]])
5681          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5682          self.failUnlessEqual(res.shape,(3, 2, 3, 4),"wrong shape of result.")
5683          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5684       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5685       def test_transpose_array_rank4_offset1(self):
5686          arg=numarray.array([[[[-0.92133388466922783, 0.063522028160519994, -0.82474705047534602, 0.56999162597624964], [-0.44188686027052659, 0.10753292290441774, -0.2251876099140091, 0.09159533230980732], [0.37288894674283513, -0.73634256752976635, 0.9380719796957071, -0.80355477112019469]], [[-0.36801477459215048, 0.15558303622587877, -0.57148780339340521, -0.06356910221579648], [-0.99751491991049979, -0.37422131681857018, -0.056562648630222867, 0.73798510625118352], [0.045097657973861116, 0.23631650272957283, -0.26465081430787452, -0.028776525260937769]]], [[[0.66329306904779006, -0.10111657511904149, 0.46292251671927986, -0.33246445082688902], [0.19658994498258653, -0.304313819796455, -0.89175885135836808, 0.076006728462423734], [0.066218462193249117, -0.88650135115481099, -0.79158588253120787, -0.062950910693769346]], [[-0.91033036042112703, 0.99963056319855248, -0.7066213988807124, 0.4611608893490291], [0.65426307637009917, -0.0022845454711004631, 0.93184410848727861, 0.1451735233727538], [0.76422534498859096, 0.56731429017432955, -0.57208797779009113, 0.44545862507733647]]], [[[-0.0060653117656519484, -0.76438826059601639, 0.30727193474375536, -0.83119171226362898], [0.98159496161119986, -0.28252902649741318, 0.24078298735252779, 0.5938057633461844], [0.36630989643702505, 0.82289575515265168, -0.67044348330078707, -0.68197628148255207]], [[0.23814043883864899, -0.57603447153257226, 0.7333127796436838, 0.14727979263146418], [-0.60404834234573301, 0.21594495697425575, -0.0028281444528621691, 0.3480910898118017], [-0.31464557699854945, -0.42876918982501344, 0.69457001887945435, -0.33144151954797074]]]])
5687          res=transpose(arg,1)
5688          ref=numarray.array([[[[-0.92133388466922783, 0.66329306904779006, -0.0060653117656519484], [0.063522028160519994, -0.10111657511904149, -0.76438826059601639], [-0.82474705047534602, 0.46292251671927986, 0.30727193474375536], [0.56999162597624964, -0.33246445082688902, -0.83119171226362898]], [[-0.44188686027052659, 0.19658994498258653, 0.98159496161119986], [0.10753292290441774, -0.304313819796455, -0.28252902649741318], [-0.2251876099140091, -0.89175885135836808, 0.24078298735252779], [0.09159533230980732, 0.076006728462423734, 0.5938057633461844]], [[0.37288894674283513, 0.066218462193249117, 0.36630989643702505], [-0.73634256752976635, -0.88650135115481099, 0.82289575515265168], [0.9380719796957071, -0.79158588253120787, -0.67044348330078707], [-0.80355477112019469, -0.062950910693769346, -0.68197628148255207]]], [[[-0.36801477459215048, -0.91033036042112703, 0.23814043883864899], [0.15558303622587877, 0.99963056319855248, -0.57603447153257226], [-0.57148780339340521, -0.7066213988807124, 0.7333127796436838], [-0.06356910221579648, 0.4611608893490291, 0.14727979263146418]], [[-0.99751491991049979, 0.65426307637009917, -0.60404834234573301], [-0.37422131681857018, -0.0022845454711004631, 0.21594495697425575], [-0.056562648630222867, 0.93184410848727861, -0.0028281444528621691], [0.73798510625118352, 0.1451735233727538, 0.3480910898118017]], [[0.045097657973861116, 0.76422534498859096, -0.31464557699854945], [0.23631650272957283, 0.56731429017432955, -0.42876918982501344], [-0.26465081430787452, -0.57208797779009113, 0.69457001887945435], [-0.028776525260937769, 0.44545862507733647, -0.33144151954797074]]]])
5689          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5690          self.failUnlessEqual(res.shape,(2, 3, 4, 3),"wrong shape of result.")
5691          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5692       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5693       def test_transpose_array_rank4_offset2(self):
5694          arg=numarray.array([[[[-0.39194818196315806, 0.0087374611715589356, 0.6980486110060975, -0.78097604030874423], [-0.31317301548159748, 0.14169322086274261, 0.62646323444670227, -0.16523556756442637], [0.41791292698281457, -0.64223581493619486, 0.13601195687550471, -0.6477931908651946]], [[0.89824128100380962, 0.015467897571568079, -0.60064074188271088, 0.90545042896487637], [-0.2506498730319755, 0.23563124098185217, 0.67787302547045547, -0.22636958760516146], [0.13225930154798626, 0.97644434105670408, -0.67563262960407644, -0.50154917524304565]]], [[[0.44989157343764963, -0.90278693571206192, 0.32346712346673789, 0.42946392962658453], [0.81727249231940435, -0.11481000915268225, -0.38398501019471731, -0.6782941659421664], [-0.41899749886411453, -0.2494099321196519, -0.8570831244085948, 0.92428527619298229]], [[0.16144141420919156, -0.479974665525988, -0.68731570908367212, 0.63756508344748397], [0.074741672352118593, 0.72138784560494429, 0.33389831859955788, 0.73846404206748173], [0.36241294139543556, -0.74099444339101961, 0.34513222260751109, -0.30186247163429814]]], [[[-0.36127309603550084, -0.97059029039592803, -0.96854855153498809, 0.94503791608000975], [0.38046938959204923, -0.32534063493005627, 0.17638917103468588, 0.5170553762404364], [-0.29768776334286629, 0.69376292750941038, -0.99216100053633061, -0.67755969419520001]], [[-0.20226504656709565, 0.23649297621850862, -0.099403356802471476, -0.11769460834269219], [-0.046778650986543324, 0.73705899628359273, -0.695785586035782, -0.43048297263482738], [0.24703382796554907, -0.16764511013834693, -0.7308358820066041, 0.52382084689504516]]]])
5695          res=transpose(arg,2)
5696          ref=numarray.array([[[[-0.39194818196315806, 0.89824128100380962], [0.44989157343764963, 0.16144141420919156], [-0.36127309603550084, -0.20226504656709565]], [[0.0087374611715589356, 0.015467897571568079], [-0.90278693571206192, -0.479974665525988], [-0.97059029039592803, 0.23649297621850862]], [[0.6980486110060975, -0.60064074188271088], [0.32346712346673789, -0.68731570908367212], [-0.96854855153498809, -0.099403356802471476]], [[-0.78097604030874423, 0.90545042896487637], [0.42946392962658453, 0.63756508344748397], [0.94503791608000975, -0.11769460834269219]]], [[[-0.31317301548159748, -0.2506498730319755], [0.81727249231940435, 0.074741672352118593], [0.38046938959204923, -0.046778650986543324]], [[0.14169322086274261, 0.23563124098185217], [-0.11481000915268225, 0.72138784560494429], [-0.32534063493005627, 0.73705899628359273]], [[0.62646323444670227, 0.67787302547045547], [-0.38398501019471731, 0.33389831859955788], [0.17638917103468588, -0.695785586035782]], [[-0.16523556756442637, -0.22636958760516146], [-0.6782941659421664, 0.73846404206748173], [0.5170553762404364, -0.43048297263482738]]], [[[0.41791292698281457, 0.13225930154798626], [-0.41899749886411453, 0.36241294139543556], [-0.29768776334286629, 0.24703382796554907]], [[-0.64223581493619486, 0.97644434105670408], [-0.2494099321196519, -0.74099444339101961], [0.69376292750941038, -0.16764511013834693]], [[0.13601195687550471, -0.67563262960407644], [-0.8570831244085948, 0.34513222260751109], [-0.99216100053633061, -0.7308358820066041]], [[-0.6477931908651946, -0.50154917524304565], [0.92428527619298229, -0.30186247163429814], [-0.67755969419520001, 0.52382084689504516]]]])
5697          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5698          self.failUnlessEqual(res.shape,(3, 4, 3, 2),"wrong shape of result.")
5699          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5700       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5701       def test_transpose_array_rank4_offset3(self):
5702          arg=numarray.array([[[[0.39480405877991176, -0.6768910859264321, 0.26381359372034741, -0.70674598775632269], [-0.78564162589903908, -0.85653346456752755, -0.79335314738965312, 0.7516839508332358], [-0.47092897778843468, -0.26377958464054219, 0.73673022445723402, 0.86476155458289194]], [[0.71687405334341303, -0.1546458488006206, -0.045568700762531611, 0.93326011821354093], [-0.66809209484168086, -0.17858407495041728, 0.36611199155284635, -0.52537725117058343], [-0.36873708974096053, 0.80507229929062762, -0.88340398047283042, 0.24300994862310987]]], [[[0.059294573390584748, 0.74078576759379811, 0.13930103670146909, -0.35845987219889985], [0.46935953702804389, -0.56886695762170492, -0.70994202543541873, -0.9140498486316595], [0.76602070949823897, 0.4491596052404605, 0.45390492897673429, 0.41919369500824466]], [[0.40215466505209307, 0.032551497530743267, -0.78204565023687156, -0.86230004009407302], [-0.67504381173709516, -0.17934625684306016, 0.78685133443957755, 0.1845593069537641], [0.81250654404527989, -0.27686485385000137, 0.57358698046907719, -0.54475235992207183]]], [[[-0.87787606164769105, -0.39280604930273344, 0.016982421799579317, -0.26908764110213612], [0.25487328595539327, 0.77690677151094367, -0.74002559444662253, -0.80324245458401067], [-0.62797579793917868, 0.46887176761116645, -0.34421953685472362, 0.69446193514808341]], [[0.45322690217593453, -0.021648249468393166, 0.87810965645186467, 0.77212202086944126], [-0.81171139951349636, -0.6259263478058712, 0.123349154019325, 0.99346788281053011], [-0.32500306399852441, -0.70237364807998026, -0.30382784084127978, -0.26382321660062602]]]])
5703          res=transpose(arg,3)
5704          ref=numarray.array([[[[0.39480405877991176, -0.78564162589903908, -0.47092897778843468], [0.71687405334341303, -0.66809209484168086, -0.36873708974096053]], [[0.059294573390584748, 0.46935953702804389, 0.76602070949823897], [0.40215466505209307, -0.67504381173709516, 0.81250654404527989]], [[-0.87787606164769105, 0.25487328595539327, -0.62797579793917868], [0.45322690217593453, -0.81171139951349636, -0.32500306399852441]]], [[[-0.6768910859264321, -0.85653346456752755, -0.26377958464054219], [-0.1546458488006206, -0.17858407495041728, 0.80507229929062762]], [[0.74078576759379811, -0.56886695762170492, 0.4491596052404605], [0.032551497530743267, -0.17934625684306016, -0.27686485385000137]], [[-0.39280604930273344, 0.77690677151094367, 0.46887176761116645], [-0.021648249468393166, -0.6259263478058712, -0.70237364807998026]]], [[[0.26381359372034741, -0.79335314738965312, 0.73673022445723402], [-0.045568700762531611, 0.36611199155284635, -0.88340398047283042]], [[0.13930103670146909, -0.70994202543541873, 0.45390492897673429], [-0.78204565023687156, 0.78685133443957755, 0.57358698046907719]], [[0.016982421799579317, -0.74002559444662253, -0.34421953685472362], [0.87810965645186467, 0.123349154019325, -0.30382784084127978]]], [[[-0.70674598775632269, 0.7516839508332358, 0.86476155458289194], [0.93326011821354093, -0.52537725117058343, 0.24300994862310987]], [[-0.35845987219889985, -0.9140498486316595, 0.41919369500824466], [-0.86230004009407302, 0.1845593069537641, -0.54475235992207183]], [[-0.26908764110213612, -0.80324245458401067, 0.69446193514808341], [0.77212202086944126, 0.99346788281053011, -0.26382321660062602]]]])
5705          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5706          self.failUnlessEqual(res.shape,(4, 3, 2, 3),"wrong shape of result.")
5707          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5708       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5709       def test_transpose_array_rank4_offset4(self):
5710          arg=numarray.array([[[[-0.9658926599408757, -0.23644944052085748, 0.64071824761020624, -0.56976474079226946], [0.67423324833611842, -0.99094554504056709, -0.34197552902169948, -0.85836966054000752], [-0.5708423398782716, 0.25325450758971568, 0.49863354070788368, 0.63557984329430695]], [[0.39004930932542425, 0.088907860315799336, -0.048998546516065389, 0.44247073369591461], [0.5479877348819493, -0.75931613693902644, 0.33819785095157595, 0.40519218936583123], [0.078364340146261702, 0.70711485529110996, -0.25869421030006912, -0.38625752652783385]]], [[[-0.85427665795211483, -0.087594882756076409, 0.055310164131721296, 0.070482940196875843], [0.65200754862401777, 0.023329496112006742, 0.91186115531098411, 0.30950292694703352], [-0.99715036654259537, -0.65102073222971746, -0.41402754083185078, -0.43847208832440199]], [[0.11959466833146148, 0.19562739720210454, -0.58535684918614228, 0.82001955188392861], [0.91767110054128187, 0.5431658034303195, 0.19948875136199584, -0.41918687469886984], [-0.79601244453208864, -0.25496246794653832, -0.57116715861978484, 0.95712178469931142]]], [[[0.41926169752472742, 0.22363966150509551, 0.56478152300402629, 0.12593821398682792], [-0.48080793636533947, 0.45626337991851673, -0.81292341487440289, -0.29167169777042101], [-0.20685957393518706, -0.81484780826749881, -0.63164067984126726, -0.97740565329217399]], [[0.95723196868689442, 0.20635682802978472, 0.16233572909065708, 0.85221363470099076], [-0.39282226126993858, -0.19918405809467465, -0.69684444586336047, 0.10975215759145174], [-0.88828535872416392, -0.52806164035912806, 0.80084768712330789, 0.71904960268426499]]]])
5711          res=transpose(arg,4)
5712          ref=numarray.array([[[[-0.9658926599408757, -0.23644944052085748, 0.64071824761020624, -0.56976474079226946], [0.67423324833611842, -0.99094554504056709, -0.34197552902169948, -0.85836966054000752], [-0.5708423398782716, 0.25325450758971568, 0.49863354070788368, 0.63557984329430695]], [[0.39004930932542425, 0.088907860315799336, -0.048998546516065389, 0.44247073369591461], [0.5479877348819493, -0.75931613693902644, 0.33819785095157595, 0.40519218936583123], [0.078364340146261702, 0.70711485529110996, -0.25869421030006912, -0.38625752652783385]]], [[[-0.85427665795211483, -0.087594882756076409, 0.055310164131721296, 0.070482940196875843], [0.65200754862401777, 0.023329496112006742, 0.91186115531098411, 0.30950292694703352], [-0.99715036654259537, -0.65102073222971746, -0.41402754083185078, -0.43847208832440199]], [[0.11959466833146148, 0.19562739720210454, -0.58535684918614228, 0.82001955188392861], [0.91767110054128187, 0.5431658034303195, 0.19948875136199584, -0.41918687469886984], [-0.79601244453208864, -0.25496246794653832, -0.57116715861978484, 0.95712178469931142]]], [[[0.41926169752472742, 0.22363966150509551, 0.56478152300402629, 0.12593821398682792], [-0.48080793636533947, 0.45626337991851673, -0.81292341487440289, -0.29167169777042101], [-0.20685957393518706, -0.81484780826749881, -0.63164067984126726, -0.97740565329217399]], [[0.95723196868689442, 0.20635682802978472, 0.16233572909065708, 0.85221363470099076], [-0.39282226126993858, -0.19918405809467465, -0.69684444586336047, 0.10975215759145174], [-0.88828535872416392, -0.52806164035912806, 0.80084768712330789, 0.71904960268426499]]]])
5713          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")
5714          self.failUnlessEqual(res.shape,(3, 2, 3, 4),"wrong shape of result.")
5715          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5716       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5717       def test_transpose_Symbol_rank0_offset0(self):
5718          arg=Symbol(shape=())
5719          res=transpose(arg,0)
5720          s=numarray.array(0.702109830578)
5721          sub=res.substitute({arg:s})
5722          ref=numarray.array(0.702109830578)
5723          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5724          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5725          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5726       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5727       def test_transpose_Symbol_rank1_offset0(self):
5728          arg=Symbol(shape=(3,))
5729          res=transpose(arg,0)
5730          s=numarray.array([0.80175002997618972, 0.33974683237530345, -0.90667311590340094])
5731          sub=res.substitute({arg:s})
5732          ref=numarray.array([0.80175002997618972, 0.33974683237530345, -0.90667311590340094])
5733          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5734          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
5735          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5736       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5737       def test_transpose_Symbol_rank1_offset1(self):
5738          arg=Symbol(shape=(3,))
5739          res=transpose(arg,1)
5740          s=numarray.array([-0.6888832458983043, 0.092146203004236815, 0.83844276648813998])
5741          sub=res.substitute({arg:s})
5742          ref=numarray.array([-0.6888832458983043, 0.092146203004236815, 0.83844276648813998])
5743          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5744          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
5745          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5746       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5747       def test_transpose_Symbol_rank2_offset0(self):
5748          arg=Symbol(shape=(4, 5))
5749          res=transpose(arg,0)
5750          s=numarray.array([[-0.85695249364437354, -0.21957818518746341, 0.69060242366767022, 0.45520777350762009, 0.90015629162949518], [0.07085570338374314, -0.77462893420237267, 0.9266563721673915, 0.93060655075431309, 0.7265587800501907], [0.64041420830301354, 0.88245271215121313, -0.55653732496185238, -0.3628291001667876, 0.54475202342689411], [-0.91874446432184942, 0.32765780993657412, 0.94288597434828225, 0.62409359976242484, -0.23407917735233341]])
5751          sub=res.substitute({arg:s})
5752          ref=numarray.array([[-0.85695249364437354, -0.21957818518746341, 0.69060242366767022, 0.45520777350762009, 0.90015629162949518], [0.07085570338374314, -0.77462893420237267, 0.9266563721673915, 0.93060655075431309, 0.7265587800501907], [0.64041420830301354, 0.88245271215121313, -0.55653732496185238, -0.3628291001667876, 0.54475202342689411], [-0.91874446432184942, 0.32765780993657412, 0.94288597434828225, 0.62409359976242484, -0.23407917735233341]])
5753          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5754          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5755          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5756       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5757       def test_transpose_Symbol_rank2_offset1(self):
5758          arg=Symbol(shape=(4, 5))
5759          res=transpose(arg,1)
5760          s=numarray.array([[-0.92936100446010705, 0.36351483791551265, 0.95562566420848372, -0.33801728675748444, 0.16778162290515941], [-0.26798973013566907, -0.060434641099009756, -0.20932725329866408, -0.4388730391011133, 0.045117290800432697], [-0.74947838016362955, -0.52817377987635927, 0.68853743203370366, -0.74360937161780161, 0.24113662434978833], [0.60720661370401419, 0.48358757628774196, -0.68536982925608725, -0.73280395453595371, -0.17373891810171016]])
5761          sub=res.substitute({arg:s})
5762          ref=numarray.array([[-0.92936100446010705, -0.26798973013566907, -0.74947838016362955, 0.60720661370401419], [0.36351483791551265, -0.060434641099009756, -0.52817377987635927, 0.48358757628774196], [0.95562566420848372, -0.20932725329866408, 0.68853743203370366, -0.68536982925608725], [-0.33801728675748444, -0.4388730391011133, -0.74360937161780161, -0.73280395453595371], [0.16778162290515941, 0.045117290800432697, 0.24113662434978833, -0.17373891810171016]])
5763          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5764          self.failUnlessEqual(res.getShape(),(5, 4),"wrong shape of result.")
5765          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5766       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5767       def test_transpose_Symbol_rank2_offset2(self):
5768          arg=Symbol(shape=(4, 5))
5769          res=transpose(arg,2)
5770          s=numarray.array([[0.59343490217709038, 0.47413066581368457, -0.9382373705844882, -0.12778328139910977, 0.45302193047462236], [0.053374478018759497, -0.55841028782880109, 0.60724259383161461, 0.1187730374584457, -0.95007108483772629], [0.75953800969278906, 0.14372072991754736, -0.19692895702456825, 0.86868261037212591, 0.51142654083948491], [-0.72911212219228227, 0.099924265868445383, -0.069434310847699576, -0.79445201008702804, 0.32035043318196688]])
5771          sub=res.substitute({arg:s})
5772          ref=numarray.array([[0.59343490217709038, 0.47413066581368457, -0.9382373705844882, -0.12778328139910977, 0.45302193047462236], [0.053374478018759497, -0.55841028782880109, 0.60724259383161461, 0.1187730374584457, -0.95007108483772629], [0.75953800969278906, 0.14372072991754736, -0.19692895702456825, 0.86868261037212591, 0.51142654083948491], [-0.72911212219228227, 0.099924265868445383, -0.069434310847699576, -0.79445201008702804, 0.32035043318196688]])
5773          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5774          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5775          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5776       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5777       def test_transpose_Symbol_rank3_offset0(self):
5778          arg=Symbol(shape=(6, 2, 2))
5779          res=transpose(arg,0)
5780          s=numarray.array([[[0.45703733401515612, -0.27476113035167748], [0.71419559051233628, -0.62752575490537854]], [[-0.01950866254358341, -0.6123315626521062], [0.99488365622819397, -0.64096535947920308]], [[0.44407245675381679, 0.96629752674787195], [0.79909880913317655, 0.40735279734406782]], [[0.76496940812471248, -0.88001234502773196], [-0.97873413410011501, 0.43670524883896289]], [[0.65622515272001913, 0.67869930547661039], [-0.11493022525066521, 0.69482892877144131]], [[-0.28281090573293244, -0.73767981044528042], [0.45315312055731893, 0.44904524980011296]]])
5781          sub=res.substitute({arg:s})
5782          ref=numarray.array([[[0.45703733401515612, -0.27476113035167748], [0.71419559051233628, -0.62752575490537854]], [[-0.01950866254358341, -0.6123315626521062], [0.99488365622819397, -0.64096535947920308]], [[0.44407245675381679, 0.96629752674787195], [0.79909880913317655, 0.40735279734406782]], [[0.76496940812471248, -0.88001234502773196], [-0.97873413410011501, 0.43670524883896289]], [[0.65622515272001913, 0.67869930547661039], [-0.11493022525066521, 0.69482892877144131]], [[-0.28281090573293244, -0.73767981044528042], [0.45315312055731893, 0.44904524980011296]]])
5783          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5784          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5785          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5786       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5787       def test_transpose_Symbol_rank3_offset1(self):
5788          arg=Symbol(shape=(6, 2, 2))
5789          res=transpose(arg,1)
5790          s=numarray.array([[[0.68551961112777104, 0.38181203882280323], [-0.24737544655903143, -0.71199721169305996]], [[-0.67010756499708046, 0.014915141038687851], [0.24741431202176511, -0.84334118828218663]], [[-0.64631310440809275, 0.5825185510152957], [-0.4566997302728133, -0.46503691165830263]], [[-0.14858998032114901, 0.11887539216428267], [0.22477021592327651, -0.66243880583194881]], [[0.70317431650541429, 0.39861796885340661], [-0.48632988031126589, -0.06457399953950449]], [[0.94585783621803188, -0.0052696673269923], [-0.53840949355980428, -0.64575571446161173]]])
5791          sub=res.substitute({arg:s})
5792          ref=numarray.array([[[0.68551961112777104, -0.67010756499708046, -0.64631310440809275, -0.14858998032114901, 0.70317431650541429, 0.94585783621803188], [0.38181203882280323, 0.014915141038687851, 0.5825185510152957, 0.11887539216428267, 0.39861796885340661, -0.0052696673269923]], [[-0.24737544655903143, 0.24741431202176511, -0.4566997302728133, 0.22477021592327651, -0.48632988031126589, -0.53840949355980428], [-0.71199721169305996, -0.84334118828218663, -0.46503691165830263, -0.66243880583194881, -0.06457399953950449, -0.64575571446161173]]])
5793          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5794          self.failUnlessEqual(res.getShape(),(2, 2, 6),"wrong shape of result.")
5795          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5796       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5797       def test_transpose_Symbol_rank3_offset2(self):
5798          arg=Symbol(shape=(6, 2, 2))
5799          res=transpose(arg,2)
5800          s=numarray.array([[[-0.83851414172649053, -0.9345472027993611], [-0.050051987461098291, 0.051207000708158201]], [[-0.45917464327982049, -0.72383868377493887], [-0.89306834101549981, 0.95772609944888143]], [[-0.2065776668223438, 0.42725210324333318], [0.7364228886378279, -0.68355623320214742]], [[0.89432956269945318, 0.047167913434807307], [-0.59615022906951576, -0.052604947166627003]], [[-0.019410260044968597, 0.12421192355633814], [0.77725134763332737, 0.049276142272715706]], [[0.12279204417499834, 0.57729537975214207], [-0.56531900149974712, 0.11474731096758073]]])
5801          sub=res.substitute({arg:s})
5802          ref=numarray.array([[[-0.83851414172649053, -0.050051987461098291], [-0.45917464327982049, -0.89306834101549981], [-0.2065776668223438, 0.7364228886378279], [0.89432956269945318, -0.59615022906951576], [-0.019410260044968597, 0.77725134763332737], [0.12279204417499834, -0.56531900149974712]], [[-0.9345472027993611, 0.051207000708158201], [-0.72383868377493887, 0.95772609944888143], [0.42725210324333318, -0.68355623320214742], [0.047167913434807307, -0.052604947166627003], [0.12421192355633814, 0.049276142272715706], [0.57729537975214207, 0.11474731096758073]]])
5803          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5804          self.failUnlessEqual(res.getShape(),(2, 6, 2),"wrong shape of result.")
5805          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5806       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5807       def test_transpose_Symbol_rank3_offset3(self):
5808          arg=Symbol(shape=(6, 2, 2))
5809          res=transpose(arg,3)
5810          s=numarray.array([[[0.43811687269107114, 0.070224123705617369], [0.98167093681025741, -0.84398466636536207]], [[0.17391498795892102, 0.45949829412989995], [-0.71568584070062768, 0.39546676294886907]], [[-0.65699545543981497, 0.57525050782461418], [0.11276781730101826, -0.41282493493770911]], [[0.079970674330177571, 0.18015355990979209], [0.90591997219556863, 0.83004133719305728]], [[0.26972784100484115, 0.59609584683694394], [0.90075223969792506, 0.73114145271184028]], [[-0.19861271928439272, -0.64401827469169226], [-0.37385530367201203, -0.06976906640088254]]])
5811          sub=res.substitute({arg:s})
5812          ref=numarray.array([[[0.43811687269107114, 0.070224123705617369], [0.98167093681025741, -0.84398466636536207]], [[0.17391498795892102, 0.45949829412989995], [-0.71568584070062768, 0.39546676294886907]], [[-0.65699545543981497, 0.57525050782461418], [0.11276781730101826, -0.41282493493770911]], [[0.079970674330177571, 0.18015355990979209], [0.90591997219556863, 0.83004133719305728]], [[0.26972784100484115, 0.59609584683694394], [0.90075223969792506, 0.73114145271184028]], [[-0.19861271928439272, -0.64401827469169226], [-0.37385530367201203, -0.06976906640088254]]])
5813          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5814          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5815          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5816       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5817       def test_transpose_Symbol_rank4_offset0(self):
5818          arg=Symbol(shape=(3, 2, 3, 4))
5819          res=transpose(arg,0)
5820          s=numarray.array([[[[0.25338455669731963, 0.73500471208920737, -0.40868724149572877, 0.91084792476567489], [0.29213307238943176, 0.26615681938372826, -0.20294274257108436, 0.57703872265202438], [-0.73892608500604795, -0.67066247346963537, -0.96356987459146182, 0.5457455546640797]], [[0.11094972582342955, 0.85016649584324244, 0.76462964928116017, 0.31901230439939088], [0.45243545742209523, -0.14019731091592047, -0.015218818306999449, -0.015845524715442316], [-0.29960153317064409, -0.025617317016113805, 0.71913297650565267, 0.76923642609694354]]], [[[0.17351922806845166, 0.37612517548855839, -0.80988734455181111, 0.7838280851636823], [-0.58482482688262549, 0.11089812508666963, 0.086564841446456819, -0.67645141045070289], [-0.5667103382083909, -0.64608750315569696, 0.13681550319654656, 0.91992031872387203]], [[-0.92740780147442625, -0.80163987111802126, 0.43747663433608319, -0.26244711544519461], [0.3576946921175499, 0.21732508704841291, -0.92834834522607035, -0.83448988258005352], [0.024510823691020756, -0.65671821624771698, 0.73997777757578009, -0.47567995097744808]]], [[[0.39151396929525006, -0.37608274093401728, 0.32625448845818439, 0.077258316687835338], [0.47835705923202987, 0.6018972045321842, 0.39609102633455628, -0.10045949285294653], [-0.98228291007259849, 0.59664144839269184, -0.97796159237059888, 0.24922429674239499]], [[-0.57268935996146841, -0.96274562912464012, -0.99814177664422488, 0.25657028539370419], [0.94551104099710881, 0.70625721057924706, 0.20988447951359834, -0.038012877147526547], [0.22246357475516443, 0.99081526817805754, 0.22704080971706597, -0.20551589811990967]]]])
5821          sub=res.substitute({arg:s})
5822          ref=numarray.array([[[[0.25338455669731963, 0.73500471208920737, -0.40868724149572877, 0.91084792476567489], [0.29213307238943176, 0.26615681938372826, -0.20294274257108436, 0.57703872265202438], [-0.73892608500604795, -0.67066247346963537, -0.96356987459146182, 0.5457455546640797]], [[0.11094972582342955, 0.85016649584324244, 0.76462964928116017, 0.31901230439939088], [0.45243545742209523, -0.14019731091592047, -0.015218818306999449, -0.015845524715442316], [-0.29960153317064409, -0.025617317016113805, 0.71913297650565267, 0.76923642609694354]]], [[[0.17351922806845166, 0.37612517548855839, -0.80988734455181111, 0.7838280851636823], [-0.58482482688262549, 0.11089812508666963, 0.086564841446456819, -0.67645141045070289], [-0.5667103382083909, -0.64608750315569696, 0.13681550319654656, 0.91992031872387203]], [[-0.92740780147442625, -0.80163987111802126, 0.43747663433608319, -0.26244711544519461], [0.3576946921175499, 0.21732508704841291, -0.92834834522607035, -0.83448988258005352], [0.024510823691020756, -0.65671821624771698, 0.73997777757578009, -0.47567995097744808]]], [[[0.39151396929525006, -0.37608274093401728, 0.32625448845818439, 0.077258316687835338], [0.47835705923202987, 0.6018972045321842, 0.39609102633455628, -0.10045949285294653], [-0.98228291007259849, 0.59664144839269184, -0.97796159237059888, 0.24922429674239499]], [[-0.57268935996146841, -0.96274562912464012, -0.99814177664422488, 0.25657028539370419], [0.94551104099710881, 0.70625721057924706, 0.20988447951359834, -0.038012877147526547], [0.22246357475516443, 0.99081526817805754, 0.22704080971706597, -0.20551589811990967]]]])
5823          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5824          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5825          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5826       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5827       def test_transpose_Symbol_rank4_offset1(self):
5828          arg=Symbol(shape=(3, 2, 3, 4))
5829          res=transpose(arg,1)
5830          s=numarray.array([[[[-0.42383471927620953, 0.79262015390278595, -0.4294282165691532, 0.58630051915905068], [-0.74464161399651352, -0.93843536862014698, 0.93611241965527281, 0.37601310492751128], [0.95838337975393539, 0.49488642731433519, 0.097526972805529466, -0.094219901133543393]], [[0.069925183138124236, 0.46284010137770482, 0.25265982608529081, 0.85395109313794482], [0.82852088049836303, 0.83716051731739416, -0.87395374004065496, -0.46101688563420695], [-0.60737021834413518, -0.78213803651969194, -0.023739419187312594, 0.81371722891028742]]], [[[0.29857813856025994, -0.57418735321008763, -0.084515436984349046, -0.54351233310595148], [-0.70977426454613712, 0.52673630173919683, -0.36081856247830713, -0.21350979012125459], [-0.15850808738078137, 0.28109046353867062, -0.62459781707685758, 0.59324570097516371]], [[-0.37951452096003235, 0.52602689428547977, 0.33267178330788982, 0.58095558139376813], [0.47693152861730659, 0.51453683105418402, -0.97523170056787833, -0.97136823224786184], [-0.86870843032700495, 0.14433364338577137, 0.35485564375064116, 0.0084064388616631458]]], [[[-0.2033332990072616, -0.96185627602891977, 0.03154074941973839, 0.94715693706136062], [-0.82160862664211054, 0.48141026821110011, -0.81236980256065339, -0.2475044445948007], [-0.62424171382627858, 0.0079629745107963057, 0.4468407037235187, 0.7763765757911294]], [[-0.41411824279919873, -0.10999072623549244, 0.26545879315617071, -0.59337639297627054], [-0.98228798410545304, -0.79561261239634296, -0.76022578819725783, 0.99047748534153834], [0.63663032384984497, 0.56224877221874126, -0.78632856834928733, -0.80623107201984334]]]])
5831          sub=res.substitute({arg:s})
5832          ref=numarray.array([[[[-0.42383471927620953, 0.29857813856025994, -0.2033332990072616], [0.79262015390278595, -0.57418735321008763, -0.96185627602891977], [-0.4294282165691532, -0.084515436984349046, 0.03154074941973839], [0.58630051915905068, -0.54351233310595148, 0.94715693706136062]], [[-0.74464161399651352, -0.70977426454613712, -0.82160862664211054], [-0.93843536862014698, 0.52673630173919683, 0.48141026821110011], [0.93611241965527281, -0.36081856247830713, -0.81236980256065339], [0.37601310492751128, -0.21350979012125459, -0.2475044445948007]], [[0.95838337975393539, -0.15850808738078137, -0.62424171382627858], [0.49488642731433519, 0.28109046353867062, 0.0079629745107963057], [0.097526972805529466, -0.62459781707685758, 0.4468407037235187], [-0.094219901133543393, 0.59324570097516371, 0.7763765757911294]]], [[[0.069925183138124236, -0.37951452096003235, -0.41411824279919873], [0.46284010137770482, 0.52602689428547977, -0.10999072623549244], [0.25265982608529081, 0.33267178330788982, 0.26545879315617071], [0.85395109313794482, 0.58095558139376813, -0.59337639297627054]], [[0.82852088049836303, 0.47693152861730659, -0.98228798410545304], [0.83716051731739416, 0.51453683105418402, -0.79561261239634296], [-0.87395374004065496, -0.97523170056787833, -0.76022578819725783], [-0.46101688563420695, -0.97136823224786184, 0.99047748534153834]], [[-0.60737021834413518, -0.86870843032700495, 0.63663032384984497], [-0.78213803651969194, 0.14433364338577137, 0.56224877221874126], [-0.023739419187312594, 0.35485564375064116, -0.78632856834928733], [0.81371722891028742, 0.0084064388616631458, -0.80623107201984334]]]])
5833          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5834          self.failUnlessEqual(res.getShape(),(2, 3, 4, 3),"wrong shape of result.")
5835          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5836       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5837       def test_transpose_Symbol_rank4_offset2(self):
5838          arg=Symbol(shape=(3, 2, 3, 4))
5839          res=transpose(arg,2)
5840          s=numarray.array([[[[-0.022039092203581356, 0.085031919524413579, -0.069414708854588225, -0.49908256005686069], [-0.27805726990017221, 0.23210793957032516, -0.53438510033143283, -0.45094613945799678], [0.049901632176387656, -0.30467021491280977, -0.49852582645095733, -0.75139956998982838]], [[0.60333419330614646, 0.45271539485536261, -0.52479202719377782, 0.81165565790632543], [0.94706245861673799, 0.021745262754251815, -0.27816438895568751, 0.58635467913937589], [0.28217708916665662, -0.85481083062789343, -0.7206400357912004, -0.60278972703019629]]], [[[0.10699833037272488, -0.83193876237357101, 0.75044722372562367, 0.49064630773056717], [-0.54311381534982717, 0.89116102540504172, -0.89619642340688932, 0.41430258909456796], [0.71961101006548778, -0.7320070311870519, 0.34422379105662371, 0.73097051647343303]], [[-0.43582281611067875, -0.015494802243947836, -0.63066171462939136, -0.030158507560761105], [-0.2505680268913415, -0.93536507226146415, -0.72772596394383804, -0.32135170915775779], [0.81011035123827746, 0.43762191138767581, 0.73793436841778126, -0.83618677373948236]]], [[[-0.06718092052953839, -0.34766612935842645, 0.49419088269492972, 0.68165855892174188], [0.4648624829208583, -0.57995975414683065, -0.86372848831622773, -0.63880376507035574], [0.04848471042848157, -0.10723241156805319, 0.51372178831305382, 0.38289668484804196]], [[-0.97936115645348454, 0.13735843559443706, 0.34961509498527876, 0.26841876180785773], [0.65671008147446219, -0.26135751846710042, 0.29594229772579661, -0.91704421780004042], [-0.92741781528137834, 0.51993307871585226, -0.74367067733342451, -0.65271757891582638]]]])
5841          sub=res.substitute({arg:s})
5842          ref=numarray.array([[[[-0.022039092203581356, 0.60333419330614646], [0.10699833037272488, -0.43582281611067875], [-0.06718092052953839, -0.97936115645348454]], [[0.085031919524413579, 0.45271539485536261], [-0.83193876237357101, -0.015494802243947836], [-0.34766612935842645, 0.13735843559443706]], [[-0.069414708854588225, -0.52479202719377782], [0.75044722372562367, -0.63066171462939136], [0.49419088269492972, 0.34961509498527876]], [[-0.49908256005686069, 0.81165565790632543], [0.49064630773056717, -0.030158507560761105], [0.68165855892174188, 0.26841876180785773]]], [[[-0.27805726990017221, 0.94706245861673799], [-0.54311381534982717, -0.2505680268913415], [0.4648624829208583, 0.65671008147446219]], [[0.23210793957032516, 0.021745262754251815], [0.89116102540504172, -0.93536507226146415], [-0.57995975414683065, -0.26135751846710042]], [[-0.53438510033143283, -0.27816438895568751], [-0.89619642340688932, -0.72772596394383804], [-0.86372848831622773, 0.29594229772579661]], [[-0.45094613945799678, 0.58635467913937589], [0.41430258909456796, -0.32135170915775779], [-0.63880376507035574, -0.91704421780004042]]], [[[0.049901632176387656, 0.28217708916665662], [0.71961101006548778, 0.81011035123827746], [0.04848471042848157, -0.92741781528137834]], [[-0.30467021491280977, -0.85481083062789343], [-0.7320070311870519, 0.43762191138767581], [-0.10723241156805319, 0.51993307871585226]], [[-0.49852582645095733, -0.7206400357912004], [0.34422379105662371, 0.73793436841778126], [0.51372178831305382, -0.74367067733342451]], [[-0.75139956998982838, -0.60278972703019629], [0.73097051647343303, -0.83618677373948236], [0.38289668484804196, -0.65271757891582638]]]])
5843          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5844          self.failUnlessEqual(res.getShape(),(3, 4, 3, 2),"wrong shape of result.")
5845          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5846       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5847       def test_transpose_Symbol_rank4_offset3(self):
5848          arg=Symbol(shape=(3, 2, 3, 4))
5849          res=transpose(arg,3)
5850          s=numarray.array([[[[0.27429242256531028, 0.84697272331285212, -0.15123527799616032, -0.20333158931192785], [0.35740759682219569, 0.87382335376002551, -0.83813233476033, 0.69450659290714389], [-0.67369180227532754, -0.70167311114916231, -0.73177474926618435, 0.34055665628378473]], [[0.88922753797947141, 0.65479698492204075, 0.48224049703880634, -0.26918869427282077], [0.75585597443271046, 0.21973256824582599, -0.50124194399344257, 0.92387834623291343], [0.28909969017327541, 0.97743262438855449, 0.91704333491197287, 0.72070435691553558]]], [[[0.76493545807084895, 0.49642100378675424, 0.41700962555209942, -0.99718227370004486], [-0.48164662621310184, 0.14219616846629779, -0.082932068937315417, 0.48464008628884825], [-0.30678648596254043, -0.44048537328383564, 0.40794364430538876, 0.40161397680138045]], [[-0.96226540599323585, -0.27786861998183543, 0.41308057800013209, -0.2526094966083372], [0.68334524785703432, 0.25895626664221272, -0.63025317778650458, 0.97906627194914031], [0.61928776882615399, -0.166471607785176, 0.25933308013922929, -0.30976980035226109]]], [[[0.73666430632836066, -0.65663609646351473, 0.98120843145205106, 0.67098869904256153], [0.77211808493439404, 0.63066203517820107, 0.95326370880499045, -0.86841691420416622], [-0.63537156914796178, -0.47951989786298954, -0.73165008878847337, -0.32768282735661347]], [[0.28636634822021034, 0.67105733064576123, -0.13235726898349709, -0.15228935774836905], [0.038763452322473801, 0.12792551502417981, -0.0057006857143544476, -0.8495591272901335], [-0.41123095208834859, -0.14712059863889682, -0.921343405324478, -0.42267024502568873]]]])
5851          sub=res.substitute({arg:s})
5852          ref=numarray.array([[[[0.27429242256531028, 0.35740759682219569, -0.67369180227532754], [0.88922753797947141, 0.75585597443271046, 0.28909969017327541]], [[0.76493545807084895, -0.48164662621310184, -0.30678648596254043], [-0.96226540599323585, 0.68334524785703432, 0.61928776882615399]], [[0.73666430632836066, 0.77211808493439404, -0.63537156914796178], [0.28636634822021034, 0.038763452322473801, -0.41123095208834859]]], [[[0.84697272331285212, 0.87382335376002551, -0.70167311114916231], [0.65479698492204075, 0.21973256824582599, 0.97743262438855449]], [[0.49642100378675424, 0.14219616846629779, -0.44048537328383564], [-0.27786861998183543, 0.25895626664221272, -0.166471607785176]], [[-0.65663609646351473, 0.63066203517820107, -0.47951989786298954], [0.67105733064576123, 0.12792551502417981, -0.14712059863889682]]], [[[-0.15123527799616032, -0.83813233476033, -0.73177474926618435], [0.48224049703880634, -0.50124194399344257, 0.91704333491197287]], [[0.41700962555209942, -0.082932068937315417, 0.40794364430538876], [0.41308057800013209, -0.63025317778650458, 0.25933308013922929]], [[0.98120843145205106, 0.95326370880499045, -0.73165008878847337], [-0.13235726898349709, -0.0057006857143544476, -0.921343405324478]]], [[[-0.20333158931192785, 0.69450659290714389, 0.34055665628378473], [-0.26918869427282077, 0.92387834623291343, 0.72070435691553558]], [[-0.99718227370004486, 0.48464008628884825, 0.40161397680138045], [-0.2526094966083372, 0.97906627194914031, -0.30976980035226109]], [[0.67098869904256153, -0.86841691420416622, -0.32768282735661347], [-0.15228935774836905, -0.8495591272901335, -0.42267024502568873]]]])
5853          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5854          self.failUnlessEqual(res.getShape(),(4, 3, 2, 3),"wrong shape of result.")
5855          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5856       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5857       def test_transpose_Symbol_rank4_offset4(self):
5858          arg=Symbol(shape=(3, 2, 3, 4))
5859          res=transpose(arg,4)
5860          s=numarray.array([[[[0.58715862381140882, -0.85603535865516367, -0.9278119521738486, 0.35979125930208711], [-0.78476240821041965, -0.064119995323935752, 0.2265840692679304, 0.13764877082542681], [0.67765170224297466, 0.3931709361900706, 0.9756440050275359, 0.64748413050550435]], [[-0.62768716829197069, -0.35581302442836948, 0.7859361459142773, 0.80661910300067974], [0.27342707164098479, -0.81389725147143688, 0.017161883524137389, 0.4605333720818634], [0.10864842160621535, -0.12065624960982868, 0.56809825890777987, 0.72022724446116682]]], [[[-0.00042624010748593122, 0.988048390568667, 0.43192178654981617, 0.51253729861647424], [0.61411085699928414, 0.49455632638026015, 0.65071007183480845, -0.10283089570377535], [-0.24425022315633105, 0.31421351394253239, 0.2987742923711183, -0.69136091110465014]], [[0.19691720582554195, 0.72044948527426333, -0.064928955720874759, 0.77685694003736261], [-0.0089696927655209535, 0.24600846420155698, -0.27826399720550987, 0.42154403021024955], [0.58087107987943898, -0.13568326854518209, 0.59138798182350327, 0.64477983306976205]]], [[[0.73874087191621873, -0.04766297505431405, -0.018614524834952739, 0.71600968812047183], [-0.39504830434954785, 0.061558815891519014, -0.12909453128152748, -0.35510684272205806], [0.090338309596435185, -0.47412763049824336, -0.50588484479757589, -0.40980842342707247]], [[-0.40722535776080626, -0.80715456867314095, 0.48473725112015797, -0.19415741942876474], [0.24908282037234963, 0.75761435915120168, -0.71394726372841433, 0.34892157685808867], [0.55562523535564345, -0.57916534509207063, -0.7807764615589301, 0.67302663393633089]]]])
5861          sub=res.substitute({arg:s})
5862          ref=numarray.array([[[[0.58715862381140882, -0.85603535865516367, -0.9278119521738486, 0.35979125930208711], [-0.78476240821041965, -0.064119995323935752, 0.2265840692679304, 0.13764877082542681], [0.67765170224297466, 0.3931709361900706, 0.9756440050275359, 0.64748413050550435]], [[-0.62768716829197069, -0.35581302442836948, 0.7859361459142773, 0.80661910300067974], [0.27342707164098479, -0.81389725147143688, 0.017161883524137389, 0.4605333720818634], [0.10864842160621535, -0.12065624960982868, 0.56809825890777987, 0.72022724446116682]]], [[[-0.00042624010748593122, 0.988048390568667, 0.43192178654981617, 0.51253729861647424], [0.61411085699928414, 0.49455632638026015, 0.65071007183480845, -0.10283089570377535], [-0.24425022315633105, 0.31421351394253239, 0.2987742923711183, -0.69136091110465014]], [[0.19691720582554195, 0.72044948527426333, -0.064928955720874759, 0.77685694003736261], [-0.0089696927655209535, 0.24600846420155698, -0.27826399720550987, 0.42154403021024955], [0.58087107987943898, -0.13568326854518209, 0.59138798182350327, 0.64477983306976205]]], [[[0.73874087191621873, -0.04766297505431405, -0.018614524834952739, 0.71600968812047183], [-0.39504830434954785, 0.061558815891519014, -0.12909453128152748, -0.35510684272205806], [0.090338309596435185, -0.47412763049824336, -0.50588484479757589, -0.40980842342707247]], [[-0.40722535776080626, -0.80715456867314095, 0.48473725112015797, -0.19415741942876474], [0.24908282037234963, 0.75761435915120168, -0.71394726372841433, 0.34892157685808867], [0.55562523535564345, -0.57916534509207063, -0.7807764615589301, 0.67302663393633089]]]])
5863          self.failUnless(isinstance(res,Symbol),"wrong type of result.")
5864          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5865          self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5866       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5867       def test_transpose_constData_rank0_offset0(self):
5868          arg=Data(0.225959396074,self.functionspace)
5869          res=transpose(arg,0)
5870          ref=Data(0.225959396074,self.functionspace)
5871          self.failUnless(isinstance(res,Data),"wrong type of result.")
5872          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5873          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5874       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5875       def test_transpose_constData_rank1_offset0(self):
5876          arg=Data(numarray.array([-0.10069916326121553, 0.92007057532607028, 0.23757652766451387]),self.functionspace)
5877          res=transpose(arg,0)
5878          ref=Data(numarray.array([-0.10069916326121553, 0.92007057532607028, 0.23757652766451387]),self.functionspace)
5879          self.failUnless(isinstance(res,Data),"wrong type of result.")
5880          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
5881          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5882       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5883       def test_transpose_constData_rank1_offset1(self):
5884          arg=Data(numarray.array([-0.96894085254637852, 0.99397138080599179, 0.75096727359933446]),self.functionspace)
5885          res=transpose(arg,1)
5886          ref=Data(numarray.array([-0.96894085254637852, 0.99397138080599179, 0.75096727359933446]),self.functionspace)
5887          self.failUnless(isinstance(res,Data),"wrong type of result.")
5888          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
5889          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5890       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5891       def test_transpose_constData_rank2_offset0(self):
5892          arg=Data(numarray.array([[-0.77040849666417954, -0.65569275146714245, -0.085115062942961117, 0.53031883260280233, 0.45045866722167194], [-0.25138155122864525, -0.57389792702151166, 0.68860922394355262, -0.0065526746880473219, -0.35764306534130941], [0.1855120335364151, 0.20458186711393633, -0.92082337603524778, 0.44273448552707206, 0.9132574415070196], [-0.66827173835450138, -0.10195695513805592, -0.62636668115005345, 0.42547131691714135, -0.26859658298750433]]),self.functionspace)
5893          res=transpose(arg,0)
5894          ref=Data(numarray.array([[-0.77040849666417954, -0.65569275146714245, -0.085115062942961117, 0.53031883260280233, 0.45045866722167194], [-0.25138155122864525, -0.57389792702151166, 0.68860922394355262, -0.0065526746880473219, -0.35764306534130941], [0.1855120335364151, 0.20458186711393633, -0.92082337603524778, 0.44273448552707206, 0.9132574415070196], [-0.66827173835450138, -0.10195695513805592, -0.62636668115005345, 0.42547131691714135, -0.26859658298750433]]),self.functionspace)
5895          self.failUnless(isinstance(res,Data),"wrong type of result.")
5896          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5897          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5898       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5899       def test_transpose_constData_rank2_offset1(self):
5900          arg=Data(numarray.array([[-0.33491601939065641, 0.69094680423719512, 0.59915028553776173, -0.17958818166304691, -0.36878341684202787], [0.070568238098461578, -0.93071350688047483, -0.51431930979320262, 0.79243870568471286, -0.30760978245682358], [0.48188891571355419, 0.27082538070485107, -0.61798546635554019, -0.09157099532428048, 0.041573188753503576], [-0.46996472567292291, 0.091822116640003726, 0.82968798099977259, -0.90218837916197514, -0.2800509995815792]]),self.functionspace)
5901          res=transpose(arg,1)
5902          ref=Data(numarray.array([[-0.33491601939065641, 0.070568238098461578, 0.48188891571355419, -0.46996472567292291], [0.69094680423719512, -0.93071350688047483, 0.27082538070485107, 0.091822116640003726], [0.59915028553776173, -0.51431930979320262, -0.61798546635554019, 0.82968798099977259], [-0.17958818166304691, 0.79243870568471286, -0.09157099532428048, -0.90218837916197514], [-0.36878341684202787, -0.30760978245682358, 0.041573188753503576, -0.2800509995815792]]),self.functionspace)
5903          self.failUnless(isinstance(res,Data),"wrong type of result.")
5904          self.failUnlessEqual(res.getShape(),(5, 4),"wrong shape of result.")
5905          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5906       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5907       def test_transpose_constData_rank2_offset2(self):
5908          arg=Data(numarray.array([[-0.82520616823441428, 0.23178414157473859, 0.51336605638991473, -0.15382223373865966, 0.38135571801585266], [0.32542008573228198, 0.16152008642250415, 0.70218192092285547, -0.59967809110321091, -0.27328553913693976], [0.6664714000556613, -0.81171782543448479, -0.64798918174611497, 0.0271087416779352, 0.36283514673162354], [0.77384232927642294, 0.34982601937720692, 0.45691537494513046, 0.91177206590340187, 0.30654445623290028]]),self.functionspace)
5909          res=transpose(arg,2)
5910          ref=Data(numarray.array([[-0.82520616823441428, 0.23178414157473859, 0.51336605638991473, -0.15382223373865966, 0.38135571801585266], [0.32542008573228198, 0.16152008642250415, 0.70218192092285547, -0.59967809110321091, -0.27328553913693976], [0.6664714000556613, -0.81171782543448479, -0.64798918174611497, 0.0271087416779352, 0.36283514673162354], [0.77384232927642294, 0.34982601937720692, 0.45691537494513046, 0.91177206590340187, 0.30654445623290028]]),self.functionspace)
5911          self.failUnless(isinstance(res,Data),"wrong type of result.")
5912          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5913          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5914       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5915       def test_transpose_constData_rank3_offset0(self):
5916          arg=Data(numarray.array([[[-0.083961167763012767, 0.75255816882127125], [-0.74297953496476565, -0.78165934740603404]], [[0.83549977133305964, 0.20912684191235753], [-0.91601301962855231, 0.15145807325710625]], [[-0.31770291701539133, 0.102506071837142], [-0.85609847709286746, 0.073777859252800893]], [[-0.71229101547579732, 0.42916964805672819], [0.6746565760958132, 0.63810376664450619]], [[-0.23285662388801653, -0.48801062112788451], [0.17936444574797683, 0.11032910465573775]], [[-0.85718541874892162, 0.29088039452314662], [-0.13540243373731498, 0.22760939006250824]]]),self.functionspace)
5917          res=transpose(arg,0)
5918          ref=Data(numarray.array([[[-0.083961167763012767, 0.75255816882127125], [-0.74297953496476565, -0.78165934740603404]], [[0.83549977133305964, 0.20912684191235753], [-0.91601301962855231, 0.15145807325710625]], [[-0.31770291701539133, 0.102506071837142], [-0.85609847709286746, 0.073777859252800893]], [[-0.71229101547579732, 0.42916964805672819], [0.6746565760958132, 0.63810376664450619]], [[-0.23285662388801653, -0.48801062112788451], [0.17936444574797683, 0.11032910465573775]], [[-0.85718541874892162, 0.29088039452314662], [-0.13540243373731498, 0.22760939006250824]]]),self.functionspace)
5919          self.failUnless(isinstance(res,Data),"wrong type of result.")
5920          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5921          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5922       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5923       def test_transpose_constData_rank3_offset1(self):
5924          arg=Data(numarray.array([[[-0.042269181435689029, 0.17793672760180068], [0.45087643293361235, -0.056364428732654792]], [[-0.81477257272391168, 0.14054428213249559], [0.35573867405158488, 0.76785646537954655]], [[-0.22083616952137142, -0.23664220804541358], [0.41657512286553944, 0.94253794934849355]], [[0.2311373052564818, -0.19762165243937391], [-0.95012581524794082, -0.19612170397872153]], [[0.88230819444997133, -0.59133465030314891], [0.58772016310959208, -0.60523154692164716]], [[0.61572404162018302, 0.11636730158627984], [-0.91159653308647148, -0.14380185308054139]]]),self.functionspace)
5925          res=transpose(arg,1)
5926          ref=Data(numarray.array([[[-0.042269181435689029, -0.81477257272391168, -0.22083616952137142, 0.2311373052564818, 0.88230819444997133, 0.61572404162018302], [0.17793672760180068, 0.14054428213249559, -0.23664220804541358, -0.19762165243937391, -0.59133465030314891, 0.11636730158627984]], [[0.45087643293361235, 0.35573867405158488, 0.41657512286553944, -0.95012581524794082, 0.58772016310959208, -0.91159653308647148], [-0.056364428732654792, 0.76785646537954655, 0.94253794934849355, -0.19612170397872153, -0.60523154692164716, -0.14380185308054139]]]),self.functionspace)
5927          self.failUnless(isinstance(res,Data),"wrong type of result.")
5928          self.failUnlessEqual(res.getShape(),(2, 2, 6),"wrong shape of result.")
5929          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5930       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5931       def test_transpose_constData_rank3_offset2(self):
5932          arg=Data(numarray.array([[[-0.94655642599340895, 0.98245908885666666], [-0.72990190255518717, 0.35843119603651763]], [[0.037401662839183336, -0.0045781922217276172], [0.10281748425147752, 0.20718092971734881]], [[-0.74962348813202762, -0.70912709764536541], [0.62287774759194026, -0.45625121314087513]], [[0.578381701983951, 0.60103694479786918], [-0.52967023703614613, 0.16147518679648654]], [[0.12967425251567466, -0.71363229423562569], [-0.1609519217368085, -0.60004506300397464]], [[0.91403980319630196, -0.84616417269132849], [-0.81542282397933752, -0.02174165953527174]]]),self.functionspace)
5933          res=transpose(arg,2)
5934          ref=Data(numarray.array([[[-0.94655642599340895, -0.72990190255518717], [0.037401662839183336, 0.10281748425147752], [-0.74962348813202762, 0.62287774759194026], [0.578381701983951, -0.52967023703614613], [0.12967425251567466, -0.1609519217368085], [0.91403980319630196, -0.81542282397933752]], [[0.98245908885666666, 0.35843119603651763], [-0.0045781922217276172, 0.20718092971734881], [-0.70912709764536541, -0.45625121314087513], [0.60103694479786918, 0.16147518679648654], [-0.71363229423562569, -0.60004506300397464], [-0.84616417269132849, -0.02174165953527174]]]),self.functionspace)
5935          self.failUnless(isinstance(res,Data),"wrong type of result.")
5936          self.failUnlessEqual(res.getShape(),(2, 6, 2),"wrong shape of result.")
5937          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5938       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5939       def test_transpose_constData_rank3_offset3(self):
5940          arg=Data(numarray.array([[[-0.50094258685726012, -0.11804641099402491], [0.54676942661623795, 0.31600921256216274]], [[-0.58408147535921007, 0.34809360137770984], [0.50005428183149991, -0.25294841139527469]], [[0.059314096894031554, 0.52874319292190664], [-0.1314313646550076, -0.87940671115560032]], [[0.46292409727943684, 0.5191235491178583], [-0.437616790136516, -0.47109591872500434]], [[-0.72208122346331116, -0.47535246418613242], [0.91974494685767372, -0.23086488372938296]], [[-0.69613100517423487, 0.54386522047707553], [0.8597484998147733, 0.28629791272229932]]]),self.functionspace)
5941          res=transpose(arg,3)
5942          ref=Data(numarray.array([[[-0.50094258685726012, -0.11804641099402491], [0.54676942661623795, 0.31600921256216274]], [[-0.58408147535921007, 0.34809360137770984], [0.50005428183149991, -0.25294841139527469]], [[0.059314096894031554, 0.52874319292190664], [-0.1314313646550076, -0.87940671115560032]], [[0.46292409727943684, 0.5191235491178583], [-0.437616790136516, -0.47109591872500434]], [[-0.72208122346331116, -0.47535246418613242], [0.91974494685767372, -0.23086488372938296]], [[-0.69613100517423487, 0.54386522047707553], [0.8597484998147733, 0.28629791272229932]]]),self.functionspace)
5943          self.failUnless(isinstance(res,Data),"wrong type of result.")
5944          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5945          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5946       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5947       def test_transpose_constData_rank4_offset0(self):
5948          arg=Data(numarray.array([[[[0.43160274169330548, 0.64574673937769389, -0.22090587850110532, 0.27327990716134543], [0.4357184869287225, -0.1057167094295115, 0.088376391082047645, 0.98890168268659351], [-0.26892091808757956, -0.46449597655854058, -0.30767377671695084, 0.48381430522270263]], [[0.53268114144817602, 0.8914423078395235, -0.98279699443410662, -0.074270373952304514], [0.61245177480132051, 0.38414589123621901, -0.59664346034600069, -0.43578722171684037], [0.61008123791889957, 0.55624350594847893, -0.51828071056523184, -0.94828145590534518]]], [[[0.098790655455476273, 0.59777914100459784, 0.85324921191791403, 0.58793186703765188], [0.57583199823949371, 0.84582314809452841, -0.24387545604263217, -0.49022805643629686], [-0.8755050156388906, -0.69414546093848251, -0.83631843020297181, -0.16501548428890045]], [[0.011484769832809771, -0.67529896836916636, 0.48307712186937435, 0.84232426864036714], [0.76787908935376636, -0.92147846282378132, -0.73025447906715946, -0.64382697566715974], [-0.005449284426912504, 0.85962202832752466, 0.15071959625479225, -0.96316320443521364]]], [[[-0.91108923040744427, 0.77314517473264477, -0.23191867503149455, -0.58593465344895135], [-0.72007957060415384, 0.95515846407330152, -0.10252164430284805, -0.41514590942875462], [0.88047846832877275, 0.95787212628912477, 0.58694365764216649, -0.13020535549536283]], [[-0.31152431684213489, 0.67808804984728899, -0.32133868411563782, -0.038594688259944387], [0.7991166706322419, -0.12765107971293377, 0.15512221968538764, -0.41710652523509806], [0.74696018231245098, 0.60113942409165722, -0.27277443196119178, 0.47852441965314441]]]]),self.functionspace)
5949          res=transpose(arg,0)
5950          ref=Data(numarray.array([[[[0.43160274169330548, 0.64574673937769389, -0.22090587850110532, 0.27327990716134543], [0.4357184869287225, -0.1057167094295115, 0.088376391082047645, 0.98890168268659351], [-0.26892091808757956, -0.46449597655854058, -0.30767377671695084, 0.48381430522270263]], [[0.53268114144817602, 0.8914423078395235, -0.98279699443410662, -0.074270373952304514], [0.61245177480132051, 0.38414589123621901, -0.59664346034600069, -0.43578722171684037], [0.61008123791889957, 0.55624350594847893, -0.51828071056523184, -0.94828145590534518]]], [[[0.098790655455476273, 0.59777914100459784, 0.85324921191791403, 0.58793186703765188], [0.57583199823949371, 0.84582314809452841, -0.24387545604263217, -0.49022805643629686], [-0.8755050156388906, -0.69414546093848251, -0.83631843020297181, -0.16501548428890045]], [[0.011484769832809771, -0.67529896836916636, 0.48307712186937435, 0.84232426864036714], [0.76787908935376636, -0.92147846282378132, -0.73025447906715946, -0.64382697566715974], [-0.005449284426912504, 0.85962202832752466, 0.15071959625479225, -0.96316320443521364]]], [[[-0.91108923040744427, 0.77314517473264477, -0.23191867503149455, -0.58593465344895135], [-0.72007957060415384, 0.95515846407330152, -0.10252164430284805, -0.41514590942875462], [0.88047846832877275, 0.95787212628912477, 0.58694365764216649, -0.13020535549536283]], [[-0.31152431684213489, 0.67808804984728899, -0.32133868411563782, -0.038594688259944387], [0.7991166706322419, -0.12765107971293377, 0.15512221968538764, -0.41710652523509806], [0.74696018231245098, 0.60113942409165722, -0.27277443196119178, 0.47852441965314441]]]]),self.functionspace)
5951          self.failUnless(isinstance(res,Data),"wrong type of result.")
5952          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5953          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5954       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5955       def test_transpose_constData_rank4_offset1(self):
5956          arg=Data(numarray.array([[[[-0.86619024662118393, 0.77612208466864563, 0.01032463102377279, -0.38055879688655758], [-0.76325416572146532, 0.52930284656375926, -0.33395466552432773, -0.52901256263270868], [0.50540410887764753, -0.58977464856070116, -0.13411386892344201, 0.9082622556330453]], [[0.73821183656589584, -0.57794756275774684, -0.42792298780429583, 0.07270908658219688], [0.87197306795180629, -0.14896474573021479, -0.87552810567779904, 0.25274597077059013], [-0.44755310665820369, -0.59858983399272736, 0.41742224877641743, -0.62800871201009878]]], [[[-0.93586002663127976, 0.78565035995205079, 0.73570402336212593, 0.5006428539322989], [0.092412867825900191, -0.95348826554521304, -0.30899515577249881, 0.79470430322061003], [0.59590624583087837, 0.57396077391852351, 0.48632583736616786, 0.95612341051252536]], [[-0.65283497592741901, 0.6279985524035312, -0.39634295071715342, -0.0095363457098334159], [0.64338532378786528, 0.96737632439281795, -0.57890272176670976, -0.16717012024502775], [0.97037747341473812, 0.38268766961993972, -0.37098741976903682, 0.14499586626138461]]], [[[-0.61437183199444911, -0.55366743717712352, 0.01702633409230403, -0.79534955631554172], [-0.50449304819837759, 0.50669985742674628, 0.18309694323838688, -0.23103415009029082], [0.95915689329110876, -0.66668316006912609, 0.57141073520479302, 0.93148753597082279]], [[0.84247788447581407, 0.43798733751020591, 0.1836536952502783, 0.18227598980498261], [-0.87846592343467211, 0.50449580150763484, -0.76562309090549308, -0.12438599387823968], [-0.40127928144782588, 0.33005242608613328, 0.047231350853066845, 0.011416343030370646]]]]),self.functionspace)
5957          res=transpose(arg,1)
5958          ref=Data(numarray.array([[[[-0.86619024662118393, -0.93586002663127976, -0.61437183199444911], [0.77612208466864563, 0.78565035995205079, -0.55366743717712352], [0.01032463102377279, 0.73570402336212593, 0.01702633409230403], [-0.38055879688655758, 0.5006428539322989, -0.79534955631554172]], [[-0.76325416572146532, 0.092412867825900191, -0.50449304819837759], [0.52930284656375926, -0.95348826554521304, 0.50669985742674628], [-0.33395466552432773, -0.30899515577249881, 0.18309694323838688], [-0.52901256263270868, 0.79470430322061003, -0.23103415009029082]], [[0.50540410887764753, 0.59590624583087837, 0.95915689329110876], [-0.58977464856070116, 0.57396077391852351, -0.66668316006912609], [-0.13411386892344201, 0.48632583736616786, 0.57141073520479302], [0.9082622556330453, 0.95612341051252536, 0.93148753597082279]]], [[[0.73821183656589584, -0.65283497592741901, 0.84247788447581407], [-0.57794756275774684, 0.6279985524035312, 0.43798733751020591], [-0.42792298780429583, -0.39634295071715342, 0.1836536952502783], [0.07270908658219688, -0.0095363457098334159, 0.18227598980498261]], [[0.87197306795180629, 0.64338532378786528, -0.87846592343467211], [-0.14896474573021479, 0.96737632439281795, 0.50449580150763484], [-0.87552810567779904, -0.57890272176670976, -0.76562309090549308], [0.25274597077059013, -0.16717012024502775, -0.12438599387823968]], [[-0.44755310665820369, 0.97037747341473812, -0.40127928144782588], [-0.59858983399272736, 0.38268766961993972, 0.33005242608613328], [0.41742224877641743, -0.37098741976903682, 0.047231350853066845], [-0.62800871201009878, 0.14499586626138461, 0.011416343030370646]]]]),self.functionspace)
5959          self.failUnless(isinstance(res,Data),"wrong type of result.")
5960          self.failUnlessEqual(res.getShape(),(2, 3, 4, 3),"wrong shape of result.")
5961          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5962       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5963       def test_transpose_constData_rank4_offset2(self):
5964          arg=Data(numarray.array([[[[-0.020623148720276596, 0.98817517733714388, -0.96844017850217767, 0.48166130295864429], [0.90089248798594501, -0.19956489345294481, 0.94049453942339656, 0.23506161663644898], [-0.15660691951419681, -0.46495501679844131, -0.091698985972450853, 0.049525910723174027]], [[-0.032229935637019036, -0.88814308599722147, 0.39414768367069453, -0.65002599890113144], [-0.73013457839377804, 0.63429806306930359, -0.56994284243904447, 0.096527566156159539], [0.75614698527591218, -0.54061679138185648, 0.48758775780312913, -0.94944624152301027]]], [[[-0.31675293498881008, 0.40032179478230479, -0.99790640009238163, -0.70056231587973605], [0.5712106930511196, -0.4874962644886589, 0.59326823122811145, 0.13022434812901329], [-0.072826502308464214, 0.81908281754326562, -0.77203842477023277, 0.45180068025520881]], [[-0.011901043078094586, -0.71554336414688269, -0.98178621273359634, -0.032041726870593479], [0.33213233012322663, -0.39783730802603889, -0.95103310118353623, 0.41750247945599828], [0.62496483297284411, 0.8146196435785853, 0.65406659823571522, 0.63961536124475726]]], [[[0.044264946155937679, -0.15567810759246359, 0.13443381061365201, 0.10897985607493266], [-0.83600415194649869, 0.53742333585330848, 0.0042639147861471827, -0.46552390496676921], [-0.3142114095880375, -0.98204264176975697, 0.080925914517088859, -0.57795077282453455]], [[-0.84501525652759168, 0.42616929215003285, -0.4379776100099424, -0.87675319820159325], [0.7132274646561414, 0.82482062775536691, -0.13933556022696036, 0.91560258175534237], [-0.48443700594914252, 0.97756918085699551, -0.16672083508601676, 0.61656316598467287]]]]),self.functionspace)
5965          res=transpose(arg,2)
5966          ref=Data(numarray.array([[[[-0.020623148720276596, -0.032229935637019036], [-0.31675293498881008, -0.011901043078094586], [0.044264946155937679, -0.84501525652759168]], [[0.98817517733714388, -0.88814308599722147], [0.40032179478230479, -0.71554336414688269], [-0.15567810759246359, 0.42616929215003285]], [[-0.96844017850217767, 0.39414768367069453], [-0.99790640009238163, -0.98178621273359634], [0.13443381061365201, -0.4379776100099424]], [[0.48166130295864429, -0.65002599890113144], [-0.70056231587973605, -0.032041726870593479], [0.10897985607493266, -0.87675319820159325]]], [[[0.90089248798594501, -0.73013457839377804], [0.5712106930511196, 0.33213233012322663], [-0.83600415194649869, 0.7132274646561414]], [[-0.19956489345294481, 0.63429806306930359], [-0.4874962644886589, -0.39783730802603889], [0.53742333585330848, 0.82482062775536691]], [[0.94049453942339656, -0.56994284243904447], [0.59326823122811145, -0.95103310118353623], [0.0042639147861471827, -0.13933556022696036]], [[0.23506161663644898, 0.096527566156159539], [0.13022434812901329, 0.41750247945599828], [-0.46552390496676921, 0.91560258175534237]]], [[[-0.15660691951419681, 0.75614698527591218], [-0.072826502308464214, 0.62496483297284411], [-0.3142114095880375, -0.48443700594914252]], [[-0.46495501679844131, -0.54061679138185648], [0.81908281754326562, 0.8146196435785853], [-0.98204264176975697, 0.97756918085699551]], [[-0.091698985972450853, 0.48758775780312913], [-0.77203842477023277, 0.65406659823571522], [0.080925914517088859, -0.16672083508601676]], [[0.049525910723174027, -0.94944624152301027], [0.45180068025520881, 0.63961536124475726], [-0.57795077282453455, 0.61656316598467287]]]]),self.functionspace)
5967          self.failUnless(isinstance(res,Data),"wrong type of result.")
5968          self.failUnlessEqual(res.getShape(),(3, 4, 3, 2),"wrong shape of result.")
5969          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5970       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5971       def test_transpose_constData_rank4_offset3(self):
5972          arg=Data(numarray.array([[[[-0.52141273307449154, -0.83929977632806896, -0.31902270452335513, 0.79665228423666079], [-0.30077572285955645, 0.24229518193839339, 0.91790350449627489, -0.25374653431343952], [-0.23356898033553941, 0.56721098117836743, 0.97316407264831328, -0.166067557334723]], [[-0.040908002983164549, 0.85581284787935563, -0.42981166479977229, 0.19934426615375656], [0.60764048518567293, 0.60051343907877519, -0.29480724585301155, -0.50949402827825008], [0.41819323746109816, -0.40641240097303255, 0.72766403087786813, 0.75161850950077302]]], [[[0.84909119687341494, 0.096983123743885402, 0.78889022930311126, 0.92856811779567971], [0.79843424835198196, 0.86978258523723206, -0.0066347882980821726, -0.19013205984594506], [-0.609421546922853, -0.9856086946541267, 0.24658983362852505, -0.92045223577964919]], [[-0.92473724556297165, 0.80123098001545623, 0.98058353955443978, 0.90668805371963557], [0.098685567085265768, -0.48364223799443584, 0.75585568137986692, 0.73201973380740815], [-0.1944600998500754, 0.5871839497933653, -0.44282997348843978, 0.68118761183728993]]], [[[-0.99507882663539826, -0.26609145039959969, 0.030024200934443801, -0.52303304466657075], [0.24431774917342652, 0.79035097476813365, 0.48069117907454184, -0.18360982112260693], [-0.31923284946487951, 0.4736754145799531, 0.047841289025573719, 0.18825437106135445]], [[-0.86362123608515495, -0.97264093101084081, 0.28867583994022872, 0.77433272790107366], [0.6346898892416557, 0.16172500867356354, -0.86962243714176268, -0.58276863176407767], [0.98135568353256208, -0.45535575203409961, -0.29359155368758638, 0.28638172754798341]]]]),self.functionspace)
5973          res=transpose(arg,3)
5974          ref=Data(numarray.array([[[[-0.52141273307449154, -0.30077572285955645, -0.23356898033553941], [-0.040908002983164549, 0.60764048518567293, 0.41819323746109816]], [[0.84909119687341494, 0.79843424835198196, -0.609421546922853], [-0.92473724556297165, 0.098685567085265768, -0.1944600998500754]], [[-0.99507882663539826, 0.24431774917342652, -0.31923284946487951], [-0.86362123608515495, 0.6346898892416557, 0.98135568353256208]]], [[[-0.83929977632806896, 0.24229518193839339, 0.56721098117836743], [0.85581284787935563, 0.60051343907877519, -0.40641240097303255]], [[0.096983123743885402, 0.86978258523723206, -0.9856086946541267], [0.80123098001545623, -0.48364223799443584, 0.5871839497933653]], [[-0.26609145039959969, 0.79035097476813365, 0.4736754145799531], [-0.97264093101084081, 0.16172500867356354, -0.45535575203409961]]], [[[-0.31902270452335513, 0.91790350449627489, 0.97316407264831328], [-0.42981166479977229, -0.29480724585301155, 0.72766403087786813]], [[0.78889022930311126, -0.0066347882980821726, 0.24658983362852505], [0.98058353955443978, 0.75585568137986692, -0.44282997348843978]], [[0.030024200934443801, 0.48069117907454184, 0.047841289025573719], [0.28867583994022872, -0.86962243714176268, -0.29359155368758638]]], [[[0.79665228423666079, -0.25374653431343952, -0.166067557334723], [0.19934426615375656, -0.50949402827825008, 0.75161850950077302]], [[0.92856811779567971, -0.19013205984594506, -0.92045223577964919], [0.90668805371963557, 0.73201973380740815, 0.68118761183728993]], [[-0.52303304466657075, -0.18360982112260693, 0.18825437106135445], [0.77433272790107366, -0.58276863176407767, 0.28638172754798341]]]]),self.functionspace)
5975          self.failUnless(isinstance(res,Data),"wrong type of result.")
5976          self.failUnlessEqual(res.getShape(),(4, 3, 2, 3),"wrong shape of result.")
5977          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5978       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5979       def test_transpose_constData_rank4_offset4(self):
5980          arg=Data(numarray.array([[[[0.11669032343097374, 0.28341863178991522, 0.36241214828868151, -0.08560215446885544], [0.17010320280477753, -0.23484785243370876, 0.52537017022974086, 0.62537416226011411], [0.45730727091713796, -0.0083202340695580634, -0.82551004556823471, 0.89643686628458519]], [[-0.28008564822305959, 0.32394601069303208, 0.45330078548847519, -0.48036164776646229], [-0.39006023397659173, 0.3153683404849541, -0.26898131503979106, 0.80195481437101712], [-0.74384820956423736, -0.21747831692486153, 0.59908167627432674, -0.041350975612570728]]], [[[0.65057968212347927, -0.35439970026212975, -0.94710836622812988, 0.11230875969455778], [0.31908697775133166, -0.95209327810136535, -0.67586428755001382, 0.50625307288857213], [-0.37665219594286015, -0.83900587129744575, 0.35137418052980207, 0.41253459721425978]], [[0.36222029822986723, -0.1682017102331097, 0.16724749033810471, -0.045560191691116358], [0.1408126135381178, 0.33279136286718436, 0.098208087565660573, -0.55465634242608441], [0.44936996356416992, -0.9035330938984163, -0.080691409187981789, -0.25890210880784648]]], [[[0.3430200098156595, 0.95669331413565128, -0.54005650467695854, -0.69638636975878887], [0.23184666203843474, 0.35457799800815737, -0.11035729576745301, 0.21677731652893417], [0.64330152381940198, -0.058702985238521466, -0.94443456222587918, -0.41151451705295461]], [[-0.056223161671889788, 0.37074211517923872, -0.41652840869344776, -0.17907498921595488], [0.27601775720460786, 0.017853516785225176, -0.48540226282117449, 0.056532709460667352], [0.81356629339054698, 0.31342153937788741, -0.91433991650147006, -0.98552878390061083]]]]),self.functionspace)
5981          res=transpose(arg,4)
5982          ref=Data(numarray.array([[[[0.11669032343097374, 0.28341863178991522, 0.36241214828868151, -0.08560215446885544], [0.17010320280477753, -0.23484785243370876, 0.52537017022974086, 0.62537416226011411], [0.45730727091713796, -0.0083202340695580634, -0.82551004556823471, 0.89643686628458519]], [[-0.28008564822305959, 0.32394601069303208, 0.45330078548847519, -0.48036164776646229], [-0.39006023397659173, 0.3153683404849541, -0.26898131503979106, 0.80195481437101712], [-0.74384820956423736, -0.21747831692486153, 0.59908167627432674, -0.041350975612570728]]], [[[0.65057968212347927, -0.35439970026212975, -0.94710836622812988, 0.11230875969455778], [0.31908697775133166, -0.95209327810136535, -0.67586428755001382, 0.50625307288857213], [-0.37665219594286015, -0.83900587129744575, 0.35137418052980207, 0.41253459721425978]], [[0.36222029822986723, -0.1682017102331097, 0.16724749033810471, -0.045560191691116358], [0.1408126135381178, 0.33279136286718436, 0.098208087565660573, -0.55465634242608441], [0.44936996356416992, -0.9035330938984163, -0.080691409187981789, -0.25890210880784648]]], [[[0.3430200098156595, 0.95669331413565128, -0.54005650467695854, -0.69638636975878887], [0.23184666203843474, 0.35457799800815737, -0.11035729576745301, 0.21677731652893417], [0.64330152381940198, -0.058702985238521466, -0.94443456222587918, -0.41151451705295461]], [[-0.056223161671889788, 0.37074211517923872, -0.41652840869344776, -0.17907498921595488], [0.27601775720460786, 0.017853516785225176, -0.48540226282117449, 0.056532709460667352], [0.81356629339054698, 0.31342153937788741, -0.91433991650147006, -0.98552878390061083]]]]),self.functionspace)
5983          self.failUnless(isinstance(res,Data),"wrong type of result.")
5984          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5985          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5986       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5987       def test_transpose_expandedData_rank0_offset0(self):
5988          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
5989          arg=msk_arg*(-0.464998323008)+(1.-msk_arg)*(0.842661504847)
5990          res=transpose(arg,0)
5991          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
5992          ref=msk_ref*(-0.464998323008)+(1.-msk_ref)*(0.842661504847)
5993          self.failUnless(isinstance(res,Data),"wrong type of result.")
5994          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5995          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5996       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5997       def test_transpose_expandedData_rank1_offset0(self):
5998          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
5999          arg=msk_arg*numarray.array([-0.93515248951280916, -0.63645299662894583, -0.72032006106062596])+(1.-msk_arg)*numarray.array([0.85731330443781228, 0.27720960254947258, -0.94190591247287814])
6000          res=transpose(arg,0)
6001          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6002          ref=msk_ref*numarray.array([-0.93515248951280916, -0.63645299662894583, -0.72032006106062596])+(1.-msk_ref)*numarray.array([0.85731330443781228, 0.27720960254947258, -0.94190591247287814])
6003          self.failUnless(isinstance(res,Data),"wrong type of result.")
6004          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
6005          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6006       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6007       def test_transpose_expandedData_rank1_offset1(self):
6008          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6009          arg=msk_arg*numarray.array([0.45790263146770438, 0.33433219849137918, 0.37200574526317576])+(1.-msk_arg)*numarray.array([-0.75528597960251331, 0.47992806140429534, 0.5673613000647284])
6010          res=transpose(arg,1)
6011          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6012          ref=msk_ref*numarray.array([0.45790263146770438, 0.33433219849137918, 0.37200574526317576])+(1.-msk_ref)*numarray.array([-0.75528597960251331, 0.47992806140429534, 0.5673613000647284])
6013          self.failUnless(isinstance(res,Data),"wrong type of result.")
6014          self.failUnlessEqual(res.getShape(),(3,),"wrong shape of result.")
6015          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6016       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6017       def test_transpose_expandedData_rank2_offset0(self):
6018          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6019          arg=msk_arg*numarray.array([[-0.53704721440444847, 0.61203953798930444, 0.85727280004308493, 0.4377187379856915, -0.063934854409582575], [0.62806224461388704, 0.83664645182853792, -0.72466823082490794, -0.2037872685625377, 0.19137745291903485], [0.96277548564078264, -0.091657304567904996, 0.36279787910690731, 0.6629159707207255, -0.44957509633007775], [0.27694065166979032, -0.40566467935404371, -0.68230951496025294, -0.28933816472920992, 0.8200698367653243]])+(1.-msk_arg)*numarray.array([[0.45375160446492946, 0.4757763372891195, 0.73822215623688892, 0.90125927956355345, 0.51284267833736674], [-0.36203552633408687, -0.47778674559695666, -0.15474129256023361, 0.57238037773730244, 0.94217455361631708], [-0.6488839277687366, 0.44180578636353141, 0.545573933661059, 0.64824452832079249, -0.2705135007008721], [0.086042778893174798, 0.86395549252612658, 0.54598774936213412, 0.18350957802415713, -0.84816627288593338]])
6020          res=transpose(arg,0)
6021          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6022          ref=msk_ref*numarray.array([[-0.53704721440444847, 0.61203953798930444, 0.85727280004308493, 0.4377187379856915, -0.063934854409582575], [0.62806224461388704, 0.83664645182853792, -0.72466823082490794, -0.2037872685625377, 0.19137745291903485], [0.96277548564078264, -0.091657304567904996, 0.36279787910690731, 0.6629159707207255, -0.44957509633007775], [0.27694065166979032, -0.40566467935404371, -0.68230951496025294, -0.28933816472920992, 0.8200698367653243]])+(1.-msk_ref)*numarray.array([[0.45375160446492946, 0.4757763372891195, 0.73822215623688892, 0.90125927956355345, 0.51284267833736674], [-0.36203552633408687, -0.47778674559695666, -0.15474129256023361, 0.57238037773730244, 0.94217455361631708], [-0.6488839277687366, 0.44180578636353141, 0.545573933661059, 0.64824452832079249, -0.2705135007008721], [0.086042778893174798, 0.86395549252612658, 0.54598774936213412, 0.18350957802415713, -0.84816627288593338]])
6023          self.failUnless(isinstance(res,Data),"wrong type of result.")
6024          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6025          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6026       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6027       def test_transpose_expandedData_rank2_offset1(self):
6028          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6029          arg=msk_arg*numarray.array([[-0.32580216273561802, 0.88258181859689411, -0.31772866396073574, 0.27627930667308154, -0.088429805468721812], [0.99335510106820202, 0.19340185580001501, 0.091626824903613624, -0.83323166636627199, -0.60695824987136238], [0.14618868726964851, -0.40313708009836602, -0.41526874325398389, -0.71664007199572732, 0.53157204714956818], [0.65271418059585451, 0.7010524959749973, -0.73193701119154175, -0.19024209620515653, 0.84128736160113271]])+(1.-msk_arg)*numarray.array([[-0.20206353179328307, 0.35713518346467343, 0.6228740908405952, 0.30894459291684706, 0.047716301598745847], [-0.52923853056818992, -0.21887853121329703, 0.060697225764464902, 0.44776948837240549, 0.28926865496068621], [0.45738136318010469, 0.93446336677291897, 0.79568100664793207, 0.09096636683455861, 0.60967354629925286], [-0.88687370297859092, 0.76071587077257563, 0.55798705838929408, -0.72961818946498069, -0.43832456514333074]])
6030          res=transpose(arg,1)
6031          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6032          ref=msk_ref*numarray.array([[-0.32580216273561802, 0.99335510106820202, 0.14618868726964851, 0.65271418059585451], [0.88258181859689411, 0.19340185580001501, -0.40313708009836602, 0.7010524959749973], [-0.31772866396073574, 0.091626824903613624, -0.41526874325398389, -0.73193701119154175], [0.27627930667308154, -0.83323166636627199, -0.71664007199572732, -0.19024209620515653], [-0.088429805468721812, -0.60695824987136238, 0.53157204714956818, 0.84128736160113271]])+(1.-msk_ref)*numarray.array([[-0.20206353179328307, -0.52923853056818992, 0.45738136318010469, -0.88687370297859092], [0.35713518346467343, -0.21887853121329703, 0.93446336677291897, 0.76071587077257563], [0.6228740908405952, 0.060697225764464902, 0.79568100664793207, 0.55798705838929408], [0.30894459291684706, 0.44776948837240549, 0.09096636683455861, -0.72961818946498069], [0.047716301598745847, 0.28926865496068621, 0.60967354629925286, -0.43832456514333074]])
6033          self.failUnless(isinstance(res,Data),"wrong type of result.")
6034          self.failUnlessEqual(res.getShape(),(5, 4),"wrong shape of result.")
6035          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6036       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6037       def test_transpose_expandedData_rank2_offset2(self):
6038          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6039          arg=msk_arg*numarray.array([[-0.97403318737416011, 0.54001074266784244, -0.67257310766949741, -0.96103153788957196, -0.090600621848506036], [0.8012530387117236, -0.46233200285581977, -0.93711608690024262, -0.84456531095899678, 0.25368308422261365], [0.17120901507941344, -0.039509505335912243, 0.26212105744531833, 0.44137638362107534, 0.068065142614604168], [0.88476743417179837, -0.94424338152961318, 0.32121853448672133, -0.41052967402945106, 0.63834170539248025]])+(1.-msk_arg)*numarray.array([[0.83834016279533419, 0.87758908559916393, -0.87142410558147954, 0.75081011516190665, 0.38788552560538037], [0.56389050328386947, 0.68360899469026748, 0.15224375501252863, 0.3878626742528275, 0.808658442259099], [0.95751078857047456, -0.4485866232585427, -0.057922467649792919, 0.67058305132721951, 0.4170761862507304], [-0.83468036775004095, -0.42590581548764872, 0.33806350887148717, 0.92324742714838015, 0.86739002484873473]])
6040          res=transpose(arg,2)
6041          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6042          ref=msk_ref*numarray.array([[-0.97403318737416011, 0.54001074266784244, -0.67257310766949741, -0.96103153788957196, -0.090600621848506036], [0.8012530387117236, -0.46233200285581977, -0.93711608690024262, -0.84456531095899678, 0.25368308422261365], [0.17120901507941344, -0.039509505335912243, 0.26212105744531833, 0.44137638362107534, 0.068065142614604168], [0.88476743417179837, -0.94424338152961318, 0.32121853448672133, -0.41052967402945106, 0.63834170539248025]])+(1.-msk_ref)*numarray.array([[0.83834016279533419, 0.87758908559916393, -0.87142410558147954, 0.75081011516190665, 0.38788552560538037], [0.56389050328386947, 0.68360899469026748, 0.15224375501252863, 0.3878626742528275, 0.808658442259099], [0.95751078857047456, -0.4485866232585427, -0.057922467649792919, 0.67058305132721951, 0.4170761862507304], [-0.83468036775004095, -0.42590581548764872, 0.33806350887148717, 0.92324742714838015, 0.86739002484873473]])
6043          self.failUnless(isinstance(res,Data),"wrong type of result.")
6044          self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6045          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6046       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6047       def test_transpose_expandedData_rank3_offset0(self):
6048          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6049          arg=msk_arg*numarray.array([[[-0.028166702102059515, -0.65351279092816994], [0.95298016917902295, -0.94116303047578986]], [[0.95567274481534303, -0.92003120295127805], [0.42765976432858976, -0.31983322718682206]], [[0.6594701854374565, 0.93364717548894505], [0.43942332156329322, -0.61290767453893036]], [[-0.018980262942142057, 0.58083925333713826], [0.34100232100453409, -0.66544629598076988]], [[0.74749657732448926, -0.076590201414883596], [-0.080101944121035551, 0.46279559877354726]], [[-0.30894045650367352, 0.32520823197623239], [-0.76166037545395082, -0.85094509752834857]]])+(1.-msk_arg)*numarray.array([[[0.21529172013404407, 0.17618688196541799], [-0.15693875160198978, 0.2300388702556555]], [[-0.14355628056799907, 0.097284390186505698], [0.70840494470572057, -0.39686655898757484]], [[0.39869343017412806, -0.1175308671433728], [-0.68320739412614229, -0.80868375226463374]], [[-0.098983144871312101, -0.084826511475350808], [-0.67115518288588816, 0.88295863571073507]], [[-0.66948047549080814, 0.76395211978036848], [0.71116659904241653, -0.62357374862249104]], [[-0.47845456014444587, -0.18838396364199839], [-0.89361492901920725, -0.60664644922995437]]])
6050          res=transpose(arg,0)
6051          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6052          ref=msk_ref*numarray.array([[[-0.028166702102059515, -0.65351279092816994], [0.95298016917902295, -0.94116303047578986]], [[0.95567274481534303, -0.92003120295127805], [0.42765976432858976, -0.31983322718682206]], [[0.6594701854374565, 0.93364717548894505], [0.43942332156329322, -0.61290767453893036]], [[-0.018980262942142057, 0.58083925333713826], [0.34100232100453409, -0.66544629598076988]], [[0.74749657732448926, -0.076590201414883596], [-0.080101944121035551, 0.46279559877354726]], [[-0.30894045650367352, 0.32520823197623239], [-0.76166037545395082, -0.85094509752834857]]])+(1.-msk_ref)*numarray.array([[[0.21529172013404407, 0.17618688196541799], [-0.15693875160198978, 0.2300388702556555]], [[-0.14355628056799907, 0.097284390186505698], [0.70840494470572057, -0.39686655898757484]], [[0.39869343017412806, -0.1175308671433728], [-0.68320739412614229, -0.80868375226463374]], [[-0.098983144871312101, -0.084826511475350808], [-0.67115518288588816, 0.88295863571073507]], [[-0.66948047549080814, 0.76395211978036848], [0.71116659904241653, -0.62357374862249104]], [[-0.47845456014444587, -0.18838396364199839], [-0.89361492901920725, -0.60664644922995437]]])
6053          self.failUnless(isinstance(res,Data),"wrong type of result.")
6054          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6055          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6056       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6057       def test_transpose_expandedData_rank3_offset1(self):
6058          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6059          arg=msk_arg*numarray.array([[[-0.65212850444869774, -0.67427825613144465], [0.032515841309460392, -0.070453441121938409]], [[-0.44405818865607904, -0.88066476407580097], [-0.93943889067471176, -0.18440508636169772]], [[0.50229407654290581, -0.46720545488262188], [-0.12305085433257457, 0.43760534985372135]], [[-0.34034328160142824, -0.33974758283591244], [-0.10359700187580767, -0.47619370131541672]], [[0.99560014491745208, 0.60433461317408632], [-0.01200102407520931, -0.56878679528667964]], [[0.071244629477601462, 0.47885889090888267], [0.55063383124273013, -0.98807819331889735]]])+(1.-msk_arg)*numarray.array([[[-0.61574370477685192, -0.33843489935062609], [-0.24744346254201832, -0.99244383369104638]], [[-0.47705335491139178, 0.59873718107100449], [0.95001518342138969, -0.45469199010386396]], [[0.82537151930411401, 0.78306864563067369], [-0.29781496093360582, -0.1389059510802535]], [[-0.15187600029441217, 0.19148463548052108], [-0.068458630473290594, -0.17373178799506772]], [[0.9606079373215417, 0.53866671148384992], [0.12671344872674917, 0.63991537162253498]], [[0.14421305024721365, 0.34646429257341271], [0.060890878638466983, -0.12837501000317642]]])
6060          res=transpose(arg,1)
6061          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6062          ref=msk_ref*numarray.array([[[-0.65212850444869774, -0.44405818865607904, 0.50229407654290581, -0.34034328160142824, 0.99560014491745208, 0.071244629477601462], [-0.67427825613144465, -0.88066476407580097, -0.46720545488262188, -0.33974758283591244, 0.60433461317408632, 0.47885889090888267]], [[0.032515841309460392, -0.93943889067471176, -0.12305085433257457, -0.10359700187580767, -0.01200102407520931, 0.55063383124273013], [-0.070453441121938409, -0.18440508636169772, 0.43760534985372135, -0.47619370131541672, -0.56878679528667964, -0.98807819331889735]]])+(1.-msk_ref)*numarray.array([[[-0.61574370477685192, -0.47705335491139178, 0.82537151930411401, -0.15187600029441217, 0.9606079373215417, 0.14421305024721365], [-0.33843489935062609, 0.59873718107100449, 0.78306864563067369, 0.19148463548052108, 0.53866671148384992, 0.34646429257341271]], [[-0.24744346254201832, 0.95001518342138969, -0.29781496093360582, -0.068458630473290594, 0.12671344872674917, 0.060890878638466983], [-0.99244383369104638, -0.45469199010386396, -0.1389059510802535, -0.17373178799506772, 0.63991537162253498, -0.12837501000317642]]])
6063          self.failUnless(isinstance(res,Data),"wrong type of result.")
6064          self.failUnlessEqual(res.getShape(),(2, 2, 6),"wrong shape of result.")
6065          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6066       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6067       def test_transpose_expandedData_rank3_offset2(self):
6068          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6069          arg=msk_arg*numarray.array([[[-0.53903371687770951, 0.50880456508237493], [-0.97321323339217702, -0.70984704429690315]], [[-0.29984792204722388, -0.29952593289024687], [-0.51539132133232002, 0.80947522826389551]], [[-0.25606147050458139, -0.76851985240107257], [0.18298989771828822, 0.21458019480730894]], [[-0.85320820766677063, 0.130626211216055], [-0.52862240159366403, 0.054039476584147428]], [[-0.12379893481755899, 0.75923360070874324], [0.43042980136306119, 0.82098581908338986]], [[-0.1063388172840285, -0.19723460169468043], [0.56520147884081684, 0.11926890514299293]]])+(1.-msk_arg)*numarray.array([[[0.87041473035143047, -0.61864214268461115], [-0.51123703040419999, 0.79067050331554145]], [[-0.93665451783569065, -0.84017435553820263], [0.15157488183009526, -0.65788579051674634]], [[-0.50181333219235946, -0.0813086873482185], [0.75325943197873957, -0.89460545835219318]], [[0.39727223404279655, 0.21557493453719245], [0.48497226618136491, -0.55181527987004331]], [[0.56856268337500926, -0.59250828867398297], [0.97866925940743577, 0.28718934799498919]], [[0.451728712560445, -0.052194155928735775], [0.62325926405792464, 0.92529013965526552]]])
6070          res=transpose(arg,2)
6071          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6072          ref=msk_ref*numarray.array([[[-0.53903371687770951, -0.97321323339217702], [-0.29984792204722388, -0.51539132133232002], [-0.25606147050458139, 0.18298989771828822], [-0.85320820766677063, -0.52862240159366403], [-0.12379893481755899, 0.43042980136306119], [-0.1063388172840285, 0.56520147884081684]], [[0.50880456508237493, -0.70984704429690315], [-0.29952593289024687, 0.80947522826389551], [-0.76851985240107257, 0.21458019480730894], [0.130626211216055, 0.054039476584147428], [0.75923360070874324, 0.82098581908338986], [-0.19723460169468043, 0.11926890514299293]]])+(1.-msk_ref)*numarray.array([[[0.87041473035143047, -0.51123703040419999], [-0.93665451783569065, 0.15157488183009526], [-0.50181333219235946, 0.75325943197873957], [0.39727223404279655, 0.48497226618136491], [0.56856268337500926, 0.97866925940743577], [0.451728712560445, 0.62325926405792464]], [[-0.61864214268461115, 0.79067050331554145], [-0.84017435553820263, -0.65788579051674634], [-0.0813086873482185, -0.89460545835219318], [0.21557493453719245, -0.55181527987004331], [-0.59250828867398297, 0.28718934799498919], [-0.052194155928735775, 0.92529013965526552]]])
6073          self.failUnless(isinstance(res,Data),"wrong type of result.")
6074          self.failUnlessEqual(res.getShape(),(2, 6, 2),"wrong shape of result.")
6075          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6076       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6077       def test_transpose_expandedData_rank3_offset3(self):
6078          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6079          arg=msk_arg*numarray.array([[[0.95280346387411785, -0.8597936044370964], [0.75874743984327697, -0.72169276926585768]], [[-0.3937382062339374, 0.30993043294385125], [0.71442785036443235, -0.028619926104225257]], [[0.8839593043072036, 0.48825441905213762], [-0.56975067316864059, 0.326471333947842]], [[0.90769090486825044, -0.96229536718804543], [-0.63035004993415056, 0.69308286490365645]], [[0.43681916733085657, -0.83959070890106169], [-0.85007498666880044, 0.48184432125333387]], [[-0.42218969748124069, -0.12552895993038238], [0.09899649175538161, 0.73382708590795431]]])+(1.-msk_arg)*numarray.array([[[0.6981920443190599, -0.81522673360912545], [0.74644719606925092, -0.92980760296799514]], [[-0.56060385477886832, -0.48194379298251722], [0.052156709810996515, 0.63054816998533902]], [[0.19473488250147031, 0.47827111373305309], [-0.70026589874588874, -0.9657868039697437]], [[0.38957118187307449, -0.99428804994986497], [-0.73816985888014042, 0.77756988638402524]], [[0.65927654078500075, -0.74578044179329828], [0.77276372440199648, 0.92719242860572515]], [[0.6227560684724025, -0.57739027506080065], [0.76208509145720682, -0.54371480995667154]]])
6080          res=transpose(arg,3)
6081          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6082          ref=msk_ref*numarray.array([[[0.95280346387411785, -0.8597936044370964], [0.75874743984327697, -0.72169276926585768]], [[-0.3937382062339374, 0.30993043294385125], [0.71442785036443235, -0.028619926104225257]], [[0.8839593043072036, 0.48825441905213762], [-0.56975067316864059, 0.326471333947842]], [[0.90769090486825044, -0.96229536718804543], [-0.63035004993415056, 0.69308286490365645]], [[0.43681916733085657, -0.83959070890106169], [-0.85007498666880044, 0.48184432125333387]], [[-0.42218969748124069, -0.12552895993038238], [0.09899649175538161, 0.73382708590795431]]])+(1.-msk_ref)*numarray.array([[[0.6981920443190599, -0.81522673360912545], [0.74644719606925092, -0.92980760296799514]], [[-0.56060385477886832, -0.48194379298251722], [0.052156709810996515, 0.63054816998533902]], [[0.19473488250147031, 0.47827111373305309], [-0.70026589874588874, -0.9657868039697437]], [[0.38957118187307449, -0.99428804994986497], [-0.73816985888014042, 0.77756988638402524]], [[0.65927654078500075, -0.74578044179329828], [0.77276372440199648, 0.92719242860572515]], [[0.6227560684724025, -0.57739027506080065], [0.76208509145720682, -0.54371480995667154]]])
6083          self.failUnless(isinstance(res,Data),"wrong type of result.")
6084          self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6085          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6086       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6087       def test_transpose_expandedData_rank4_offset0(self):
6088          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6089          arg=msk_arg*numarray.array([[[[0.81869402324079421, -0.010426790790318163, 0.81602756109052454, -0.62442093894574113], [0.7078561438909603, -0.82727300588647346, -0.32523384907570807, -0.79543723372576491], [-0.84666126535799702, 0.36665427129032513, -0.20239160816273793, -0.24432094759297329]], [[0.12528190952985629, -0.6654993988168012, -0.8633381499204662, -0.3440703159080063], [-0.072645065869830994, 0.66722151643468619, 0.52271358494400388, -0.10066051348077676], [-0.23843351249380373, -0.46559440824373644, 0.48690780786997512, 0.93026389486527483]]], [[[0.7731713364251056, -0.70940874010004218, 0.58775645365261608, -0.71235361850702072], [0.48924929297027386, -0.58429249738685018, 0.51174147131730363, -0.39624667123742441], [0.55054179653627267, -0.93110569532221255, -0.040048710470845794, -0.73129453854897242]], [[-0.29357609501371429, -0.10177896805633635, 0.68084634100814423, 0.67164277915926496], [-0.30707764379481284, 0.52277794839314251, -0.63944100965934192, -0.69075328601591424], [0.76020217943844881, 0.84392878869840304, -0.63894762575037611, 0.09148097151184742]]], [[[-0.45340171975626831, 0.018489889194636566, -0.2475409727065343, 0.92146815788657377], [-0.43178988675210483, -0.63868466704965488, -0.70615203684716543, -0.081156395091610545], [0.03023740091439775, 0.038082297458140957, 0.2727792900915651, -0.31207470093614775]], [[0.76156061599481517, -0.67078395293486448, 0.7748140039581779, -0.22794668580099264], [-0.9013816625854838, 0.17470357313303775, 0.39122278674109046, 0.93137139452775419], [-0.090956547472199167, 0.59685604960025573, 0.73105963808354812, -0.15603573236847224]]]])+(1.-msk_arg)*numarray.array([[[[-0.76725648877324404, 0.015245757133742321, 0.99314477995261696, -0.61973001840063491], [0.7001718430223165, 0.33363829219788377, -0.85614009511728661, -0.40303672744138597], [-0.74271016814121671, -0.16466169430980071, 0.53923902460068729, -0.87899110008395831]], [[0.57954472900890774, 0.41148609583801266, -0.43921064372789376, 0.087038409738692923], [-0.35892851493259581, -0.87654055619137194, 0.42100369956297712, -0.23061186655103505], [-0.044855086158764435, -0.50562286197909656, -0.28948250699820388, -0.44514000463666825]]], [[[-0.1817422694873263, -0.74014543691996804, -0.51641677925651042, -0.52013880734377516], [-0.02135821913146585, -0.071010347161462262, 0.96069451747209866, -0.91732353712862746], [0.90794388971530604, -0.93990200249118661, -0.22015779472787766, -0.015902129610877669]], [[0.92570703703005042, 0.0257172426216985, 0.48500303890414487, -0.019695182871451111], [-0.33500929720249673, -0.026389937578426448, 0.13852674725578984, -0.31028487034205465], [0.30692937773320339, -0.10312813725950276, 0.65945732601603391, -0.94530407645713321]]], [[[-0.88901000279791886, 0.26375878520993168, 0.87307830915304141, -0.99476930566962785], [0.96889278203485585, 0.24278528683413647, 0.66840991781409631, -0.45990095836976974], [0.59021226623571255, 0.4865764356278135, 0.17396249549551235, 0.0099840509722524118]], [[-0.72549311651874393, -0.18428823210680001, 0.46813884602522293, 0.84243096795311501], [-0.2928051310524864, -0.3915081581700719, 0.80673877426477048, -0.34983079791056682], [0.62283520201605325, -0.281811909243179, -0.97932300041287434, 0.98834191128607873]]]])
6090          res=transpose(arg,0)
6091          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6092          ref=msk_ref*numarray.array([[[[0.81869402324079421, -0.010426790790318163, 0.81602756109052454, -0.62442093894574113], [0.7078561438909603, -0.82727300588647346, -0.32523384907570807, -0.79543723372576491], [-0.84666126535799702, 0.36665427129032513, -0.20239160816273793, -0.24432094759297329]], [[0.12528190952985629, -0.6654993988168012, -0.8633381499204662, -0.3440703159080063], [-0.072645065869830994, 0.66722151643468619, 0.52271358494400388, -0.10066051348077676], [-0.23843351249380373, -0.46559440824373644, 0.48690780786997512, 0.93026389486527483]]], [[[0.7731713364251056, -0.70940874010004218, 0.58775645365261608, -0.71235361850702072], [0.48924929297027386, -0.58429249738685018, 0.51174147131730363, -0.39624667123742441], [0.55054179653627267, -0.93110569532221255, -0.040048710470845794, -0.73129453854897242]], [[-0.29357609501371429, -0.10177896805633635, 0.68084634100814423, 0.67164277915926496], [-0.30707764379481284, 0.52277794839314251, -0.63944100965934192, -0.69075328601591424], [0.76020217943844881, 0.84392878869840304, -0.63894762575037611, 0.09148097151184742]]], [[[-0.45340171975626831, 0.018489889194636566, -0.2475409727065343, 0.92146815788657377], [-0.43178988675210483, -0.63868466704965488, -0.70615203684716543, -0.081156395091610545], [0.03023740091439775, 0.038082297458140957, 0.2727792900915651, -0.31207470093614775]], [[0.76156061599481517, -0.67078395293486448, 0.7748140039581779, -0.22794668580099264], [-0.9013816625854838, 0.17470357313303775, 0.39122278674109046, 0.93137139452775419], [-0.090956547472199167, 0.59685604960025573, 0.73105963808354812, -0.15603573236847224]]]])+(1.-msk_ref)*numarray.array([[[[-0.76725648877324404, 0.015245757133742321, 0.99314477995261696, -0.61973001840063491], [0.7001718430223165, 0.33363829219788377, -0.85614009511728661, -0.40303672744138597], [-0.74271016814121671, -0.16466169430980071, 0.53923902460068729, -0.87899110008395831]], [[0.57954472900890774, 0.41148609583801266, -0.43921064372789376, 0.087038409738692923], [-0.35892851493259581, -0.87654055619137194, 0.42100369956297712, -0.23061186655103505], [-0.044855086158764435, -0.50562286197909656, -0.28948250699820388, -0.44514000463666825]]], [[[-0.1817422694873263, -0.74014543691996804, -0.51641677925651042, -0.52013880734377516], [-0.02135821913146585, -0.071010347161462262, 0.96069451747209866, -0.91732353712862746], [0.90794388971530604, -0.93990200249118661, -0.22015779472787766, -0.015902129610877669]], [[0.92570703703005042, 0.0257172426216985, 0.48500303890414487, -0.019695182871451111], [-0.33500929720249673, -0.026389937578426448, 0.13852674725578984, -0.31028487034205465], [0.30692937773320339, -0.10312813725950276, 0.65945732601603391, -0.94530407645713321]]], [[[-0.88901000279791886, 0.26375878520993168, 0.87307830915304141, -0.99476930566962785], [0.96889278203485585, 0.24278528683413647, 0.66840991781409631, -0.45990095836976974], [0.59021226623571255, 0.4865764356278135, 0.17396249549551235, 0.0099840509722524118]], [[-0.72549311651874393, -0.18428823210680001, 0.46813884602522293, 0.84243096795311501], [-0.2928051310524864, -0.3915081581700719, 0.80673877426477048, -0.34983079791056682], [0.62283520201605325, -0.281811909243179, -0.97932300041287434, 0.98834191128607873]]]])
6093          self.failUnless(isinstance(res,Data),"wrong type of result.")
6094          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6095          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6096       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6097       def test_transpose_expandedData_rank4_offset1(self):
6098          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6099          arg=msk_arg*numarray.array([[[[-0.048819050540667597, 0.073412941081060001, -0.40916233029580451, 0.21381417778795631], [-0.58854827092304496, -0.10595136154093288, 0.65807232040559627, -0.78658005066180747], [0.37852953741585571, 0.12509013527419599, -0.36227259064010608, -0.27531657009900079]], [[0.056710591592378679, -0.20311477289364799, 0.39216009496062365, -0.91696789909839316], [0.43891932098900677, 0.85835144280886588, 0.21708783687303357, 0.47944129991865925], [-0.77859295994328326, -0.89854616004745735, -0.70928105672056652, -0.22941633500484326]]], [[[-0.35619990493958698, -0.38033219286105613, -0.49978678208123384, 0.83945371576602823], [-0.10429686318649911, -0.81465699109225698, 0.59393092517497026, -0.79906537251314713], [0.7420938505437078, 0.73261882071497886, -0.10903051376573414, -0.5686807497125923]], [[-0.094547564433882236, -0.97404312569854379, -0.16451419129417855, -0.70240379827910004], [0.055913546460434782, -0.83760832378688788, -0.24958459029717406, -0.44869628045710996], [-0.048521229840842395, 0.61004675252622254, -0.13860530037680796, 0.5892536901326737]]], [[[-0.43323685996283157, -0.74007855630164698, -0.12315471559872337, 0.71630276794437697], [-0.13423126080114467, 0.0043841611942150305, -0.98228190092937928, 0.50642602679381654], [0.72255474223581939, 0.6626322112516827, 0.045475320133810948, 0.26634612620024245]], [[0.7931643774350805, -0.18761453634299019, -0.64809591125487187, 0.70505567194231911], [-0.97131926769839128, 0.75199848500163458, -0.10828884981536269, 0.15623566644399367], [0.081763341002275336, 0.47364100065457126, 0.2408074003101881, -0.66981995170023922]]]])+(1.-msk_arg)*numarray.array([[[[0.47400462735905013, -0.39852798401855583, -0.74339114670731865, -0.41503683234739563], [-0.88150113600440716, 0.2018961746493857, 0.12340831119303108, -0.76286870406502727], [0.17829549553710033, -0.18035617671767579, -0.16380181203650523, 0.52789007152254586]], [[0.086111180954433042, -0.014802214581463469, -0.38619388566642199, 0.38393628724858408], [0.0097951751768969864, 0.44723053766673959, 0.6727209440204629, 0.18396480207247068], [0.79274034237746438, -0.61295051071113882, 0.205553795490661, -0.69552317318207568]]], [[[0.51700025913065595, -0.8876467818799203, -0.33322253102932264, -0.47916390987562218], [-0.88418537566938427, -0.77615995413851047, -0.45080523080120249, 0.3149523527324456], [0.23109729798985224, 0.58566732186982895, 0.64258132305459936, -0.22365920215162993]], [[-0.81644226040156931, 0.22207689422893795, -0.13844945472623937, -0.69450532786607311], [-0.77892116009689705, 0.10954889018386771, -0.54347347121331158, 0.91839991786786768], [0.79380220203641194, -0.01500796749763933, 0.91768540519214126, 0.70863353126169581]]], [[[-0.37257475168970489, 0.2687751640717484, -0.77942457666399778, -0.6977200237953074], [-0.31231185864363842, -0.84898191509909737, 0.42669863567131583, -0.69386713636951214], [-0.50773887932678496, -0.68528044041981206, -0.62466973412337401, 0.74029103511113625]], [[-0.073842497656119388, 0.20375191445595964, 0.390412002575941, -0.99051909465152188], [0.58963517415554501, 0.27807727878994792, 0.4699163088851368, 0.84953208550268866], [-0.49056115579247717, 0.33082241761331832, 0.8370840519299958, -0.65193906496406462]]]])
6100          res=transpose(arg,1)
6101          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6102          ref=msk_ref*numarray.array([[[[-0.048819050540667597, -0.35619990493958698, -0.43323685996283157], [0.073412941081060001, -0.38033219286105613, -0.74007855630164698], [-0.40916233029580451, -0.49978678208123384, -0.12315471559872337], [0.21381417778795631, 0.83945371576602823, 0.71630276794437697]], [[-0.58854827092304496, -0.10429686318649911, -0.13423126080114467], [-0.10595136154093288, -0.81465699109225698, 0.0043841611942150305], [0.65807232040559627, 0.59393092517497026, -0.98228190092937928], [-0.78658005066180747, -0.79906537251314713, 0.50642602679381654]], [[0.37852953741585571, 0.7420938505437078, 0.72255474223581939], [0.12509013527419599, 0.73261882071497886, 0.6626322112516827], [-0.36227259064010608, -0.10903051376573414, 0.045475320133810948], [-0.27531657009900079, -0.5686807497125923, 0.26634612620024245]]], [[[0.056710591592378679, -0.094547564433882236, 0.7931643774350805], [-0.20311477289364799, -0.97404312569854379, -0.18761453634299019], [0.39216009496062365, -0.16451419129417855, -0.64809591125487187], [-0.91696789909839316, -0.70240379827910004, 0.70505567194231911]], [[0.43891932098900677, 0.055913546460434782, -0.97131926769839128], [0.85835144280886588, -0.83760832378688788, 0.75199848500163458], [0.21708783687303357, -0.24958459029717406, -0.10828884981536269], [0.47944129991865925, -0.44869628045710996, 0.15623566644399367]], [[-0.77859295994328326, -0.048521229840842395, 0.081763341002275336], [-0.89854616004745735, 0.61004675252622254, 0.47364100065457126], [-0.70928105672056652, -0.13860530037680796, 0.2408074003101881], [-0.22941633500484326, 0.5892536901326737, -0.66981995170023922]]]])+(1.-msk_ref)*numarray.array([[[[0.47400462735905013, 0.51700025913065595, -0.37257475168970489], [-0.39852798401855583, -0.8876467818799203, 0.2687751640717484], [-0.74339114670731865, -0.33322253102932264, -0.77942457666399778], [-0.41503683234739563, -0.47916390987562218, -0.6977200237953074]], [[-0.88150113600440716, -0.88418537566938427, -0.31231185864363842], [0.2018961746493857, -0.77615995413851047, -0.84898191509909737], [0.12340831119303108, -0.45080523080120249, 0.42669863567131583], [-0.76286870406502727, 0.3149523527324456, -0.69386713636951214]], [[0.17829549553710033, 0.23109729798985224, -0.50773887932678496], [-0.18035617671767579, 0.58566732186982895, -0.68528044041981206], [-0.16380181203650523, 0.64258132305459936, -0.62466973412337401], [0.52789007152254586, -0.22365920215162993, 0.74029103511113625]]], [[[0.086111180954433042, -0.81644226040156931, -0.073842497656119388], [-0.014802214581463469, 0.22207689422893795, 0.20375191445595964], [-0.38619388566642199, -0.13844945472623937, 0.390412002575941], [0.38393628724858408, -0.69450532786607311, -0.99051909465152188]], [[0.0097951751768969864, -0.77892116009689705, 0.58963517415554501], [0.44723053766673959, 0.10954889018386771, 0.27807727878994792], [0.6727209440204629, -0.54347347121331158, 0.4699163088851368], [0.18396480207247068, 0.91839991786786768, 0.84953208550268866]], [[0.79274034237746438, 0.79380220203641194, -0.49056115579247717], [-0.61295051071113882, -0.01500796749763933, 0.33082241761331832], [0.205553795490661, 0.91768540519214126, 0.8370840519299958], [-0.69552317318207568, 0.70863353126169581, -0.65193906496406462]]]])
6103          self.failUnless(isinstance(res,Data),"wrong type of result.")
6104          self.failUnlessEqual(res.getShape(),(2, 3, 4, 3),"wrong shape of result.")
6105          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6106       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6107       def test_transpose_expandedData_rank4_offset2(self):
6108          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6109          arg=msk_arg*numarray.array([[[[0.82691378813207361, 0.75601412583334637, 0.094339614810351469, 0.65763396579143341], [-0.44936985041624555, -0.17289606057712148, 0.12086007969034407, 0.62148756054888588], [0.48578428300240306, 0.89194298916819159, 0.86381272926337838, 0.44735883641203489]], [[0.47162319912329953, 0.29778028138343382, -0.30446934052440056, -0.63178513980850015], [0.05409344608353428, -0.61756272108637722, -0.58202921087939874, -0.86637478190029915], [-0.67829385566459632, -0.39253263965340746, -0.59914668025155882, 0.12700127706133868]]], [[[0.3588888654790745, 0.66774960005889228, 0.85521153905186287, 0.51165736484563196], [-0.65874992512735631, 0.084203961656897031, 0.74961673296491238, -0.58075019586619026], [-0.34501529484131233, 0.66465972348152458, -0.24819651654841346, -0.45708840913271875]], [[0.29245976088440084, 0.57662066073591745, 0.40824164114989991, 0.72407884827867219], [0.28191567140363394, 0.063388931447958097, -0.60945304700175229, 0.78234647400698476], [0.37494417075446784, -0.94654572471817167, -0.41391209388823347, -0.97295964185973172]]], [[[-0.63131900288607357, -0.57105931030840895, -0.56374452835856648, -0.6412471468563643], [-0.19540229837369916, -0.50813816060939221, 0.51389925106455236, 0.044949365624884718], [-0.83486749693392781, -0.35141697629531454, -0.44109075785843688, 0.69773867500860876]], [[-0.94987265337847737, 0.78768487656758968, -0.98329526131696277, 0.072370998294981614], [-0.8732103855505835, -0.83495361675593815, -0.70019896952723015, -0.52071543626147299], [-0.11199016199767331, -0.93486594678371682, -0.76284657045107118, -0.59436275187568688]]]])+(1.-msk_arg)*numarray.array([[[[0.38319749702248007, 0.47697398105712696, -0.90942599512602085, -0.13951650547575722], [-0.64858191935095366, -0.86686852820081595, 0.091845111612018471, 0.018036867830121261], [-0.68470765521525001, -0.40811641836047685, -0.95877787795297631, -0.43074264171436316]], [[-0.510152208291617, -0.78210832331247904, -0.12147896847076889, -0.15736275503966723], [-0.99101028268449998, 0.93282518490434141, 0.28437255063834943, -0.076952791938787124], [0.43250510058194269, 0.38741829151287588, 0.27260121458743569, 0.74443017737146389]]], [[[0.47620394999223437, -0.56840424059294237, 0.16562963252734408, -0.78125201221835283], [-0.70565615599014198, -0.067105949665969167, 0.67986244720361122, -0.70787219438310989], [-0.63318035645221338, -0.12799625797341685, -0.67916617194550066, -0.50063000672793567]], [[0.2317865255298881, -0.99283720434349632, -0.93836356873230242, -0.086856634026029278], [0.22040654164816265, -0.61546887103786863, 0.62985234823171865, -0.62551669097947116], [-0.93016620410572459, 0.74271380835971024, -0.60113645890759382, -0.09055205949663736]]], [[[0.54017035868478769, 0.4607223920914798, -0.53300577805949878, 0.23732350893260268], [-0.044918040347948107, -0.19688990696396824, -0.38804666415807398, -0.97641750204548328], [-0.85641375056218627, -0.11642557377137686, 0.32552481775546593, 0.065240488269599606]], [[-0.30438043357237166, -0.16435006242306049, -0.4687624402457613, -0.44571103372306298], [0.83549765131007603, -0.86568475111010135, -0.64334402729419216, -0.71457042181838926], [-0.86715709080052794, 0.81179382479499007, 0.4823914387567243, -0.66559992391241551]]]])
6110          res=transpose(arg,2)
6111          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6112          ref=msk_ref*numarray.array([[[[0.82691378813207361, 0.47162319912329953], [0.3588888654790745, 0.29245976088440084], [-0.63131900288607357, -0.94987265337847737]], [[0.75601412583334637, 0.29778028138343382], [0.66774960005889228, 0.57662066073591745], [-0.57105931030840895, 0.78768487656758968]], [[0.094339614810351469, -0.30446934052440056], [0.85521153905186287, 0.40824164114989991], [-0.56374452835856648, -0.98329526131696277]], [[0.65763396579143341, -0.63178513980850015], [0.51165736484563196, 0.72407884827867219], [-0.6412471468563643, 0.072370998294981614]]], [[[-0.44936985041624555, 0.05409344608353428], [-0.65874992512735631, 0.28191567140363394], [-0.19540229837369916, -0.8732103855505835]], [[-0.17289606057712148, -0.61756272108637722], [0.084203961656897031, 0.063388931447958097], [-0.50813816060939221, -0.83495361675593815]], [[0.12086007969034407, -0.58202921087939874], [0.74961673296491238, -0.60945304700175229], [0.51389925106455236, -0.70019896952723015]], [[0.62148756054888588, -0.86637478190029915], [-0.58075019586619026, 0.78234647400698476], [0.044949365624884718, -0.52071543626147299]]], [[[0.48578428300240306, -0.67829385566459632], [-0.34501529484131233, 0.37494417075446784], [-0.83486749693392781, -0.11199016199767331]], [[0.89194298916819159, -0.39253263965340746], [0.66465972348152458, -0.94654572471817167], [-0.35141697629531454, -0.93486594678371682]], [[0.86381272926337838, -0.59914668025155882], [-0.24819651654841346, -0.41391209388823347], [-0.44109075785843688, -0.76284657045107118]], [[0.44735883641203489, 0.12700127706133868], [-0.45708840913271875, -0.97295964185973172], [0.69773867500860876, -0.59436275187568688]]]])+(1.-msk_ref)*numarray.array([[[[0.38319749702248007, -0.510152208291617], [0.47620394999223437, 0.2317865255298881], [0.54017035868478769, -0.30438043357237166]], [[0.47697398105712696, -0.78210832331247904], [-0.56840424059294237, -0.99283720434349632], [0.4607223920914798, -0.16435006242306049]], [[-0.90942599512602085, -0.12147896847076889], [0.16562963252734408, -0.93836356873230242], [-0.53300577805949878, -0.4687624402457613]], [[-0.13951650547575722, -0.15736275503966723], [-0.78125201221835283, -0.086856634026029278], [0.23732350893260268, -0.44571103372306298]]], [[[-0.64858191935095366, -0.99101028268449998], [-0.70565615599014198, 0.22040654164816265], [-0.044918040347948107, 0.83549765131007603]], [[-0.86686852820081595, 0.93282518490434141], [-0.067105949665969167, -0.61546887103786863], [-0.19688990696396824, -0.86568475111010135]], [[0.091845111612018471, 0.28437255063834943], [0.67986244720361122, 0.62985234823171865], [-0.38804666415807398, -0.64334402729419216]], [[0.018036867830121261, -0.076952791938787124], [-0.70787219438310989, -0.62551669097947116], [-0.97641750204548328, -0.71457042181838926]]], [[[-0.68470765521525001, 0.43250510058194269], [-0.63318035645221338, -0.93016620410572459], [-0.85641375056218627, -0.86715709080052794]], [[-0.40811641836047685, 0.38741829151287588], [-0.12799625797341685, 0.74271380835971024], [-0.11642557377137686, 0.81179382479499007]], [[-0.95877787795297631, 0.27260121458743569], [-0.67916617194550066, -0.60113645890759382], [0.32552481775546593, 0.4823914387567243]], [[-0.43074264171436316, 0.74443017737146389], [-0.50063000672793567, -0.09055205949663736], [0.065240488269599606, -0.66559992391241551]]]])
6113          self.failUnless(isinstance(res,Data),"wrong type of result.")
6114          self.failUnlessEqual(res.getShape(),(3, 4, 3, 2),"wrong shape of result.")
6115          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6116       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6117       def test_transpose_expandedData_rank4_offset3(self):
6118          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6119          arg=msk_arg*numarray.array([[[[0.39592710128050279, -0.55774104314693762, -0.48423470649302747, -0.76422840781865142], [-0.2591670352652331, 0.99541668323759569, -0.83698239192598356, 0.74084794787250785], [0.97038843848187195, -0.66014441118024125, 0.11601860624471194, 0.29021218171036289]], [[-0.29112522641519867, 0.90741737147807222, -0.78517346787461673, -0.97664265278956308], [0.601744254232355, 0.57871285223392999, 0.29960791614101967, 0.98160587761504958], [0.095396343619639445, 0.34782416505858937, 0.98084238518207001, 0.024124785450889474]]], [[[0.96051202538975611, 0.0019461682597774477, 0.71371988422553634, -0.78702872554519643], [0.47726434688438446, -0.59697676977046155, 0.35304103751251792, -0.67589923066636959], [-0.24624962841590459, -0.1912365839852217, -0.73438097074611286, 0.80727872707496418]], [[-0.28840574751009385, 0.031539850580448503, 0.35788167669274817, -0.64808386133645568], [0.41225386549101795, -0.90820473251969558, -0.42165815233957415, 0.52738280337139676], [-0.26361766398849196, -0.96851439908289927, 0.7135268472416858, -0.0033944998896155987]]], [[[0.49705705693032343, -0.68418107882504242, 0.75534107818619245, -0.43706485262378525], [-0.12966068338916825, 0.40785296483872568, -0.56030259413712269, 0.70234770172700389], [-0.75927569829449792, 0.59550553155661468, 0.32470137197014548, 0.37521249883666252]], [[-0.28366624151933939, -0.84030769669812355, -0.048771152278094254, -0.40535417224416603], [0.117387083061266, 0.63902057135317447, -0.15131536537197232, 0.48974233899313036], [-0.76796256562696219, 0.30313617306578777, -0.12947794961755998, 0.87242810449971042]]]])+(1.-msk_arg)*numarray.array([[[[-0.83273561728916246, 0.6586806237836822, 0.18717011633395564, 0.54134700314137163], [-0.17261622655109443, -0.7698271628278921, 0.082522134120451174, -0.9686456668158625], [0.85659322772667745, 0.88258417769265685, -0.90078421567685973, -0.16079236971446131]], [[-0.25699388456241978, 0.59186308580113955, 0.9264685280104632, -0.04327095044831708], [0.5877520302531849, -0.44709173568573402, -0.047572457043194127, -0.033943337768506554], [0.55037040402299797, -0.82189006847061807, 0.60414396988862573, -0.75744106716307802]]], [[[0.56239368345061203, 0.8624470912009059, 0.82182985581989865, -0.047317268453788364], [0.10771485975207495, 0.43130536883992177, 0.35241499148644229, 0.67530416534041149], [-0.91399404846452037, 0.11770920968273502, 0.75330471839809721, 0.36386110162155516]], [[-0.53076510188047532, -0.71107046927406747, 0.10648505106425143, -0.52171084969585468], [0.099351602448291887, -0.98635073173793009, -0.17446423890589258, -0.78813890020047728], [-0.098452537069638968, 0.16796348435665065, 0.60563862866662577, -0.22964447365612894]]], [[[-0.80865191845915207, 0.86173993844442487, 0.58683718047690014, 0.87226774195942069], [0.49208787197621606, 0.042775033668111861, -0.52422854054434409, -0.9492660405434501], [0.98019752165811513, -0.33587600943403872, -0.95433847119032134, 0.38950832668615698]], [[0.94021086847410951, -0.84626715926659335, 0.079749886363350342, 0.93232757800797561], [0.14116136886760611, 0.11850640222575848, -0.52697310897756, 0.34303872023440096], [0.11961662549168994, 0.98413976116020851, -0.01193045612675192, -0.84123115238322432]]]])
6120          res=transpose(arg,3)
6121          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6122          ref=msk_ref*numarray.array([[[[0.39592710128050279, -0.2591670352652331, 0.97038843848187195], [-0.29112522641519867, 0.601744254232355, 0.095396343619639445]], [[0.96051202538975611, 0.47726434688438446, -0.24624962841590459], [-0.28840574751009385, 0.41225386549101795, -0.26361766398849196]], [[0.49705705693032343, -0.12966068338916825, -0.75927569829449792], [-0.28366624151933939, 0.117387083061266, -0.76796256562696219]]], [[[-0.55774104314693762, 0.99541668323759569, -0.66014441118024125], [0.90741737147807222, 0.57871285223392999, 0.34782416505858937]], [[0.0019461682597774477, -0.59697676977046155, -0.1912365839852217], [0.031539850580448503, -0.90820473251969558, -0.96851439908289927]], [[-0.68418107882504242, 0.40785296483872568, 0.59550553155661468], [-0.84030769669812355, 0.63902057135317447, 0.30313617306578777]]], [[[-0.48423470649302747, -0.83698239192598356, 0.11601860624471194], [-0.78517346787461673, 0.29960791614101967, 0.98084238518207001]], [[0.71371988422553634, 0.35304103751251792, -0.73438097074611286], [0.35788167669274817, -0.42165815233957415, 0.7135268472416858]], [[0.75534107818619245, -0.56030259413712269, 0.32470137197014548], [-0.048771152278094254, -0.15131536537197232, -0.12947794961755998]]], [[[-0.76422840781865142, 0.74084794787250785, 0.29021218171036289], [-0.97664265278956308, 0.98160587761504958, 0.024124785450889474]], [[-0.78702872554519643, -0.67589923066636959, 0.80727872707496418], [-0.64808386133645568, 0.52738280337139676, -0.0033944998896155987]], [[-0.43706485262378525, 0.70234770172700389, 0.37521249883666252], [-0.40535417224416603, 0.48974233899313036, 0.87242810449971042]]]])+(1.-msk_ref)*numarray.array([[[[-0.83273561728916246, -0.17261622655109443, 0.85659322772667745], [-0.25699388456241978, 0.5877520302531849, 0.55037040402299797]], [[0.56239368345061203, 0.10771485975207495, -0.91399404846452037], [-0.53076510188047532, 0.099351602448291887, -0.098452537069638968]], [[-0.80865191845915207, 0.49208787197621606, 0.98019752165811513], [0.94021086847410951, 0.14116136886760611, 0.11961662549168994]]], [[[0.6586806237836822, -0.7698271628278921, 0.88258417769265685], [0.59186308580113955, -0.44709173568573402, -0.82189006847061807]], [[0.8624470912009059, 0.43130536883992177, 0.11770920968273502], [-0.71107046927406747, -0.98635073173793009, 0.16796348435665065]], [[0.86173993844442487, 0.042775033668111861, -0.33587600943403872], [-0.84626715926659335, 0.11850640222575848, 0.98413976116020851]]], [[[0.18717011633395564, 0.082522134120451174, -0.90078421567685973], [0.9264685280104632, -0.047572457043194127, 0.60414396988862573]], [[0.82182985581989865, 0.35241499148644229, 0.75330471839809721], [0.10648505106425143, -0.17446423890589258, 0.60563862866662577]], [[0.58683718047690014, -0.52422854054434409, -0.95433847119032134], [0.079749886363350342, -0.52697310897756, -0.01193045612675192]]], [[[0.54134700314137163, -0.9686456668158625, -0.16079236971446131], [-0.04327095044831708, -0.033943337768506554, -0.75744106716307802]], [[-0.047317268453788364, 0.67530416534041149, 0.36386110162155516], [-0.52171084969585468, -0.78813890020047728, -0.22964447365612894]], [[0.87226774195942069, -0.9492660405434501, 0.38950832668615698], [0.93232757800797561, 0.34303872023440096, -0.84123115238322432]]]])
6123          self.failUnless(isinstance(res,Data),"wrong type of result.")
6124          self.failUnlessEqual(res.getShape(),(4, 3, 2, 3),"wrong shape of result.")
6125          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6126       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6127       def test_transpose_expandedData_rank4_offset4(self):
6128          msk_arg=whereNegative(self.functionspace.getX()[0]-0.5)
6129          arg=msk_arg*numarray.array([[[[-0.2887881272484023, 0.74426268753942648, -0.38207556675833709, 0.93962570999638517], [0.89914452045123117, -0.52205150253636878, -0.87339146333207962, 0.53102175678165375], [0.97580653435389775, -0.9924440563388508, -0.37428004205712595, -0.85181014506736719]], [[-0.10775161595962346, -0.37249464097912033, 0.28208994801539844, 0.061130088056791765], [0.30195631702268266, -0.16583763888354164, -0.97867087128715458, -0.58962041494134931], [-0.065300617573456732, 0.53129715538152977, -0.59354562708913816, 0.5955350885659898]]], [[[-0.12768828171755642, -0.64344564637443225, 0.00041882187634478818, -0.90422814190515499], [0.17818119430387558, -0.39592286679222899, -0.83256288489578312, -0.25353409099106661], [-0.84036525941403162, 0.88554835214508199, -0.18343024186529222, -0.14450972118065053]], [[-0.34296136916207498, 0.048038866964399629, 0.39647892864482737, 0.35134637853215223], [-0.58816156012573217, 0.81975064772632855, 0.67476942636192705, -0.71470871095361899], [0.43140215734124698, 0.59194835107785315, -0.5254525872432696, 0.53323435175949152]]], [[[0.37404874333837612, 0.15221366089615307, 0.43521784267772845, 0.93586074353369186], [-0.90888998779870955, 0.5873848040141183, -0.096913663065009814, -0.17799517388146757], [-0.89339508566080172, 0.86762334671283337, -0.63949213166531083, -0.18193114583501435]], [[0.82251084728840196, -0.31016097089441619, 0.78686218528495977, 0.14291170408246434], [0.23319449634742218, 0.21560170960572589, 0.53962105610944455, 0.60254315510124368], [0.10366999328239435, 0.89482068783616908, -0.58836794833524442, -0.022649100704941638]]]])+(1.-msk_arg)*numarray.array([[[[-0.86440938734279071, -0.92148805703114012, -0.97051028558980423, 0.07731340266916753], [-0.082715775651232004, -0.87945548490614667, -0.53848213872234818, 0.47652773294521356], [0.28234520244924721, -0.12575283406927817, -0.28522031046177254, 0.84033965844064062]], [[0.70162141253130694, -0.36972128524914005, 0.21909956046008516, -0.41729088103127121], [0.61232899687452136, 0.60630914772742117, -0.14216066581562137, 0.57629325797362307], [-0.34650193429693932, 0.022112391216752014, -0.10598185708451169, 0.8108202951807153]]], [[[0.94781931334254965, 0.48874515270778129, 0.3393589193061628, -0.92046912555111193], [0.77516056791542987, 0.18072948492888896, 0.74564033949784325, 0.3231517237261794], [-0.049803680160861452, -0.17206431542097467, 0.44534178424231086, 0.81847192196951046]], [[0.57009609070660883, -0.048698196884315426, 0.17414550399780304, -0.95590354378347953], [-0.93036754049019588, -0.14906649502473979, 0.31851415471056588, 0.45310922579005752], [0.094408068484628682, -0.030156046538578174, 0.72909476175084365, -0.50299358271168582]]], [[[-0.027782396450896307, 0.8553622518488293, 0.51679349337720648, 0.74381861370213342], [0.94475939941939169, -0.58336416771290089, 0.48903975537195077, 0.45310262303724458], [0.32662445807114171, -0.20292565811781316, -0.86994585276450453, 0.92686367679200621]], [[-0.68390887094225561, -0.75725275402307712, 0.18026387890297046, 0.322381828072136], [-0.33014455949624377, -0.57395906759854931, 0.90470887939455569, -0.99921393713390683], [0.70224434842276695, 0.78298323516401869, -0.70889293233578865, 0.095901983614461672]]]])
6130          res=transpose(arg,4)
6131          msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)
6132          ref=msk_ref*numarray.array([[[[-0.2887881272484023, 0.74426268753942648, -0.38207556675833709, 0.93962570999638517], [0.89914452045123117, -0.52205150253636878, -0.87339146333207962, 0.53102175678165375], [0.97580653435389775, -0.9924440563388508, -0.37428004205712595, -0.85181014506736719]], [[-0.10775161595962346, -0.37249464097912033, 0.28208994801539844, 0.061130088056791765], [0.30195631702268266, -0.16583763888354164, -0.97867087128715458, -0.58962041494134931], [-0.065300617573456732, 0.53129715538152977, -0.59354562708913816, 0.5955350885659898]]], [[[-0.12768828171755642, -0.64344564637443225, 0.00041882187634478818, -0.90422814190515499], [0.17818119430387558, -0.39592286679222899, -0.83256288489578312, -0.25353409099106661], [-0.84036525941403162, 0.88554835214508199, -0.18343024186529222, -0.14450972118065053]], [[-0.34296136916207498, 0.048038866964399629, 0.39647892864482737, 0.35134637853215223], [-0.58816156012573217, 0.81975064772632855, 0.67476942636192705, -0.71470871095361899], [0.43140215734124698, 0.59194835107785315, -0.5254525872432696, 0.53323435175949152]]], [[[0.37404874333837612, 0.15221366089615307, 0.43521784267772845, 0.93586074353369186], [-0.90888998779870955, 0.5873848040141183, -0.096913663065009814, -0.17799517388146757], [-0.89339508566080172, 0.86762334671283337, -0.63949213166531083, -0.18193114583501435]], [[0.82251084728840196, -0.31016097089441619, 0.78686218528495977, 0.14291170408246434], [0.23319449634742218, 0.21560170960572589, 0.53962105610944455, 0.60254315510124368], [0.10366999328239435, 0.89482068783616908, -0.58836794833524442, -0.022649100704941638]]]])+(1.-msk_ref)*numarray.array([[[[-0.86440938734279071, -0.92148805703114012, -0.97051028558980423, 0.07731340266916753], [-0.082715775651232004, -0.87945548490614667, -0.53848213872234818, 0.47652773294521356], [0.28234520244924721, -0.12575283406927817, -0.28522031046177254, 0.84033965844064062]], [[0.70162141253130694, -0.36972128524914005, 0.21909956046008516, -0.41729088103127121], [0.61232899687452136, 0.60630914772742117, -0.14216066581562137, 0.57629325797362307], [-0.34650193429693932, 0.022112391216752014, -0.10598185708451169, 0.8108202951807153]]], [[[0.94781931334254965, 0.48874515270778129, 0.3393589193061628, -0.92046912555111193], [0.77516056791542987, 0.18072948492888896, 0.74564033949784325, 0.3231517237261794], [-0.049803680160861452, -0.17206431542097467, 0.44534178424231086, 0.81847192196951046]], [[0.57009609070660883, -0.048698196884315426, 0.17414550399780304, -0.95590354378347953], [-0.93036754049019588, -0.14906649502473979, 0.31851415471056588, 0.45310922579005752], [0.094408068484628682, -0.030156046538578174, 0.72909476175084365, -0.50299358271168582]]], [[[-0.027782396450896307, 0.8553622518488293, 0.51679349337720648, 0.74381861370213342], [0.94475939941939169, -0.58336416771290089, 0.48903975537195077, 0.45310262303724458], [0.32662445807114171, -0.20292565811781316, -0.86994585276450453, 0.92686367679200621]], [[-0.68390887094225561, -0.75725275402307712, 0.18026387890297046, 0.322381828072136], [-0.33014455949624377, -0.57395906759854931, 0.90470887939455569, -0.99921393713390683], [0.70224434842276695, 0.78298323516401869, -0.70889293233578865, 0.095901983614461672]]]])
6133          self.failUnless(isinstance(res,Data),"wrong type of result.")
6134          self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6135          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")

Legend:
Removed from v.491  
changed lines
  Added in v.492

  ViewVC Help
Powered by ViewVC 1.1.26