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

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

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

revision 428 by gross, Wed Dec 21 02:41:59 2005 UTC revision 429 by gross, Wed Jan 11 05:53:40 2006 UTC
# Line 5091  class Test_util_overloaded_binary_no_tag Line 5091  class Test_util_overloaded_binary_no_tag
5091        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5092        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5093     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5094     def test_div_overloaded_float_rank0_constData_rank0(self):     def test_quotient_overloaded_float_rank0_constData_rank0(self):
5095        arg0=-1.58150799807        arg0=-1.58150799807
5096        arg1=Data(0.74133131456,self.functionspace)        arg1=Data(0.74133131456,self.functionspace)
5097        res=arg0/arg1        res=arg0/arg1
# Line 5100  class Test_util_overloaded_binary_no_tag Line 5100  class Test_util_overloaded_binary_no_tag
5100        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5101        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5102     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5103     def test_div_overloaded_float_rank0_constData_rank1(self):     def test_quotient_overloaded_float_rank0_constData_rank1(self):
5104        arg0=-4.68279391573        arg0=-4.68279391573
5105        arg1=Data(numarray.array([-1.7687202452841944, 1.4285453375269981]),self.functionspace)        arg1=Data(numarray.array([-1.7687202452841944, 1.4285453375269981]),self.functionspace)
5106        res=arg0/arg1        res=arg0/arg1
# Line 5109  class Test_util_overloaded_binary_no_tag Line 5109  class Test_util_overloaded_binary_no_tag
5109        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5110        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5111     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5112     def test_div_overloaded_float_rank0_constData_rank2(self):     def test_quotient_overloaded_float_rank0_constData_rank2(self):
5113        arg0=-4.77843722279        arg0=-4.77843722279
5114        arg1=Data(numarray.array([[-4.2420214566013108, -0.64663347400184445, 3.8393818897588492, -3.0159062836945472, 3.9979206815937118], [-0.20402775090354908, 1.4825250658701208, 1.1096906890682874, -1.5931273330501092, 3.3809991987766725], [-3.0148072293977579, 4.1865340578382266, 3.9358322332993545, -4.5005469551233324, 1.5924335813443893], [1.6104615377729505, -0.037519182884611091, 1.470163415745942, 1.2091574349265422, -3.7089627015863114]]),self.functionspace)        arg1=Data(numarray.array([[-4.2420214566013108, -0.64663347400184445, 3.8393818897588492, -3.0159062836945472, 3.9979206815937118], [-0.20402775090354908, 1.4825250658701208, 1.1096906890682874, -1.5931273330501092, 3.3809991987766725], [-3.0148072293977579, 4.1865340578382266, 3.9358322332993545, -4.5005469551233324, 1.5924335813443893], [1.6104615377729505, -0.037519182884611091, 1.470163415745942, 1.2091574349265422, -3.7089627015863114]]),self.functionspace)
5115        res=arg0/arg1        res=arg0/arg1
# Line 5118  class Test_util_overloaded_binary_no_tag Line 5118  class Test_util_overloaded_binary_no_tag
5118        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5119        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5120     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5121     def test_div_overloaded_float_rank0_constData_rank3(self):     def test_quotient_overloaded_float_rank0_constData_rank3(self):
5122        arg0=-4.2129028658        arg0=-4.2129028658
5123        arg1=Data(numarray.array([[[-0.34983504304066049, 2.9375995895072595], [2.4204868715516161, 2.8585940351285579]], [[-3.610692322429724, -4.2697890316143061], [2.5671768371889243, 3.2747632991551399]], [[3.4337501262514269, 0.033415884257991024], [-3.7341435992880267, 3.8307520273690958]], [[-2.1863103352604463, -3.3162842591493091], [-2.1987165743034707, -1.4609787925678863]], [[-2.4938212793616952, 2.9677530095095879], [-4.1096156115923979, 4.3328888067101872]], [[-3.3131868659980777, -3.7918439831168937], [-4.1244152345380396, -1.6659751597934158]]]),self.functionspace)        arg1=Data(numarray.array([[[-0.34983504304066049, 2.9375995895072595], [2.4204868715516161, 2.8585940351285579]], [[-3.610692322429724, -4.2697890316143061], [2.5671768371889243, 3.2747632991551399]], [[3.4337501262514269, 0.033415884257991024], [-3.7341435992880267, 3.8307520273690958]], [[-2.1863103352604463, -3.3162842591493091], [-2.1987165743034707, -1.4609787925678863]], [[-2.4938212793616952, 2.9677530095095879], [-4.1096156115923979, 4.3328888067101872]], [[-3.3131868659980777, -3.7918439831168937], [-4.1244152345380396, -1.6659751597934158]]]),self.functionspace)
5124        res=arg0/arg1        res=arg0/arg1
# Line 5127  class Test_util_overloaded_binary_no_tag Line 5127  class Test_util_overloaded_binary_no_tag
5127        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5128        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5129     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5130     def test_div_overloaded_float_rank0_constData_rank4(self):     def test_quotient_overloaded_float_rank0_constData_rank4(self):
5131        arg0=-2.81537197661        arg0=-2.81537197661
5132        arg1=Data(numarray.array([[[[2.4656599858001593, -2.6183572965227442, -3.4600389481847538, -4.1033804259339153], [-4.0480770479440364, 0.87660914485012764, 1.4492322453986315, -4.5136546351664659], [4.3702321489493166, -2.8822384776108114, 0.57679521785766319, -0.18799747713645232]], [[-2.6092598411939374, -3.2496622966944733, 1.6557680792463483, 4.9458764253489811], [-4.7274359417244778, -1.0395248592281425, 3.9983528279221083, -3.1464876430053614], [2.8791780096831712, -2.4843808494241362, 3.1965197411147805, 4.1740923732684383]]], [[[-4.7711376037623578, -2.0383536544191347, 4.3495804063749706, 1.9655905644825955], [-3.7337425699086637, -3.9582160802452271, 3.4377323248089233, 2.3259687219978806], [2.4716121356670753, 4.250010432638458, -1.3882735643087818, 1.5211776852089471]], [[-2.8158693410091828, 4.3570813741329459, 3.8654197698083408, 2.0948916199578846], [0.49790776290527816, -3.0143313991693574, 1.4366832954788862, -4.6647383183831623], [2.8831260637664311, -3.2097974622488836, 2.9485636721176798, 1.0856326614842695]]], [[[1.7672953305412946, 4.3583411081866927, 4.9676516467050913, -1.736091688787742], [-1.6980696348792526, 0.14419587037388837, -1.2686598463883927, 1.6624353796433375], [4.822200009798328, -1.0955211724610159, 4.1916007891119555, -1.5107997020025712]], [[3.134866680190342, 3.1066903159181969, 1.7876995283081945, 0.85297450772985961], [1.2361713570719726, 0.062974898074552144, -0.6935962943236218, 2.7251275891835842], [2.66537594962805, -0.74287101588632609, 2.1662466700429741, 2.9867092735484775]]]]),self.functionspace)        arg1=Data(numarray.array([[[[2.4656599858001593, -2.6183572965227442, -3.4600389481847538, -4.1033804259339153], [-4.0480770479440364, 0.87660914485012764, 1.4492322453986315, -4.5136546351664659], [4.3702321489493166, -2.8822384776108114, 0.57679521785766319, -0.18799747713645232]], [[-2.6092598411939374, -3.2496622966944733, 1.6557680792463483, 4.9458764253489811], [-4.7274359417244778, -1.0395248592281425, 3.9983528279221083, -3.1464876430053614], [2.8791780096831712, -2.4843808494241362, 3.1965197411147805, 4.1740923732684383]]], [[[-4.7711376037623578, -2.0383536544191347, 4.3495804063749706, 1.9655905644825955], [-3.7337425699086637, -3.9582160802452271, 3.4377323248089233, 2.3259687219978806], [2.4716121356670753, 4.250010432638458, -1.3882735643087818, 1.5211776852089471]], [[-2.8158693410091828, 4.3570813741329459, 3.8654197698083408, 2.0948916199578846], [0.49790776290527816, -3.0143313991693574, 1.4366832954788862, -4.6647383183831623], [2.8831260637664311, -3.2097974622488836, 2.9485636721176798, 1.0856326614842695]]], [[[1.7672953305412946, 4.3583411081866927, 4.9676516467050913, -1.736091688787742], [-1.6980696348792526, 0.14419587037388837, -1.2686598463883927, 1.6624353796433375], [4.822200009798328, -1.0955211724610159, 4.1916007891119555, -1.5107997020025712]], [[3.134866680190342, 3.1066903159181969, 1.7876995283081945, 0.85297450772985961], [1.2361713570719726, 0.062974898074552144, -0.6935962943236218, 2.7251275891835842], [2.66537594962805, -0.74287101588632609, 2.1662466700429741, 2.9867092735484775]]]]),self.functionspace)
5133        res=arg0/arg1        res=arg0/arg1
# Line 5136  class Test_util_overloaded_binary_no_tag Line 5136  class Test_util_overloaded_binary_no_tag
5136        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5137        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5138     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5139     def test_div_overloaded_float_rank0_expandedData_rank0(self):     def test_quotient_overloaded_float_rank0_expandedData_rank0(self):
5140        arg0=-1.09855931938        arg0=-1.09855931938
5141        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5142        arg1=msk_arg1*(3.22111665439)+(1.-msk_arg1)*(1.33873726471)        arg1=msk_arg1*(3.22111665439)+(1.-msk_arg1)*(1.33873726471)
# Line 5147  class Test_util_overloaded_binary_no_tag Line 5147  class Test_util_overloaded_binary_no_tag
5147        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5148        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5149     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5150     def test_div_overloaded_float_rank0_expandedData_rank1(self):     def test_quotient_overloaded_float_rank0_expandedData_rank1(self):
5151        arg0=4.05749907601        arg0=4.05749907601
5152        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5153        arg1=msk_arg1*numarray.array([-1.5198157487642607, -0.53049822656922885])+(1.-msk_arg1)*numarray.array([-0.4004567724153727, 2.7845648875824285])        arg1=msk_arg1*numarray.array([-1.5198157487642607, -0.53049822656922885])+(1.-msk_arg1)*numarray.array([-0.4004567724153727, 2.7845648875824285])
# Line 5158  class Test_util_overloaded_binary_no_tag Line 5158  class Test_util_overloaded_binary_no_tag
5158        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5159        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5160     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5161     def test_div_overloaded_float_rank0_expandedData_rank2(self):     def test_quotient_overloaded_float_rank0_expandedData_rank2(self):
5162        arg0=3.75753686931        arg0=3.75753686931
5163        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5164        arg1=msk_arg1*numarray.array([[-4.1776820931205609, 1.4185117832018772, -3.8311909374339894, 2.1235887191381497, -3.1198649568284829], [4.189110788624701, 1.2131461666764753, 3.737370596152175, 4.1336396509356916, -3.5434794559349694], [-4.3696168015662016, 1.4306924580120572, 2.1408826677900405, -4.0242957787223377, -1.3057397288185935], [1.9077970511384557, -4.8160719247544002, 4.9887386350091099, 0.35146741030783168, -4.5453847054766641]])+(1.-msk_arg1)*numarray.array([[-2.4190114342714719, 2.547143537651591, 1.4517444899618956, 0.43179189729206513, 1.8454893180900598], [2.2347094373500385, 1.4216820881609653, 4.4010024533706513, -3.5356569423948603, -1.0123812081435322], [3.9515151776442163, -0.10159804523562155, -2.8243389583934517, -1.9751519542108054, 0.88336630498884539], [1.8235012577276386, 3.9828819153925021, -3.8888339010456932, -2.5352576694289808, 0.63188990804257372]])        arg1=msk_arg1*numarray.array([[-4.1776820931205609, 1.4185117832018772, -3.8311909374339894, 2.1235887191381497, -3.1198649568284829], [4.189110788624701, 1.2131461666764753, 3.737370596152175, 4.1336396509356916, -3.5434794559349694], [-4.3696168015662016, 1.4306924580120572, 2.1408826677900405, -4.0242957787223377, -1.3057397288185935], [1.9077970511384557, -4.8160719247544002, 4.9887386350091099, 0.35146741030783168, -4.5453847054766641]])+(1.-msk_arg1)*numarray.array([[-2.4190114342714719, 2.547143537651591, 1.4517444899618956, 0.43179189729206513, 1.8454893180900598], [2.2347094373500385, 1.4216820881609653, 4.4010024533706513, -3.5356569423948603, -1.0123812081435322], [3.9515151776442163, -0.10159804523562155, -2.8243389583934517, -1.9751519542108054, 0.88336630498884539], [1.8235012577276386, 3.9828819153925021, -3.8888339010456932, -2.5352576694289808, 0.63188990804257372]])
# Line 5169  class Test_util_overloaded_binary_no_tag Line 5169  class Test_util_overloaded_binary_no_tag
5169        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5170        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5171     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5172     def test_div_overloaded_float_rank0_expandedData_rank3(self):     def test_quotient_overloaded_float_rank0_expandedData_rank3(self):
5173        arg0=-3.06945082764        arg0=-3.06945082764
5174        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5175        arg1=msk_arg1*numarray.array([[[-1.6137339566571915, -0.84262588150557427], [3.7621204549396037, 0.61628003127611208]], [[2.1849436350812335, 2.3797970726361495], [-3.8953762877132059, 2.9487919480824125]], [[-1.2128249881825868, -0.14667802293957788], [-1.0334758679170397, -1.4921762462422117]], [[-0.10374606218564875, -2.0362432878901551], [3.0232848823222778, -1.4527811885508224]], [[-2.435206080806589, 1.536841861163694], [-2.969599295127856, 1.3287016008240737]], [[4.8502531633609287, 0.99959998670021033], [-0.34743328959997744, 2.4262475015316447]]])+(1.-msk_arg1)*numarray.array([[[-1.6309831506598149, 3.6763289230752374], [4.1179501669380301, 0.29058545171167971]], [[-4.9013625375547765, 0.91747922472024968], [0.12173580949657481, 4.2698882632001212]], [[1.553643442491194, -2.0964233784416364], [3.3522448009557397, -1.4030175826203295]], [[-1.0473609824727212, -2.3121371702033211], [-4.7438803022627152, 1.8368350225282972]], [[2.5756703248990469, 4.8151142135448008], [-4.7340716234034854, 3.632756703228976]], [[-4.3928481320680426, 4.0014047546319969], [-0.32360053292368463, -2.7852345214969763]]])        arg1=msk_arg1*numarray.array([[[-1.6137339566571915, -0.84262588150557427], [3.7621204549396037, 0.61628003127611208]], [[2.1849436350812335, 2.3797970726361495], [-3.8953762877132059, 2.9487919480824125]], [[-1.2128249881825868, -0.14667802293957788], [-1.0334758679170397, -1.4921762462422117]], [[-0.10374606218564875, -2.0362432878901551], [3.0232848823222778, -1.4527811885508224]], [[-2.435206080806589, 1.536841861163694], [-2.969599295127856, 1.3287016008240737]], [[4.8502531633609287, 0.99959998670021033], [-0.34743328959997744, 2.4262475015316447]]])+(1.-msk_arg1)*numarray.array([[[-1.6309831506598149, 3.6763289230752374], [4.1179501669380301, 0.29058545171167971]], [[-4.9013625375547765, 0.91747922472024968], [0.12173580949657481, 4.2698882632001212]], [[1.553643442491194, -2.0964233784416364], [3.3522448009557397, -1.4030175826203295]], [[-1.0473609824727212, -2.3121371702033211], [-4.7438803022627152, 1.8368350225282972]], [[2.5756703248990469, 4.8151142135448008], [-4.7340716234034854, 3.632756703228976]], [[-4.3928481320680426, 4.0014047546319969], [-0.32360053292368463, -2.7852345214969763]]])
# Line 5180  class Test_util_overloaded_binary_no_tag Line 5180  class Test_util_overloaded_binary_no_tag
5180        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5181        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5182     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5183     def test_div_overloaded_float_rank0_expandedData_rank4(self):     def test_quotient_overloaded_float_rank0_expandedData_rank4(self):
5184        arg0=0.594519685746        arg0=0.594519685746
5185        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5186        arg1=msk_arg1*numarray.array([[[[-4.7938772326802503, -3.2760410004444251, -3.1048526721112912, 1.3176039278542202], [4.3260840959307441, -4.9313630616433386, -1.8160153943284039, -3.8609740831039052], [-0.046505631366281719, 2.1155572000215042, 4.4495939012871446, -0.47171829831305612]], [[4.0804784497080693, 2.3509791338094486, 2.103236229296952, -2.264946851161457], [-0.74373810294692344, -0.30002212907597325, 4.3852436264576138, -2.0508647355642031], [3.7154273043919552, -4.5244967722374341, -1.078808241328848, 1.8333173164987553]]], [[[-1.302610777479126, -2.9485293423143002, -0.69889066197142569, 3.2131230942700082], [1.1948591973154148, 0.95447628500421366, 0.70356294607013758, -1.7141492802089986], [0.40713941490540861, 1.8348508464517295, -4.9343104569402128, -1.2255848473312336]], [[-4.7056592009385101, -3.1582090120942063, -0.26383447475615007, -4.1355554643713797], [-1.7855675686089914, -1.9901551784980951, 2.4635756425157336, -1.1586492112493394], [0.017394295162715068, -1.1806264993221149, 2.5742045973631136, -0.15257906118494269]]], [[[1.6214838899055675, -0.84878018431876256, -3.0283078207616878, 1.1271792167087069], [-1.1657680108064152, -0.92760806903406401, 2.8076628773777195, -4.0077697995085089], [1.7273991559019732, -0.7315107789497155, 3.2662630323674069, 4.1004013199519225]], [[3.2419754496247197, 3.6112743258264715, 4.1671926918678164, 3.3752218280005692], [0.50370393742950448, -2.8472629926046187, 2.107195506305696, 4.1415643060431133], [-2.9290192818113105, 4.6544852435849027, 3.4031890460138943, 3.8570841351526255]]]])+(1.-msk_arg1)*numarray.array([[[[-2.2040483139839608, 2.4697358567881968, 2.7993234095871742, 2.2306288371926115], [-3.1869827895092162, 2.070519494055838, -0.57724871829210844, -2.3769643544658381], [4.4251129913774871, 1.1126853085734592, -2.8018679248703782, -2.2999611363908992]], [[3.7107052610725777, 4.1437974533112225, -0.77400941890756325, -0.67768650694315458], [-4.0249699283957714, 1.6172138768135653, -2.4553136709757983, -4.7069782564167308], [-2.3690757946017937, -2.0082833191429463, -0.91580176140453684, 4.4705312316373735]]], [[[3.4631308234045264, 0.88740392592166373, 4.8331247595447344, 3.9445823888025693], [-2.1427824293707043, 4.4803808270387719, -2.9232039615543792, 1.2416648951841047], [-0.048580790209538094, -2.3978954403102257, 3.6622331661519087, 3.9535190128031594]], [[0.0085768436900446332, 0.31606611342030266, -0.18363822559980036, 1.0559798181457936], [4.9111849007168598, -3.8184858947259714, 4.6777467936412584, 1.4308325259695209], [4.7985728465154018, 2.0751684734846378, 3.9070652967504778, 0.065876700270111499]]], [[[-0.72382633441175326, -0.47312341416877235, -2.6788002778241236, -3.7759038686685207], [4.2829560745644883, 1.4722843359088023, 4.446662541231035, -3.6812400812479429], [4.4414788402580001, -1.1637698257632767, -3.7766219209176475, 3.803210936489581]], [[0.70999860285818528, -0.96822186384663134, -3.5866553486626485, 1.8510339866640741], [-4.3379091894891797, -3.4195405840612603, -0.42598984537520046, 4.592390536322208], [-3.0064239094896794, 1.2764046499696491, 2.3923978686903329, -1.4239482513603461]]]])        arg1=msk_arg1*numarray.array([[[[-4.7938772326802503, -3.2760410004444251, -3.1048526721112912, 1.3176039278542202], [4.3260840959307441, -4.9313630616433386, -1.8160153943284039, -3.8609740831039052], [-0.046505631366281719, 2.1155572000215042, 4.4495939012871446, -0.47171829831305612]], [[4.0804784497080693, 2.3509791338094486, 2.103236229296952, -2.264946851161457], [-0.74373810294692344, -0.30002212907597325, 4.3852436264576138, -2.0508647355642031], [3.7154273043919552, -4.5244967722374341, -1.078808241328848, 1.8333173164987553]]], [[[-1.302610777479126, -2.9485293423143002, -0.69889066197142569, 3.2131230942700082], [1.1948591973154148, 0.95447628500421366, 0.70356294607013758, -1.7141492802089986], [0.40713941490540861, 1.8348508464517295, -4.9343104569402128, -1.2255848473312336]], [[-4.7056592009385101, -3.1582090120942063, -0.26383447475615007, -4.1355554643713797], [-1.7855675686089914, -1.9901551784980951, 2.4635756425157336, -1.1586492112493394], [0.017394295162715068, -1.1806264993221149, 2.5742045973631136, -0.15257906118494269]]], [[[1.6214838899055675, -0.84878018431876256, -3.0283078207616878, 1.1271792167087069], [-1.1657680108064152, -0.92760806903406401, 2.8076628773777195, -4.0077697995085089], [1.7273991559019732, -0.7315107789497155, 3.2662630323674069, 4.1004013199519225]], [[3.2419754496247197, 3.6112743258264715, 4.1671926918678164, 3.3752218280005692], [0.50370393742950448, -2.8472629926046187, 2.107195506305696, 4.1415643060431133], [-2.9290192818113105, 4.6544852435849027, 3.4031890460138943, 3.8570841351526255]]]])+(1.-msk_arg1)*numarray.array([[[[-2.2040483139839608, 2.4697358567881968, 2.7993234095871742, 2.2306288371926115], [-3.1869827895092162, 2.070519494055838, -0.57724871829210844, -2.3769643544658381], [4.4251129913774871, 1.1126853085734592, -2.8018679248703782, -2.2999611363908992]], [[3.7107052610725777, 4.1437974533112225, -0.77400941890756325, -0.67768650694315458], [-4.0249699283957714, 1.6172138768135653, -2.4553136709757983, -4.7069782564167308], [-2.3690757946017937, -2.0082833191429463, -0.91580176140453684, 4.4705312316373735]]], [[[3.4631308234045264, 0.88740392592166373, 4.8331247595447344, 3.9445823888025693], [-2.1427824293707043, 4.4803808270387719, -2.9232039615543792, 1.2416648951841047], [-0.048580790209538094, -2.3978954403102257, 3.6622331661519087, 3.9535190128031594]], [[0.0085768436900446332, 0.31606611342030266, -0.18363822559980036, 1.0559798181457936], [4.9111849007168598, -3.8184858947259714, 4.6777467936412584, 1.4308325259695209], [4.7985728465154018, 2.0751684734846378, 3.9070652967504778, 0.065876700270111499]]], [[[-0.72382633441175326, -0.47312341416877235, -2.6788002778241236, -3.7759038686685207], [4.2829560745644883, 1.4722843359088023, 4.446662541231035, -3.6812400812479429], [4.4414788402580001, -1.1637698257632767, -3.7766219209176475, 3.803210936489581]], [[0.70999860285818528, -0.96822186384663134, -3.5866553486626485, 1.8510339866640741], [-4.3379091894891797, -3.4195405840612603, -0.42598984537520046, 4.592390536322208], [-3.0064239094896794, 1.2764046499696491, 2.3923978686903329, -1.4239482513603461]]]])
# Line 5191  class Test_util_overloaded_binary_no_tag Line 5191  class Test_util_overloaded_binary_no_tag
5191        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5192        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5193     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5194     def test_div_overloaded_float_rank0_Symbol_rank0(self):     def test_quotient_overloaded_float_rank0_Symbol_rank0(self):
5195        arg0=-3.67302581217        arg0=-3.67302581217
5196        arg1=Symbol(shape=())        arg1=Symbol(shape=())
5197        res=arg0/arg1        res=arg0/arg1
# Line 5202  class Test_util_overloaded_binary_no_tag Line 5202  class Test_util_overloaded_binary_no_tag
5202        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5203        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5204     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5205     def test_div_overloaded_float_rank0_Symbol_rank1(self):     def test_quotient_overloaded_float_rank0_Symbol_rank1(self):
5206        arg0=1.84515032598        arg0=1.84515032598
5207        arg1=Symbol(shape=(2,))        arg1=Symbol(shape=(2,))
5208        res=arg0/arg1        res=arg0/arg1
# Line 5213  class Test_util_overloaded_binary_no_tag Line 5213  class Test_util_overloaded_binary_no_tag
5213        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5214        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5215     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5216     def test_div_overloaded_float_rank0_Symbol_rank2(self):     def test_quotient_overloaded_float_rank0_Symbol_rank2(self):
5217        arg0=-0.0302478592697        arg0=-0.0302478592697
5218        arg1=Symbol(shape=(4, 5))        arg1=Symbol(shape=(4, 5))
5219        res=arg0/arg1        res=arg0/arg1
# Line 5224  class Test_util_overloaded_binary_no_tag Line 5224  class Test_util_overloaded_binary_no_tag
5224        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5225        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5226     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5227     def test_div_overloaded_float_rank0_Symbol_rank3(self):     def test_quotient_overloaded_float_rank0_Symbol_rank3(self):
5228        arg0=-3.25115318677        arg0=-3.25115318677
5229        arg1=Symbol(shape=(6, 2, 2))        arg1=Symbol(shape=(6, 2, 2))
5230        res=arg0/arg1        res=arg0/arg1
# Line 5235  class Test_util_overloaded_binary_no_tag Line 5235  class Test_util_overloaded_binary_no_tag
5235        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5236        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5237     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5238     def test_div_overloaded_float_rank0_Symbol_rank4(self):     def test_quotient_overloaded_float_rank0_Symbol_rank4(self):
5239        arg0=1.2254336203        arg0=1.2254336203
5240        arg1=Symbol(shape=(3, 2, 3, 4))        arg1=Symbol(shape=(3, 2, 3, 4))
5241        res=arg0/arg1        res=arg0/arg1
# Line 5246  class Test_util_overloaded_binary_no_tag Line 5246  class Test_util_overloaded_binary_no_tag
5246        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5247        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5248     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5249     def test_div_overloaded_constData_rank0_float_rank0(self):     def test_quotient_overloaded_constData_rank0_float_rank0(self):
5250        arg0=Data(4.25838984482,self.functionspace)        arg0=Data(4.25838984482,self.functionspace)
5251        arg1=0.815954760479        arg1=0.815954760479
5252        res=arg0/arg1        res=arg0/arg1
# Line 5255  class Test_util_overloaded_binary_no_tag Line 5255  class Test_util_overloaded_binary_no_tag
5255        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5256        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5257     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5258     def test_div_overloaded_constData_rank0_array_rank0(self):     def test_quotient_overloaded_constData_rank0_array_rank0(self):
5259        arg0=Data(-1.77856744207,self.functionspace)        arg0=Data(-1.77856744207,self.functionspace)
5260        arg1=numarray.array(0.389183376209)        arg1=numarray.array(0.389183376209)
5261        res=arg0/arg1        res=arg0/arg1
# Line 5264  class Test_util_overloaded_binary_no_tag Line 5264  class Test_util_overloaded_binary_no_tag
5264        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5265        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5266     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5267     def test_div_overloaded_constData_rank0_array_rank1(self):     def test_quotient_overloaded_constData_rank0_array_rank1(self):
5268        arg0=Data(-2.8836086383,self.functionspace)        arg0=Data(-2.8836086383,self.functionspace)
5269        arg1=numarray.array([-1.0381794048924178, 3.5434746401048152])        arg1=numarray.array([-1.0381794048924178, 3.5434746401048152])
5270        res=arg0/arg1        res=arg0/arg1
# Line 5273  class Test_util_overloaded_binary_no_tag Line 5273  class Test_util_overloaded_binary_no_tag
5273        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5274        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5275     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5276     def test_div_overloaded_constData_rank0_array_rank2(self):     def test_quotient_overloaded_constData_rank0_array_rank2(self):
5277        arg0=Data(-4.79812755477,self.functionspace)        arg0=Data(-4.79812755477,self.functionspace)
5278        arg1=numarray.array([[0.14991843556406437, -4.1068513257704664, -3.4357277338360772, -2.2871100738690053, 3.8463011449165627], [-3.4117566103130512, 0.93353125196226738, -3.8611665206139345, 4.161512902010827, 4.6010139874998117], [-0.16619311206576803, 0.33601792694262222, 4.3070962317977575, 2.106870040761387, 2.1373058812732202], [-3.4598200606894203, 1.385187182455061, -1.9179904761458877, 4.6592653996295024, -3.4126419969091937]])        arg1=numarray.array([[0.14991843556406437, -4.1068513257704664, -3.4357277338360772, -2.2871100738690053, 3.8463011449165627], [-3.4117566103130512, 0.93353125196226738, -3.8611665206139345, 4.161512902010827, 4.6010139874998117], [-0.16619311206576803, 0.33601792694262222, 4.3070962317977575, 2.106870040761387, 2.1373058812732202], [-3.4598200606894203, 1.385187182455061, -1.9179904761458877, 4.6592653996295024, -3.4126419969091937]])
5279        res=arg0/arg1        res=arg0/arg1
# Line 5282  class Test_util_overloaded_binary_no_tag Line 5282  class Test_util_overloaded_binary_no_tag
5282        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5283        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5284     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5285     def test_div_overloaded_constData_rank0_array_rank3(self):     def test_quotient_overloaded_constData_rank0_array_rank3(self):
5286        arg0=Data(-1.98387086714,self.functionspace)        arg0=Data(-1.98387086714,self.functionspace)
5287        arg1=numarray.array([[[-3.5587691615859374, 0.25214505221229366], [-0.79731795595904487, 4.2154602414700157]], [[-1.7443498285164436, -1.7820096104704932], [2.8429099756379621, -2.1636012165743623]], [[0.65497487567676149, 1.9256075763737375], [-3.7484737665916432, 0.39493195498054501]], [[-0.52169416325855877, -0.19517243295513875], [0.22067078161295051, 4.460717018343491]], [[3.8323792106938157, -4.5103398270823725], [1.6611678796847986, -2.6788113971836025]], [[-3.2342403770538111, 3.5806586497177726], [-3.7229810924621565, 2.4370598696258288]]])        arg1=numarray.array([[[-3.5587691615859374, 0.25214505221229366], [-0.79731795595904487, 4.2154602414700157]], [[-1.7443498285164436, -1.7820096104704932], [2.8429099756379621, -2.1636012165743623]], [[0.65497487567676149, 1.9256075763737375], [-3.7484737665916432, 0.39493195498054501]], [[-0.52169416325855877, -0.19517243295513875], [0.22067078161295051, 4.460717018343491]], [[3.8323792106938157, -4.5103398270823725], [1.6611678796847986, -2.6788113971836025]], [[-3.2342403770538111, 3.5806586497177726], [-3.7229810924621565, 2.4370598696258288]]])
5288        res=arg0/arg1        res=arg0/arg1
# Line 5291  class Test_util_overloaded_binary_no_tag Line 5291  class Test_util_overloaded_binary_no_tag
5291        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5292        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5293     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5294     def test_div_overloaded_constData_rank0_array_rank4(self):     def test_quotient_overloaded_constData_rank0_array_rank4(self):
5295        arg0=Data(-0.531745584533,self.functionspace)        arg0=Data(-0.531745584533,self.functionspace)
5296        arg1=numarray.array([[[[-3.9799891439902133, -1.5263398400147787, 2.660391253443124, -4.6977617554422304], [-4.7229197918274615, -4.6534607451579806, 2.1367144006494527, -4.126347196493926], [-1.24367456836017, -0.10588287863401735, -3.2974299575556412, 2.1225066644477488]], [[0.12519404186507366, 0.76014591679897769, 0.066277161774110027, 3.6170961266510133], [-1.8161041805384381, -2.0490571213384112, 1.0938835505501832, -3.4705272542623655], [-0.38332840520168521, -0.10437305879362402, 3.9704468702648583, 3.8057956818694301]]], [[[1.5013768955961071, -0.55418213798327542, 1.2865145104494058, 0.26503790212629585], [-4.4010065376877963, -2.3385117591117801, 0.010598815480228119, -2.5687419867258674], [-0.48221826207107998, 0.078959379963317033, 1.2835771836219534, -0.25521319754306226]], [[0.25086478183835137, 0.67169388307993394, 3.3196318872984172, 4.6754057826689639], [2.8015230792733847, -4.9605680553819482, -1.2039556066089609, 3.8300774356643341], [-4.7298394238060926, 4.8143184236572836, 4.7355333476484383, 4.2677096005749231]]], [[[3.0352558385587862, 3.284763831752036, 1.0490723286320991, 0.18475058478273887], [-3.5320023449368829, -4.0891492620259617, -3.5572108934263227, -4.1996068428583282], [1.6538346735344316, 4.4678252251382755, 2.0452410218890602, -2.7544697188494305]], [[-2.6938573646031005, -2.5319388216215777, 0.5491405692518363, -0.037448832966751944], [-1.9958301035222403, -4.2136408392081766, 0.12156847820469707, -0.50743887050711045], [3.7379483652671261, -1.696402052388982, 4.8430236758013159, -4.4068659599627669]]]])        arg1=numarray.array([[[[-3.9799891439902133, -1.5263398400147787, 2.660391253443124, -4.6977617554422304], [-4.7229197918274615, -4.6534607451579806, 2.1367144006494527, -4.126347196493926], [-1.24367456836017, -0.10588287863401735, -3.2974299575556412, 2.1225066644477488]], [[0.12519404186507366, 0.76014591679897769, 0.066277161774110027, 3.6170961266510133], [-1.8161041805384381, -2.0490571213384112, 1.0938835505501832, -3.4705272542623655], [-0.38332840520168521, -0.10437305879362402, 3.9704468702648583, 3.8057956818694301]]], [[[1.5013768955961071, -0.55418213798327542, 1.2865145104494058, 0.26503790212629585], [-4.4010065376877963, -2.3385117591117801, 0.010598815480228119, -2.5687419867258674], [-0.48221826207107998, 0.078959379963317033, 1.2835771836219534, -0.25521319754306226]], [[0.25086478183835137, 0.67169388307993394, 3.3196318872984172, 4.6754057826689639], [2.8015230792733847, -4.9605680553819482, -1.2039556066089609, 3.8300774356643341], [-4.7298394238060926, 4.8143184236572836, 4.7355333476484383, 4.2677096005749231]]], [[[3.0352558385587862, 3.284763831752036, 1.0490723286320991, 0.18475058478273887], [-3.5320023449368829, -4.0891492620259617, -3.5572108934263227, -4.1996068428583282], [1.6538346735344316, 4.4678252251382755, 2.0452410218890602, -2.7544697188494305]], [[-2.6938573646031005, -2.5319388216215777, 0.5491405692518363, -0.037448832966751944], [-1.9958301035222403, -4.2136408392081766, 0.12156847820469707, -0.50743887050711045], [3.7379483652671261, -1.696402052388982, 4.8430236758013159, -4.4068659599627669]]]])
5297        res=arg0/arg1        res=arg0/arg1
# Line 5300  class Test_util_overloaded_binary_no_tag Line 5300  class Test_util_overloaded_binary_no_tag
5300        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5301        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5302     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5303     def test_div_overloaded_constData_rank0_constData_rank0(self):     def test_quotient_overloaded_constData_rank0_constData_rank0(self):
5304        arg0=Data(4.96192666081,self.functionspace)        arg0=Data(4.96192666081,self.functionspace)
5305        arg1=Data(-0.645776129271,self.functionspace)        arg1=Data(-0.645776129271,self.functionspace)
5306        res=arg0/arg1        res=arg0/arg1
# Line 5309  class Test_util_overloaded_binary_no_tag Line 5309  class Test_util_overloaded_binary_no_tag
5309        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5310        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5311     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5312     def test_div_overloaded_constData_rank0_constData_rank1(self):     def test_quotient_overloaded_constData_rank0_constData_rank1(self):
5313        arg0=Data(3.96933735761,self.functionspace)        arg0=Data(3.96933735761,self.functionspace)
5314        arg1=Data(numarray.array([4.8220319433945917, -4.4370897538008869]),self.functionspace)        arg1=Data(numarray.array([4.8220319433945917, -4.4370897538008869]),self.functionspace)
5315        res=arg0/arg1        res=arg0/arg1
# Line 5318  class Test_util_overloaded_binary_no_tag Line 5318  class Test_util_overloaded_binary_no_tag
5318        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5319        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5320     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5321     def test_div_overloaded_constData_rank0_constData_rank2(self):     def test_quotient_overloaded_constData_rank0_constData_rank2(self):
5322        arg0=Data(4.50691106733,self.functionspace)        arg0=Data(4.50691106733,self.functionspace)
5323        arg1=Data(numarray.array([[2.886252860605202, -0.79139596289242053, 0.944668909632016, 2.7820772540590397, -0.12004220374048558], [1.7484762468684458, -2.9623165829666629, -0.66195492677624479, -0.27796216183514044, 3.8075826347630066], [-4.8273722815534237, -0.14691394817340164, -1.2405247615428703, -2.0860562811086645, 4.4587992236040179], [-2.2200737650599986, 4.1576302186630478, 2.1935594125262536, 1.8672374024493426, -4.012419061336896]]),self.functionspace)        arg1=Data(numarray.array([[2.886252860605202, -0.79139596289242053, 0.944668909632016, 2.7820772540590397, -0.12004220374048558], [1.7484762468684458, -2.9623165829666629, -0.66195492677624479, -0.27796216183514044, 3.8075826347630066], [-4.8273722815534237, -0.14691394817340164, -1.2405247615428703, -2.0860562811086645, 4.4587992236040179], [-2.2200737650599986, 4.1576302186630478, 2.1935594125262536, 1.8672374024493426, -4.012419061336896]]),self.functionspace)
5324        res=arg0/arg1        res=arg0/arg1
# Line 5327  class Test_util_overloaded_binary_no_tag Line 5327  class Test_util_overloaded_binary_no_tag
5327        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5328        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5329     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5330     def test_div_overloaded_constData_rank0_constData_rank3(self):     def test_quotient_overloaded_constData_rank0_constData_rank3(self):
5331        arg0=Data(-0.566882706433,self.functionspace)        arg0=Data(-0.566882706433,self.functionspace)
5332        arg1=Data(numarray.array([[[-2.3119681157581038, 2.3655353340300387], [-2.0819768571955488, 3.5477847807211766]], [[-0.53028219894214335, 2.8528706756765443], [-2.7687306675459258, 3.8961333110798044]], [[-2.8336317127714272, 2.5747372415777425], [1.2506496252631569, 2.8368327531159618]], [[-1.4151569268536326, -3.8570875139593364], [-3.6981050221877574, 1.9560326358821998]], [[4.493895443221513, -3.17505489919786], [2.9010746877679008, -2.9102319414421265]], [[4.5646131732506134, -0.60178703417325607], [0.84814252772227849, 4.4519872907615152]]]),self.functionspace)        arg1=Data(numarray.array([[[-2.3119681157581038, 2.3655353340300387], [-2.0819768571955488, 3.5477847807211766]], [[-0.53028219894214335, 2.8528706756765443], [-2.7687306675459258, 3.8961333110798044]], [[-2.8336317127714272, 2.5747372415777425], [1.2506496252631569, 2.8368327531159618]], [[-1.4151569268536326, -3.8570875139593364], [-3.6981050221877574, 1.9560326358821998]], [[4.493895443221513, -3.17505489919786], [2.9010746877679008, -2.9102319414421265]], [[4.5646131732506134, -0.60178703417325607], [0.84814252772227849, 4.4519872907615152]]]),self.functionspace)
5333        res=arg0/arg1        res=arg0/arg1
# Line 5336  class Test_util_overloaded_binary_no_tag Line 5336  class Test_util_overloaded_binary_no_tag
5336        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5337        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5338     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5339     def test_div_overloaded_constData_rank0_constData_rank4(self):     def test_quotient_overloaded_constData_rank0_constData_rank4(self):
5340        arg0=Data(-4.56300388113,self.functionspace)        arg0=Data(-4.56300388113,self.functionspace)
5341        arg1=Data(numarray.array([[[[1.4946807605936971, 2.0772167367453864, -4.4247892116920395, -2.847767949972825], [4.510886998762027, -1.3627771958956538, 3.9780703257559633, -3.3915549896273856], [-2.6906044768711412, 2.8756672928292568, -1.4096303422816825, 0.49961654737888317]], [[4.5877100474234478, 4.7180988422923544, -0.96139055207059165, 3.9683702735457249], [1.8387365771993522, -3.1960432474938729, -2.9946664953421873, 1.1324438983090088], [-2.1077789681630521, 4.1365242800107414, 4.71796394986435, 1.802685436555187]]], [[[0.90724226372239514, 0.13314682438763992, -1.1305640017125018, -1.835267121092051], [-2.5272765293843378, 3.6786560288153058, -1.6051432850511516, -4.0294718968855285], [-1.8829218142572337, 4.9710533987003771, 2.2521195411977013, -3.3829400185551961]], [[-3.9122378359176055, -3.850625363429323, 0.99648794968039667, -0.41419187310360961], [1.3565054301622297, -1.0657769650293627, 4.645096722767784, 2.3031489157219154], [-3.5847499889653269, -1.4380909803387754, -4.8511616960284911, -4.1213430624736338]]], [[[-1.7658093308054648, -4.1510711144338206, -0.49751386525209806, 2.7195627641528466], [-0.15949557340524922, 4.1640932386883112, 4.7852837410922362, 2.0579219676092508], [-2.3582476026454655, 3.8897787918344857, -1.2225035508122293, 4.9978419193227506]], [[0.063444983809236355, -1.6712125407233449, -2.8444009422691217, -1.7614533428473766], [3.8367201134734401, -1.9516137460762795, -1.9552821753727088, -2.6768260567872026], [0.95776174468042363, -4.12359439823644, 0.81049880215928027, -4.7786736065022666]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.4946807605936971, 2.0772167367453864, -4.4247892116920395, -2.847767949972825], [4.510886998762027, -1.3627771958956538, 3.9780703257559633, -3.3915549896273856], [-2.6906044768711412, 2.8756672928292568, -1.4096303422816825, 0.49961654737888317]], [[4.5877100474234478, 4.7180988422923544, -0.96139055207059165, 3.9683702735457249], [1.8387365771993522, -3.1960432474938729, -2.9946664953421873, 1.1324438983090088], [-2.1077789681630521, 4.1365242800107414, 4.71796394986435, 1.802685436555187]]], [[[0.90724226372239514, 0.13314682438763992, -1.1305640017125018, -1.835267121092051], [-2.5272765293843378, 3.6786560288153058, -1.6051432850511516, -4.0294718968855285], [-1.8829218142572337, 4.9710533987003771, 2.2521195411977013, -3.3829400185551961]], [[-3.9122378359176055, -3.850625363429323, 0.99648794968039667, -0.41419187310360961], [1.3565054301622297, -1.0657769650293627, 4.645096722767784, 2.3031489157219154], [-3.5847499889653269, -1.4380909803387754, -4.8511616960284911, -4.1213430624736338]]], [[[-1.7658093308054648, -4.1510711144338206, -0.49751386525209806, 2.7195627641528466], [-0.15949557340524922, 4.1640932386883112, 4.7852837410922362, 2.0579219676092508], [-2.3582476026454655, 3.8897787918344857, -1.2225035508122293, 4.9978419193227506]], [[0.063444983809236355, -1.6712125407233449, -2.8444009422691217, -1.7614533428473766], [3.8367201134734401, -1.9516137460762795, -1.9552821753727088, -2.6768260567872026], [0.95776174468042363, -4.12359439823644, 0.81049880215928027, -4.7786736065022666]]]]),self.functionspace)
5342        res=arg0/arg1        res=arg0/arg1
# Line 5345  class Test_util_overloaded_binary_no_tag Line 5345  class Test_util_overloaded_binary_no_tag
5345        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5346        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5347     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5348     def test_div_overloaded_constData_rank0_expandedData_rank0(self):     def test_quotient_overloaded_constData_rank0_expandedData_rank0(self):
5349        arg0=Data(2.36273490703,self.functionspace)        arg0=Data(2.36273490703,self.functionspace)
5350        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5351        arg1=msk_arg1*(4.23559942222)+(1.-msk_arg1)*(2.79375146456)        arg1=msk_arg1*(4.23559942222)+(1.-msk_arg1)*(2.79375146456)
# Line 5356  class Test_util_overloaded_binary_no_tag Line 5356  class Test_util_overloaded_binary_no_tag
5356        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5357        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5358     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5359     def test_div_overloaded_constData_rank0_expandedData_rank1(self):     def test_quotient_overloaded_constData_rank0_expandedData_rank1(self):
5360        arg0=Data(-0.863670625384,self.functionspace)        arg0=Data(-0.863670625384,self.functionspace)
5361        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5362        arg1=msk_arg1*numarray.array([-2.8559821849537936, 3.1726164740322993])+(1.-msk_arg1)*numarray.array([-0.68587967685299844, 2.1592461254842608])        arg1=msk_arg1*numarray.array([-2.8559821849537936, 3.1726164740322993])+(1.-msk_arg1)*numarray.array([-0.68587967685299844, 2.1592461254842608])
# Line 5367  class Test_util_overloaded_binary_no_tag Line 5367  class Test_util_overloaded_binary_no_tag
5367        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5368        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5369     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5370     def test_div_overloaded_constData_rank0_expandedData_rank2(self):     def test_quotient_overloaded_constData_rank0_expandedData_rank2(self):
5371        arg0=Data(-4.94692685712,self.functionspace)        arg0=Data(-4.94692685712,self.functionspace)
5372        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5373        arg1=msk_arg1*numarray.array([[2.3093529505907684, 1.8761997961936983, 0.068062276984583114, -4.9719118922598513, 1.2628648970634604], [3.0414467848566833, -3.2422208345827839, -2.7975194681198747, 2.6539826066686221, -1.0942073549751918], [3.679393109473434, -3.6778001117031889, -2.8348517675800657, -1.1851476871509004, -3.8641737856996428], [-3.26555816112886, 2.6860478388297651, -3.9606468126691485, -4.6727380164396752, -0.64963659615955827]])+(1.-msk_arg1)*numarray.array([[-0.85014886626487041, -1.6045848813429995, 4.4950316018795, 3.9708446605819923, -2.5703533436314538], [-0.91973583674440551, 3.7833649005025922, -0.72677365544154426, 4.6564695148793547, 0.16733868497418225], [0.88877528911703507, -4.5170260696191971, -1.0721588793006251, 3.4119771543249691, -3.2126965215006464], [-3.5067386418897426, -0.79474849313687734, 4.7829111553907211, -2.7684390813434332, 0.026890086209919062]])        arg1=msk_arg1*numarray.array([[2.3093529505907684, 1.8761997961936983, 0.068062276984583114, -4.9719118922598513, 1.2628648970634604], [3.0414467848566833, -3.2422208345827839, -2.7975194681198747, 2.6539826066686221, -1.0942073549751918], [3.679393109473434, -3.6778001117031889, -2.8348517675800657, -1.1851476871509004, -3.8641737856996428], [-3.26555816112886, 2.6860478388297651, -3.9606468126691485, -4.6727380164396752, -0.64963659615955827]])+(1.-msk_arg1)*numarray.array([[-0.85014886626487041, -1.6045848813429995, 4.4950316018795, 3.9708446605819923, -2.5703533436314538], [-0.91973583674440551, 3.7833649005025922, -0.72677365544154426, 4.6564695148793547, 0.16733868497418225], [0.88877528911703507, -4.5170260696191971, -1.0721588793006251, 3.4119771543249691, -3.2126965215006464], [-3.5067386418897426, -0.79474849313687734, 4.7829111553907211, -2.7684390813434332, 0.026890086209919062]])
# Line 5378  class Test_util_overloaded_binary_no_tag Line 5378  class Test_util_overloaded_binary_no_tag
5378        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5379        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5380     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5381     def test_div_overloaded_constData_rank0_expandedData_rank3(self):     def test_quotient_overloaded_constData_rank0_expandedData_rank3(self):
5382        arg0=Data(4.7612239752,self.functionspace)        arg0=Data(4.7612239752,self.functionspace)
5383        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5384        arg1=msk_arg1*numarray.array([[[-2.5370722145526168, -4.3629282017466053], [-2.4951529695545718, 3.1380299858963809]], [[3.5571207336459665, -1.9149375161776772], [4.4180746719296344, 1.9606798450726481]], [[1.0788639700645177, 1.3830245180830563], [1.1469190526989461, 3.8864473021743269]], [[1.2960469921605853, -0.21271505581906247], [-2.517811863647792, -1.1176168970100187]], [[-4.5401428632876053, 1.7729769126759942], [-0.60525069244101726, -3.805613077469002]], [[1.9167480731514752, 4.8841920519773367], [-4.5025312413488763, -2.6130073152838973]]])+(1.-msk_arg1)*numarray.array([[[-0.015871483675765852, -1.6541480006313689], [-4.2529288013801292, 2.7822014194945099]], [[1.5085403251991956, -1.655784855477874], [-0.6568543925994339, -2.3259851402753151]], [[0.22852158554616864, -2.4902260552757771], [-2.7241851636324754, 4.6904064479890746]], [[-0.51455341317367509, -0.82976993338497973], [-0.42466372680688025, -0.76699623671431016]], [[0.12297731672647849, -2.6539935942436319], [-1.5442481060755151, 4.9718225859580993]], [[3.6611920548160874, -1.4001386885330125], [0.068445415712168334, -2.84490792819591]]])        arg1=msk_arg1*numarray.array([[[-2.5370722145526168, -4.3629282017466053], [-2.4951529695545718, 3.1380299858963809]], [[3.5571207336459665, -1.9149375161776772], [4.4180746719296344, 1.9606798450726481]], [[1.0788639700645177, 1.3830245180830563], [1.1469190526989461, 3.8864473021743269]], [[1.2960469921605853, -0.21271505581906247], [-2.517811863647792, -1.1176168970100187]], [[-4.5401428632876053, 1.7729769126759942], [-0.60525069244101726, -3.805613077469002]], [[1.9167480731514752, 4.8841920519773367], [-4.5025312413488763, -2.6130073152838973]]])+(1.-msk_arg1)*numarray.array([[[-0.015871483675765852, -1.6541480006313689], [-4.2529288013801292, 2.7822014194945099]], [[1.5085403251991956, -1.655784855477874], [-0.6568543925994339, -2.3259851402753151]], [[0.22852158554616864, -2.4902260552757771], [-2.7241851636324754, 4.6904064479890746]], [[-0.51455341317367509, -0.82976993338497973], [-0.42466372680688025, -0.76699623671431016]], [[0.12297731672647849, -2.6539935942436319], [-1.5442481060755151, 4.9718225859580993]], [[3.6611920548160874, -1.4001386885330125], [0.068445415712168334, -2.84490792819591]]])
# Line 5389  class Test_util_overloaded_binary_no_tag Line 5389  class Test_util_overloaded_binary_no_tag
5389        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5390        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5391     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5392     def test_div_overloaded_constData_rank0_expandedData_rank4(self):     def test_quotient_overloaded_constData_rank0_expandedData_rank4(self):
5393        arg0=Data(-1.77757554352,self.functionspace)        arg0=Data(-1.77757554352,self.functionspace)
5394        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5395        arg1=msk_arg1*numarray.array([[[[3.4627739286113908, -0.65439868940868173, 1.5278620174733302, 0.024430472800522907], [1.7460020228800861, 2.244021966048714, -3.3020953020512023, -4.575544462315797], [-1.7262871273985656, 3.3280348525718377, -3.9999784861060981, -3.8229853205434794]], [[0.48161615829237903, -4.323922499526951, 3.1312057493306487, -4.6205034707182122], [-2.6299021394201705, -1.5605926511422172, -1.6849278391931986, -2.6226477344992851], [-0.68667538302815334, 1.8239538383256617, -2.3136335635504057, 3.2207568418004264]]], [[[0.38465013433963513, -4.5821954444295878, -0.51372354937130549, 1.6054285802860253], [-2.9495819623386064, 3.583566418230701, -0.85413525657389222, 2.5189636100625101], [-2.4339409475882903, 3.5386135634581777, -0.013452086167511368, 2.8136635664492466]], [[0.34604490964475154, 0.81066807356521231, -1.7180435717279208, -2.8455925905152792], [3.7266456415946934, 3.7424945298055601, -4.6515421176151808, -3.9253718083679967], [3.7757693906827434, -3.0710322721455627, -1.6781364505415173, -3.702880482824674]]], [[[-4.9080435067971777, 3.9373474398620978, -2.9102078037640289, -2.3861455760154291], [-0.30535345886808329, -0.14666574100751362, 3.8462018981193378, -3.8704125343216766], [1.5325410387316545, 3.8896771871844216, 4.0357198995365486, -4.3411322491065274]], [[0.97611372648148809, 0.77756420355764178, -4.2169527780144325, 0.1269485374959709], [4.3673407265977904, -1.7920660163262001, -4.0888466409316484, -0.55343112299995667], [4.6102418626121331, 2.430421016550314, 0.015091015036765576, 4.3297672834532595]]]])+(1.-msk_arg1)*numarray.array([[[[-2.568063125945689, 3.6758075873914091, 4.6721205615377261, -0.18008733696011525], [-2.6720449257934287, 2.2793985653116184, -3.4102723809570401, -3.8149657351358499], [-2.5022187010978545, -4.1554950981967735, -1.3224493292631232, -0.81941703793439125]], [[4.868357652927962, 1.71865432208374, -4.2915752626314774, -2.7000097376814436], [-2.1229325293388648, 1.7316544743225322, -2.7217907106885475, -2.9069933430833683], [4.0058010415708747, -4.3839383358370689, -1.192112733705847, -2.74752496784338]]], [[[2.5728216667554964, -3.5435101896700107, 1.3802658999226551, -4.1247606443021159], [-2.5060149418618782, -3.9920472301675614, -3.0777263436961331, 0.82621258694888589], [4.7531074608373007, -1.4923410742800747, 3.7752886692664749, -1.8545576758622797]], [[-4.1797498847194925, -1.1101246546741739, 4.6532801525505096, -2.5657753602879718], [3.2557292075393391, 3.1740956157493638, 2.3272652226443435, -2.7393077256053164], [-1.6175524389352605, -0.058678892112294712, -2.2787242124967433, -0.15122155694843364]]], [[[-4.5899726769239333, 3.5612155119641589, -4.4225197073483375, 0.015603834164149788], [-2.9086805431861364, 1.3213616898524698, -3.9186729266306006, -2.4652455809946785], [-0.19497802695558253, -2.8010352776294178, 0.36757395415538596, -4.649430270321079]], [[0.33706981618057696, 4.4234696669302345, 0.9758276617181485, -1.5709392317965607], [4.2249854435209393, -4.200162865274546, -2.671784902114779, -4.837772872730759], [-2.1368273463166343, -4.6953021886637583, -1.5610020731140093, 2.3356311419080313]]]])        arg1=msk_arg1*numarray.array([[[[3.4627739286113908, -0.65439868940868173, 1.5278620174733302, 0.024430472800522907], [1.7460020228800861, 2.244021966048714, -3.3020953020512023, -4.575544462315797], [-1.7262871273985656, 3.3280348525718377, -3.9999784861060981, -3.8229853205434794]], [[0.48161615829237903, -4.323922499526951, 3.1312057493306487, -4.6205034707182122], [-2.6299021394201705, -1.5605926511422172, -1.6849278391931986, -2.6226477344992851], [-0.68667538302815334, 1.8239538383256617, -2.3136335635504057, 3.2207568418004264]]], [[[0.38465013433963513, -4.5821954444295878, -0.51372354937130549, 1.6054285802860253], [-2.9495819623386064, 3.583566418230701, -0.85413525657389222, 2.5189636100625101], [-2.4339409475882903, 3.5386135634581777, -0.013452086167511368, 2.8136635664492466]], [[0.34604490964475154, 0.81066807356521231, -1.7180435717279208, -2.8455925905152792], [3.7266456415946934, 3.7424945298055601, -4.6515421176151808, -3.9253718083679967], [3.7757693906827434, -3.0710322721455627, -1.6781364505415173, -3.702880482824674]]], [[[-4.9080435067971777, 3.9373474398620978, -2.9102078037640289, -2.3861455760154291], [-0.30535345886808329, -0.14666574100751362, 3.8462018981193378, -3.8704125343216766], [1.5325410387316545, 3.8896771871844216, 4.0357198995365486, -4.3411322491065274]], [[0.97611372648148809, 0.77756420355764178, -4.2169527780144325, 0.1269485374959709], [4.3673407265977904, -1.7920660163262001, -4.0888466409316484, -0.55343112299995667], [4.6102418626121331, 2.430421016550314, 0.015091015036765576, 4.3297672834532595]]]])+(1.-msk_arg1)*numarray.array([[[[-2.568063125945689, 3.6758075873914091, 4.6721205615377261, -0.18008733696011525], [-2.6720449257934287, 2.2793985653116184, -3.4102723809570401, -3.8149657351358499], [-2.5022187010978545, -4.1554950981967735, -1.3224493292631232, -0.81941703793439125]], [[4.868357652927962, 1.71865432208374, -4.2915752626314774, -2.7000097376814436], [-2.1229325293388648, 1.7316544743225322, -2.7217907106885475, -2.9069933430833683], [4.0058010415708747, -4.3839383358370689, -1.192112733705847, -2.74752496784338]]], [[[2.5728216667554964, -3.5435101896700107, 1.3802658999226551, -4.1247606443021159], [-2.5060149418618782, -3.9920472301675614, -3.0777263436961331, 0.82621258694888589], [4.7531074608373007, -1.4923410742800747, 3.7752886692664749, -1.8545576758622797]], [[-4.1797498847194925, -1.1101246546741739, 4.6532801525505096, -2.5657753602879718], [3.2557292075393391, 3.1740956157493638, 2.3272652226443435, -2.7393077256053164], [-1.6175524389352605, -0.058678892112294712, -2.2787242124967433, -0.15122155694843364]]], [[[-4.5899726769239333, 3.5612155119641589, -4.4225197073483375, 0.015603834164149788], [-2.9086805431861364, 1.3213616898524698, -3.9186729266306006, -2.4652455809946785], [-0.19497802695558253, -2.8010352776294178, 0.36757395415538596, -4.649430270321079]], [[0.33706981618057696, 4.4234696669302345, 0.9758276617181485, -1.5709392317965607], [4.2249854435209393, -4.200162865274546, -2.671784902114779, -4.837772872730759], [-2.1368273463166343, -4.6953021886637583, -1.5610020731140093, 2.3356311419080313]]]])
# Line 5400  class Test_util_overloaded_binary_no_tag Line 5400  class Test_util_overloaded_binary_no_tag
5400        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5401        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5402     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5403     def test_div_overloaded_constData_rank1_float_rank0(self):     def test_quotient_overloaded_constData_rank1_float_rank0(self):
5404        arg0=Data(numarray.array([-4.6919095076246728, -2.3314119572168543]),self.functionspace)        arg0=Data(numarray.array([-4.6919095076246728, -2.3314119572168543]),self.functionspace)
5405        arg1=2.33042634309        arg1=2.33042634309
5406        res=arg0/arg1        res=arg0/arg1
# Line 5409  class Test_util_overloaded_binary_no_tag Line 5409  class Test_util_overloaded_binary_no_tag
5409        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5410        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5411     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5412     def test_div_overloaded_constData_rank1_array_rank0(self):     def test_quotient_overloaded_constData_rank1_array_rank0(self):
5413        arg0=Data(numarray.array([1.6623719770900465, -1.7721667711563969]),self.functionspace)        arg0=Data(numarray.array([1.6623719770900465, -1.7721667711563969]),self.functionspace)
5414        arg1=numarray.array(0.948804041941)        arg1=numarray.array(0.948804041941)
5415        res=arg0/arg1        res=arg0/arg1
# Line 5418  class Test_util_overloaded_binary_no_tag Line 5418  class Test_util_overloaded_binary_no_tag
5418        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5419        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5420     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5421     def test_div_overloaded_constData_rank1_array_rank1(self):     def test_quotient_overloaded_constData_rank1_array_rank1(self):
5422        arg0=Data(numarray.array([-3.3230332672732099, -3.6300997874480667]),self.functionspace)        arg0=Data(numarray.array([-3.3230332672732099, -3.6300997874480667]),self.functionspace)
5423        arg1=numarray.array([-2.3704951151280431, 1.8278016313594083])        arg1=numarray.array([-2.3704951151280431, 1.8278016313594083])
5424        res=arg0/arg1        res=arg0/arg1
# Line 5427  class Test_util_overloaded_binary_no_tag Line 5427  class Test_util_overloaded_binary_no_tag
5427        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5428        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5429     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5430     def test_div_overloaded_constData_rank1_constData_rank0(self):     def test_quotient_overloaded_constData_rank1_constData_rank0(self):
5431        arg0=Data(numarray.array([-4.2117228251585122, -0.077373340375955557]),self.functionspace)        arg0=Data(numarray.array([-4.2117228251585122, -0.077373340375955557]),self.functionspace)
5432        arg1=Data(-4.02083378559,self.functionspace)        arg1=Data(-4.02083378559,self.functionspace)
5433        res=arg0/arg1        res=arg0/arg1
# Line 5436  class Test_util_overloaded_binary_no_tag Line 5436  class Test_util_overloaded_binary_no_tag
5436        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5437        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5438     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5439     def test_div_overloaded_constData_rank1_constData_rank1(self):     def test_quotient_overloaded_constData_rank1_constData_rank1(self):
5440        arg0=Data(numarray.array([2.2838873194003204, 4.0954865061064982]),self.functionspace)        arg0=Data(numarray.array([2.2838873194003204, 4.0954865061064982]),self.functionspace)
5441        arg1=Data(numarray.array([-0.89973305674607928, 2.1161222961580659]),self.functionspace)        arg1=Data(numarray.array([-0.89973305674607928, 2.1161222961580659]),self.functionspace)
5442        res=arg0/arg1        res=arg0/arg1
# Line 5445  class Test_util_overloaded_binary_no_tag Line 5445  class Test_util_overloaded_binary_no_tag
5445        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5446        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5447     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5448     def test_div_overloaded_constData_rank1_expandedData_rank0(self):     def test_quotient_overloaded_constData_rank1_expandedData_rank0(self):
5449        arg0=Data(numarray.array([1.9512405076586496, -4.9230227324262259]),self.functionspace)        arg0=Data(numarray.array([1.9512405076586496, -4.9230227324262259]),self.functionspace)
5450        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5451        arg1=msk_arg1*(-4.72730635147)+(1.-msk_arg1)*(2.47365983572)        arg1=msk_arg1*(-4.72730635147)+(1.-msk_arg1)*(2.47365983572)
# Line 5456  class Test_util_overloaded_binary_no_tag Line 5456  class Test_util_overloaded_binary_no_tag
5456        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5457        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5458     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5459     def test_div_overloaded_constData_rank1_expandedData_rank1(self):     def test_quotient_overloaded_constData_rank1_expandedData_rank1(self):
5460        arg0=Data(numarray.array([1.5810907020408083, 0.56735398310493768]),self.functionspace)        arg0=Data(numarray.array([1.5810907020408083, 0.56735398310493768]),self.functionspace)
5461        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5462        arg1=msk_arg1*numarray.array([0.61197556118875429, 1.3234499790592817])+(1.-msk_arg1)*numarray.array([-4.5578811745449235, -2.9740367784300559])        arg1=msk_arg1*numarray.array([0.61197556118875429, 1.3234499790592817])+(1.-msk_arg1)*numarray.array([-4.5578811745449235, -2.9740367784300559])
# Line 5467  class Test_util_overloaded_binary_no_tag Line 5467  class Test_util_overloaded_binary_no_tag
5467        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5468        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5469     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5470     def test_div_overloaded_constData_rank2_float_rank0(self):     def test_quotient_overloaded_constData_rank2_float_rank0(self):
5471        arg0=Data(numarray.array([[2.6165681034632957, 4.4449598965285109, 4.3542894190831731, 4.3004700444691082, -1.4327735886729975], [4.9178986796821569, -1.3337584616613309, -3.47717708562443, 3.2561340732611423, 4.5504352295662116], [-3.6600099681024822, 1.6572854738258922, 3.34173080591356, 4.0312264840652219, 4.687281872718593], [3.1043165319352077, 1.9564399745825689, 4.971730422412314, -0.5678000814562143, -1.1168096691507321]]),self.functionspace)        arg0=Data(numarray.array([[2.6165681034632957, 4.4449598965285109, 4.3542894190831731, 4.3004700444691082, -1.4327735886729975], [4.9178986796821569, -1.3337584616613309, -3.47717708562443, 3.2561340732611423, 4.5504352295662116], [-3.6600099681024822, 1.6572854738258922, 3.34173080591356, 4.0312264840652219, 4.687281872718593], [3.1043165319352077, 1.9564399745825689, 4.971730422412314, -0.5678000814562143, -1.1168096691507321]]),self.functionspace)
5472        arg1=1.29148999534        arg1=1.29148999534
5473        res=arg0/arg1        res=arg0/arg1
# Line 5476  class Test_util_overloaded_binary_no_tag Line 5476  class Test_util_overloaded_binary_no_tag
5476        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5477        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5478     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5479     def test_div_overloaded_constData_rank2_array_rank0(self):     def test_quotient_overloaded_constData_rank2_array_rank0(self):
5480        arg0=Data(numarray.array([[-1.58381931538214, -2.5524449400651692, -3.3658141976033615, 1.4409777013213212, 1.7962652893911892], [-1.7267444093615767, -1.9577340731760486, -3.588590449844661, 0.9631140259270401, 1.9962903486085253], [0.45086952873468533, 1.4278603595086947, 0.60088915029480194, 4.6942451574255308, 0.61157832014572033], [-0.75072956269803814, 0.22344692951877487, -0.2131949758892473, -1.9106626823759862, -0.4887617148542045]]),self.functionspace)        arg0=Data(numarray.array([[-1.58381931538214, -2.5524449400651692, -3.3658141976033615, 1.4409777013213212, 1.7962652893911892], [-1.7267444093615767, -1.9577340731760486, -3.588590449844661, 0.9631140259270401, 1.9962903486085253], [0.45086952873468533, 1.4278603595086947, 0.60088915029480194, 4.6942451574255308, 0.61157832014572033], [-0.75072956269803814, 0.22344692951877487, -0.2131949758892473, -1.9106626823759862, -0.4887617148542045]]),self.functionspace)
5481        arg1=numarray.array(-3.83627804)        arg1=numarray.array(-3.83627804)
5482        res=arg0/arg1        res=arg0/arg1
# Line 5485  class Test_util_overloaded_binary_no_tag Line 5485  class Test_util_overloaded_binary_no_tag
5485        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5486        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5487     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5488     def test_div_overloaded_constData_rank2_array_rank2(self):     def test_quotient_overloaded_constData_rank2_array_rank2(self):
5489        arg0=Data(numarray.array([[4.8823472974104334, 4.3613758390592245, 0.18436836430571812, -0.40555708035477167, 4.1261796398443167], [-0.49590540079522683, -1.3410261268540156, -3.264579080153005, -2.3122838557368963, -2.7133740460154021], [1.3616532085187236, -3.2320824985513386, 0.95201425328335443, 1.2026768165933079, -3.6676581759429028], [3.8741975673552567, -2.210718583927803, 4.7663796900168407, 4.6523601686764877, 1.1033524543408699]]),self.functionspace)        arg0=Data(numarray.array([[4.8823472974104334, 4.3613758390592245, 0.18436836430571812, -0.40555708035477167, 4.1261796398443167], [-0.49590540079522683, -1.3410261268540156, -3.264579080153005, -2.3122838557368963, -2.7133740460154021], [1.3616532085187236, -3.2320824985513386, 0.95201425328335443, 1.2026768165933079, -3.6676581759429028], [3.8741975673552567, -2.210718583927803, 4.7663796900168407, 4.6523601686764877, 1.1033524543408699]]),self.functionspace)
5490        arg1=numarray.array([[2.6867537808736977, -4.0269443887579373, 2.013048595935361, 2.7917989124415836, -0.08466618422211436], [-4.6253938289713359, -0.41913549352135426, 1.6907899391852617, -0.2626275715741393, -3.4402058458855054], [3.0602064308057635, -2.7169216499902538, -2.7699342778096439, -1.0598153344495973, 4.17609424186141], [-0.99889915238741978, -4.3601765683209681, 2.4823550172068902, -1.0727802199949932, -4.0014372796122153]])        arg1=numarray.array([[2.6867537808736977, -4.0269443887579373, 2.013048595935361, 2.7917989124415836, -0.08466618422211436], [-4.6253938289713359, -0.41913549352135426, 1.6907899391852617, -0.2626275715741393, -3.4402058458855054], [3.0602064308057635, -2.7169216499902538, -2.7699342778096439, -1.0598153344495973, 4.17609424186141], [-0.99889915238741978, -4.3601765683209681, 2.4823550172068902, -1.0727802199949932, -4.0014372796122153]])
5491        res=arg0/arg1        res=arg0/arg1
# Line 5494  class Test_util_overloaded_binary_no_tag Line 5494  class Test_util_overloaded_binary_no_tag
5494        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5495        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5496     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5497     def test_div_overloaded_constData_rank2_constData_rank0(self):     def test_quotient_overloaded_constData_rank2_constData_rank0(self):
5498        arg0=Data(numarray.array([[4.3128088721702103, -3.1929184276928058, -4.4550921562343593, 1.4272841845822626, -3.5096241544694307], [3.4315971569689125, 4.0382135845403333, -3.6533532213362738, -3.0168456796036724, 4.4090065031170393], [-2.6722130648207019, -2.7166717077591143, 1.5307241928907933, 2.4384962007290403, 2.8705996084496803], [-4.0086696927881524, 4.2006858101123719, -2.0209364140231534, -3.0080544425526288, 1.5424608208526127]]),self.functionspace)        arg0=Data(numarray.array([[4.3128088721702103, -3.1929184276928058, -4.4550921562343593, 1.4272841845822626, -3.5096241544694307], [3.4315971569689125, 4.0382135845403333, -3.6533532213362738, -3.0168456796036724, 4.4090065031170393], [-2.6722130648207019, -2.7166717077591143, 1.5307241928907933, 2.4384962007290403, 2.8705996084496803], [-4.0086696927881524, 4.2006858101123719, -2.0209364140231534, -3.0080544425526288, 1.5424608208526127]]),self.functionspace)
5499        arg1=Data(3.73475844249,self.functionspace)        arg1=Data(3.73475844249,self.functionspace)
5500        res=arg0/arg1        res=arg0/arg1
# Line 5503  class Test_util_overloaded_binary_no_tag Line 5503  class Test_util_overloaded_binary_no_tag
5503        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5504        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5505     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5506     def test_div_overloaded_constData_rank2_constData_rank2(self):     def test_quotient_overloaded_constData_rank2_constData_rank2(self):
5507        arg0=Data(numarray.array([[-4.223676127637912, -2.9976717232736725, 3.6768084516766919, 0.89891165125912309, 3.7924525579392281], [2.9338611978838225, -4.3131052594043489, -3.8106757114515597, 4.9554656912002422, 0.53207878105600059], [-3.5825753607909192, -4.9549228172457127, 0.96267122254188209, -0.062998584519265322, -4.7294891052877759], [1.3328061776336426, 1.1214277593514721, -2.9332245473363141, -3.5634424847579371, 2.3790321411475999]]),self.functionspace)        arg0=Data(numarray.array([[-4.223676127637912, -2.9976717232736725, 3.6768084516766919, 0.89891165125912309, 3.7924525579392281], [2.9338611978838225, -4.3131052594043489, -3.8106757114515597, 4.9554656912002422, 0.53207878105600059], [-3.5825753607909192, -4.9549228172457127, 0.96267122254188209, -0.062998584519265322, -4.7294891052877759], [1.3328061776336426, 1.1214277593514721, -2.9332245473363141, -3.5634424847579371, 2.3790321411475999]]),self.functionspace)
5508        arg1=Data(numarray.array([[3.4678054860011844, 3.3592102864323365, 2.1593081371138219, -1.6722582817147638, -3.8019344391045484], [2.2197467934076549, -3.8410458048169938, -2.58498793492419, -1.7852093885654319, -3.7542650856223525], [2.0766192377017827, 3.376025170232305, -2.9124634805214997, 1.6830840686538124, -0.13646332896710156], [4.7771396109892628, -1.8526086377602602, -0.66589812280112781, 4.1062851627380965, 0.15639677189190326]]),self.functionspace)        arg1=Data(numarray.array([[3.4678054860011844, 3.3592102864323365, 2.1593081371138219, -1.6722582817147638, -3.8019344391045484], [2.2197467934076549, -3.8410458048169938, -2.58498793492419, -1.7852093885654319, -3.7542650856223525], [2.0766192377017827, 3.376025170232305, -2.9124634805214997, 1.6830840686538124, -0.13646332896710156], [4.7771396109892628, -1.8526086377602602, -0.66589812280112781, 4.1062851627380965, 0.15639677189190326]]),self.functionspace)
5509        res=arg0/arg1        res=arg0/arg1
# Line 5512  class Test_util_overloaded_binary_no_tag Line 5512  class Test_util_overloaded_binary_no_tag
5512        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5513        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5514     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5515     def test_div_overloaded_constData_rank2_expandedData_rank0(self):     def test_quotient_overloaded_constData_rank2_expandedData_rank0(self):
5516        arg0=Data(numarray.array([[-3.6427606067254024, 4.8475383574250976, 1.5860825634757125, -4.7323489938150107, 4.5714223729389065], [1.6168990543222872, -0.2415898577030271, -0.2308876544095595, -4.2390138086503848, -4.4307064882055531], [-4.2305771648527735, 1.1944708800808552, 2.5316490927645798, -0.7372753725372041, -0.65054097279150991], [-3.2577077227900206, 1.6627530460018356, 4.3956568549652193, 1.7369991278881081, 4.7939637942364381]]),self.functionspace)        arg0=Data(numarray.array([[-3.6427606067254024, 4.8475383574250976, 1.5860825634757125, -4.7323489938150107, 4.5714223729389065], [1.6168990543222872, -0.2415898577030271, -0.2308876544095595, -4.2390138086503848, -4.4307064882055531], [-4.2305771648527735, 1.1944708800808552, 2.5316490927645798, -0.7372753725372041, -0.65054097279150991], [-3.2577077227900206, 1.6627530460018356, 4.3956568549652193, 1.7369991278881081, 4.7939637942364381]]),self.functionspace)
5517        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5518        arg1=msk_arg1*(-1.13675315331)+(1.-msk_arg1)*(-0.268292932805)        arg1=msk_arg1*(-1.13675315331)+(1.-msk_arg1)*(-0.268292932805)
# Line 5523  class Test_util_overloaded_binary_no_tag Line 5523  class Test_util_overloaded_binary_no_tag
5523        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5524        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5525     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5526     def test_div_overloaded_constData_rank2_expandedData_rank2(self):     def test_quotient_overloaded_constData_rank2_expandedData_rank2(self):
5527        arg0=Data(numarray.array([[3.5111799522701688, -3.1856883713044706, -1.5153564594240065, -4.7601454151211389, 0.86501497059360766], [4.0914563279815717, -4.4864110679757108, -3.6156550411549171, 1.2208109336417872, 4.7552518035475728], [4.1501657340148963, -3.4606179523360767, -4.8509777680311679, 3.8464634654294869, -3.5282409796154592], [-4.262256056941931, 3.0679692535919507, 2.2951515970165364, -0.48850109481454318, -3.7292535041982711]]),self.functionspace)        arg0=Data(numarray.array([[3.5111799522701688, -3.1856883713044706, -1.5153564594240065, -4.7601454151211389, 0.86501497059360766], [4.0914563279815717, -4.4864110679757108, -3.6156550411549171, 1.2208109336417872, 4.7552518035475728], [4.1501657340148963, -3.4606179523360767, -4.8509777680311679, 3.8464634654294869, -3.5282409796154592], [-4.262256056941931, 3.0679692535919507, 2.2951515970165364, -0.48850109481454318, -3.7292535041982711]]),self.functionspace)
5528        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5529        arg1=msk_arg1*numarray.array([[4.9875194926416615, -0.32073028318678354, 3.5013770949966059, 2.6542148978493207, 2.2247944547526632], [1.0162771586802934, -2.5019645114401392, -0.57334992449153166, 0.20525610484781875, -3.4413856905623907], [4.1951658536587004, 2.6308295014958016, 3.3844204148166472, 3.8628396630156114, 0.74420170807912722], [3.4652672857860232, 4.8128629505631153, -3.4619052828485852, -3.0628550716651217, 4.9304633806788569]])+(1.-msk_arg1)*numarray.array([[2.2618750324153867, 2.5401658869774932, 0.041258040465745438, -3.2240673696769031, 2.0222595942932466], [0.80708619944110005, 4.2227685837001196, -4.4096524284029135, -0.85687143649362252, 2.119479979012322], [-3.9360664422376779, -4.157006968699454, 4.5633453342153469, -4.0424332700275958, -3.5901311953989912], [-1.2166114261777183, -3.9862830489547951, 4.5030981874263372, 2.7181286549069474, 4.2925527854537489]])        arg1=msk_arg1*numarray.array([[4.9875194926416615, -0.32073028318678354, 3.5013770949966059, 2.6542148978493207, 2.2247944547526632], [1.0162771586802934, -2.5019645114401392, -0.57334992449153166, 0.20525610484781875, -3.4413856905623907], [4.1951658536587004, 2.6308295014958016, 3.3844204148166472, 3.8628396630156114, 0.74420170807912722], [3.4652672857860232, 4.8128629505631153, -3.4619052828485852, -3.0628550716651217, 4.9304633806788569]])+(1.-msk_arg1)*numarray.array([[2.2618750324153867, 2.5401658869774932, 0.041258040465745438, -3.2240673696769031, 2.0222595942932466], [0.80708619944110005, 4.2227685837001196, -4.4096524284029135, -0.85687143649362252, 2.119479979012322], [-3.9360664422376779, -4.157006968699454, 4.5633453342153469, -4.0424332700275958, -3.5901311953989912], [-1.2166114261777183, -3.9862830489547951, 4.5030981874263372, 2.7181286549069474, 4.2925527854537489]])
# Line 5534  class Test_util_overloaded_binary_no_tag Line 5534  class Test_util_overloaded_binary_no_tag
5534        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5535        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5536     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5537     def test_div_overloaded_constData_rank3_float_rank0(self):     def test_quotient_overloaded_constData_rank3_float_rank0(self):
5538        arg0=Data(numarray.array([[[-4.9383818938254818, 4.5942629742453605], [-3.3516736954458812, 1.7322123987737568]], [[3.1843962341774983, 4.6194843574059199], [1.2316456466250072, 3.868367500032253]], [[-0.26721363492245498, -0.9041137804010706], [-1.4995699109249738, 3.9838495856877252]], [[-2.4587368678608232, -2.1477736143374448], [3.4061121009005006, 4.0831341837149324]], [[-2.9092037512352054, 4.577754438191171], [0.13651497521491152, 0.51887004432362716]], [[-0.13893821977804333, 0.84281606830615363], [0.31552297942309337, 0.060481252078473879]]]),self.functionspace)        arg0=Data(numarray.array([[[-4.9383818938254818, 4.5942629742453605], [-3.3516736954458812, 1.7322123987737568]], [[3.1843962341774983, 4.6194843574059199], [1.2316456466250072, 3.868367500032253]], [[-0.26721363492245498, -0.9041137804010706], [-1.4995699109249738, 3.9838495856877252]], [[-2.4587368678608232, -2.1477736143374448], [3.4061121009005006, 4.0831341837149324]], [[-2.9092037512352054, 4.577754438191171], [0.13651497521491152, 0.51887004432362716]], [[-0.13893821977804333, 0.84281606830615363], [0.31552297942309337, 0.060481252078473879]]]),self.functionspace)
5539        arg1=-3.57625207886        arg1=-3.57625207886
5540        res=arg0/arg1        res=arg0/arg1
# Line 5543  class Test_util_overloaded_binary_no_tag Line 5543  class Test_util_overloaded_binary_no_tag
5543        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5544        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5545     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5546     def test_div_overloaded_constData_rank3_array_rank0(self):     def test_quotient_overloaded_constData_rank3_array_rank0(self):
5547        arg0=Data(numarray.array([[[3.5415327327380641, 4.6801702844340412], [0.41618802137957189, -1.9685725208894569]], [[-3.0083520222289275, -2.291094513654226], [2.9626343194359457, -2.6651865801579087]], [[1.6348161979117908, -3.0705198176217232], [-3.396725228495312, -3.8416107532641455]], [[-2.8764388161670995, -3.1552172235219853], [3.8011814807881841, -3.7494368563476996]], [[-4.4119791696599533, -3.07944591384656], [-3.4486135722451383, 3.818258360943231]], [[2.3539478430257468, -3.3555055033807948], [-2.0071206234414163, 1.9654936360007804]]]),self.functionspace)        arg0=Data(numarray.array([[[3.5415327327380641, 4.6801702844340412], [0.41618802137957189, -1.9685725208894569]], [[-3.0083520222289275, -2.291094513654226], [2.9626343194359457, -2.6651865801579087]], [[1.6348161979117908, -3.0705198176217232], [-3.396725228495312, -3.8416107532641455]], [[-2.8764388161670995, -3.1552172235219853], [3.8011814807881841, -3.7494368563476996]], [[-4.4119791696599533, -3.07944591384656], [-3.4486135722451383, 3.818258360943231]], [[2.3539478430257468, -3.3555055033807948], [-2.0071206234414163, 1.9654936360007804]]]),self.functionspace)
5548        arg1=numarray.array(-1.51915458184)        arg1=numarray.array(-1.51915458184)
5549        res=arg0/arg1        res=arg0/arg1
# Line 5552  class Test_util_overloaded_binary_no_tag Line 5552  class Test_util_overloaded_binary_no_tag
5552        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5553        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5554     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5555     def test_div_overloaded_constData_rank3_array_rank3(self):     def test_quotient_overloaded_constData_rank3_array_rank3(self):
5556        arg0=Data(numarray.array([[[1.5274558176793533, -0.040409249759264299], [-1.672136978160971, 2.8277175751749963]], [[2.0176985747516927, 4.8549565534372441], [-0.17908639207953314, -0.46788475519067152]], [[-3.1512871860347822, 1.7761080757115408], [1.692838908990371, -2.0099542784875579]], [[4.4223926331368233, -4.4523472966026025], [-1.3629772489800116, -4.6297740158746548]], [[1.9980996691995569, -0.34473906898421092], [0.3070942216226813, 0.63920298172092416]], [[1.9245858888065417, -1.2129631475867542], [-1.4086737634787228, 1.6005656044174108]]]),self.functionspace)        arg0=Data(numarray.array([[[1.5274558176793533, -0.040409249759264299], [-1.672136978160971, 2.8277175751749963]], [[2.0176985747516927, 4.8549565534372441], [-0.17908639207953314, -0.46788475519067152]], [[-3.1512871860347822, 1.7761080757115408], [1.692838908990371, -2.0099542784875579]], [[4.4223926331368233, -4.4523472966026025], [-1.3629772489800116, -4.6297740158746548]], [[1.9980996691995569, -0.34473906898421092], [0.3070942216226813, 0.63920298172092416]], [[1.9245858888065417, -1.2129631475867542], [-1.4086737634787228, 1.6005656044174108]]]),self.functionspace)
5557        arg1=numarray.array([[[1.8190553556342071, 0.51676667944010113], [2.329124277183718, -4.7484591324786241]], [[4.4593799498557107, -3.7290040994503091], [3.2794364352465859, -2.284915832265825]], [[0.46298258411229298, 4.1150723439686612], [3.2507743801674778, -4.4060486518839328]], [[-1.685596550770263, 1.5421457414863351], [4.0804498129726401, -1.4332617381395307]], [[4.0056358704983417, 4.0756074424272857], [3.0600420073637675, 1.9833611266956508]], [[0.62285942635296276, 0.18506448511937457], [0.35034677100983025, 3.9509759418254031]]])        arg1=numarray.array([[[1.8190553556342071, 0.51676667944010113], [2.329124277183718, -4.7484591324786241]], [[4.4593799498557107, -3.7290040994503091], [3.2794364352465859, -2.284915832265825]], [[0.46298258411229298, 4.1150723439686612], [3.2507743801674778, -4.4060486518839328]], [[-1.685596550770263, 1.5421457414863351], [4.0804498129726401, -1.4332617381395307]], [[4.0056358704983417, 4.0756074424272857], [3.0600420073637675, 1.9833611266956508]], [[0.62285942635296276, 0.18506448511937457], [0.35034677100983025, 3.9509759418254031]]])
5558        res=arg0/arg1        res=arg0/arg1
# Line 5561  class Test_util_overloaded_binary_no_tag Line 5561  class Test_util_overloaded_binary_no_tag
5561        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5562        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5563     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5564     def test_div_overloaded_constData_rank3_constData_rank0(self):     def test_quotient_overloaded_constData_rank3_constData_rank0(self):
5565        arg0=Data(numarray.array([[[-3.8118030152837665, -2.7306637470293662], [-1.7770607237473146, 0.095002454584742324]], [[0.4561458719664655, 4.2977553503859465], [-0.20650218801172215, -4.4939983551137788]], [[-0.92331909664028622, 2.7263886689755079], [-3.5792622802169349, 3.7094451044875534]], [[4.6926414896433606, -3.7639105760814928], [4.416227646940138, 1.4770417678976324]], [[-2.727795891029837, 1.8546569168537284], [2.7746485671501597, 1.2982754076682816]], [[2.3643061950471349, -1.1023279794389742], [3.9313146772468333, 0.058822333133246474]]]),self.functionspace)        arg0=Data(numarray.array([[[-3.8118030152837665, -2.7306637470293662], [-1.7770607237473146, 0.095002454584742324]], [[0.4561458719664655, 4.2977553503859465], [-0.20650218801172215, -4.4939983551137788]], [[-0.92331909664028622, 2.7263886689755079], [-3.5792622802169349, 3.7094451044875534]], [[4.6926414896433606, -3.7639105760814928], [4.416227646940138, 1.4770417678976324]], [[-2.727795891029837, 1.8546569168537284], [2.7746485671501597, 1.2982754076682816]], [[2.3643061950471349, -1.1023279794389742], [3.9313146772468333, 0.058822333133246474]]]),self.functionspace)
5566        arg1=Data(-0.310252690032,self.functionspace)        arg1=Data(-0.310252690032,self.functionspace)
5567        res=arg0/arg1        res=arg0/arg1
# Line 5570  class Test_util_overloaded_binary_no_tag Line 5570  class Test_util_overloaded_binary_no_tag
5570        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5571        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5572     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5573     def test_div_overloaded_constData_rank3_constData_rank3(self):     def test_quotient_overloaded_constData_rank3_constData_rank3(self):
5574        arg0=Data(numarray.array([[[-3.2741465831795313, -3.3221231152268196], [-3.0922470181619666, 0.29885127433512793]], [[3.6362496834447597, 3.4395749548826551], [-3.8639257756394816, -4.0063078258599729]], [[4.449475202433149, -0.74271115626113993], [-2.4609090738054249, -2.2657634445690658]], [[1.252506551886361, -4.6544142467290879], [1.4362022111052006, -1.982767592167888]], [[2.3213710189349488, -2.3052564260727868], [-3.0563945623115254, -2.2093265873740275]], [[-3.4301379220743589, 4.1930210016030074], [-4.7918501872311623, 2.3408824720772756]]]),self.functionspace)        arg0=Data(numarray.array([[[-3.2741465831795313, -3.3221231152268196], [-3.0922470181619666, 0.29885127433512793]], [[3.6362496834447597, 3.4395749548826551], [-3.8639257756394816, -4.0063078258599729]], [[4.449475202433149, -0.74271115626113993], [-2.4609090738054249, -2.2657634445690658]], [[1.252506551886361, -4.6544142467290879], [1.4362022111052006, -1.982767592167888]], [[2.3213710189349488, -2.3052564260727868], [-3.0563945623115254, -2.2093265873740275]], [[-3.4301379220743589, 4.1930210016030074], [-4.7918501872311623, 2.3408824720772756]]]),self.functionspace)
5575        arg1=Data(numarray.array([[[-1.9323369567692685, 4.610521223529954], [-2.6916167790530885, -4.4848600983385651]], [[3.1458900539557408, -0.51197897221840538], [-0.74140176126872959, -0.72199880229098135]], [[-4.6778461199810373, -1.3539056490770571], [-4.5318218759655915, -0.12545463565171922]], [[2.1372528804373943, 1.5431904098740068], [3.0641396522901818, -4.6001579118182772]], [[-3.1451013859919974, -2.3191823493033348], [-0.26832946189206375, -2.8569232785476197]], [[3.8338159296631265, -4.6480078385056274], [4.8308387942766053, -2.6551926091610492]]]),self.functionspace)        arg1=Data(numarray.array([[[-1.9323369567692685, 4.610521223529954], [-2.6916167790530885, -4.4848600983385651]], [[3.1458900539557408, -0.51197897221840538], [-0.74140176126872959, -0.72199880229098135]], [[-4.6778461199810373, -1.3539056490770571], [-4.5318218759655915, -0.12545463565171922]], [[2.1372528804373943, 1.5431904098740068], [3.0641396522901818, -4.6001579118182772]], [[-3.1451013859919974, -2.3191823493033348], [-0.26832946189206375, -2.8569232785476197]], [[3.8338159296631265, -4.6480078385056274], [4.8308387942766053, -2.6551926091610492]]]),self.functionspace)
5576        res=arg0/arg1        res=arg0/arg1
# Line 5579  class Test_util_overloaded_binary_no_tag Line 5579  class Test_util_overloaded_binary_no_tag
5579        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5580        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5581     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5582     def test_div_overloaded_constData_rank3_expandedData_rank0(self):     def test_quotient_overloaded_constData_rank3_expandedData_rank0(self):
5583        arg0=Data(numarray.array([[[3.5216301703435313, -3.0568779074453634], [-0.82648524576659721, 3.7346917114418403]], [[0.42973301787825413, -2.6887047054313307], [-1.1620217936364865, 2.559575729625795]], [[2.7937050008080275, -3.2116279598049835], [2.913474612408649, 2.6290743621314245]], [[-3.6863352815298214, 4.8696194649328266], [-1.7862778429409909, 2.2156066485611028]], [[-1.5746683164964823, -3.6896583092070223], [0.77993345875836706, -1.3697546416182229]], [[-1.8199292652251486, 4.7716338700254362], [0.27305502006689242, -4.4744785663413822]]]),self.functionspace)        arg0=Data(numarray.array([[[3.5216301703435313, -3.0568779074453634], [-0.82648524576659721, 3.7346917114418403]], [[0.42973301787825413, -2.6887047054313307], [-1.1620217936364865, 2.559575729625795]], [[2.7937050008080275, -3.2116279598049835], [2.913474612408649, 2.6290743621314245]], [[-3.6863352815298214, 4.8696194649328266], [-1.7862778429409909, 2.2156066485611028]], [[-1.5746683164964823, -3.6896583092070223], [0.77993345875836706, -1.3697546416182229]], [[-1.8199292652251486, 4.7716338700254362], [0.27305502006689242, -4.4744785663413822]]]),self.functionspace)
5584        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5585        arg1=msk_arg1*(3.77332450624)+(1.-msk_arg1)*(2.78973450911)        arg1=msk_arg1*(3.77332450624)+(1.-msk_arg1)*(2.78973450911)
# Line 5590  class Test_util_overloaded_binary_no_tag Line 5590  class Test_util_overloaded_binary_no_tag
5590        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5591        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5592     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5593     def test_div_overloaded_constData_rank3_expandedData_rank3(self):     def test_quotient_overloaded_constData_rank3_expandedData_rank3(self):
5594        arg0=Data(numarray.array([[[3.3460560206471559, 3.9429065150274738], [-4.0690020023604889, -2.7992991831481442]], [[-0.8109479343188557, -1.6372129368702315], [-1.7551517698005368, -2.3944389587870574]], [[-3.1771766832387782, 4.8037508914991083], [-2.4878231197516021, 3.5469179719945796]], [[1.8098313084545588, 2.2481862523086313], [4.367750406142596, 0.72928066811825687]], [[2.1837570936425816, 0.26776752926477076], [-2.7866462514972143, -1.4416721112681499]], [[3.1768583574641376, -2.539056891011847], [-3.4990592624298045, 1.6010252799532134]]]),self.functionspace)        arg0=Data(numarray.array([[[3.3460560206471559, 3.9429065150274738], [-4.0690020023604889, -2.7992991831481442]], [[-0.8109479343188557, -1.6372129368702315], [-1.7551517698005368, -2.3944389587870574]], [[-3.1771766832387782, 4.8037508914991083], [-2.4878231197516021, 3.5469179719945796]], [[1.8098313084545588, 2.2481862523086313], [4.367750406142596, 0.72928066811825687]], [[2.1837570936425816, 0.26776752926477076], [-2.7866462514972143, -1.4416721112681499]], [[3.1768583574641376, -2.539056891011847], [-3.4990592624298045, 1.6010252799532134]]]),self.functionspace)
5595        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5596        arg1=msk_arg1*numarray.array([[[4.7662547126075552, 4.9396338312307222], [2.626480529867222, -2.2230665271274654]], [[0.081150032801920347, -4.4960334572487701], [-2.7446288035599906, -1.9624659172973224]], [[-1.7263788861372653, -0.5386133879550723], [-1.5354726034474586, -4.4304723632205274]], [[0.88257731646088544, 1.1877322072279037], [2.7550656265900839, 4.1943964533755]], [[-3.2542087308268428, 2.9241889786618156], [-0.20999511218406219, 0.70541446648579686]], [[4.9247938754555669, 1.0460421025250355], [-4.6631516801949635, -3.1150708876411715]]])+(1.-msk_arg1)*numarray.array([[[-3.7732499291966026, 1.8629648090071509], [0.28894370267904534, 4.7822714216282112]], [[0.57301967216231287, -3.4489813465108154], [4.1254030543939901, 1.0575152392327141]], [[0.78687940599385087, -4.3411578826759412], [4.9320106212239665, 2.9921241993323608]], [[-4.7441202829031308, 0.61647791997378043], [4.4843288294920054, 3.4404971636781596]], [[-4.1657904807541133, -2.7758042010781523], [1.7744409387628979, 4.7499407893724133]], [[-4.1969959078818144, 4.7291009420633738], [-0.87635153666952093, -1.0297909762117929]]])        arg1=msk_arg1*numarray.array([[[4.7662547126075552, 4.9396338312307222], [2.626480529867222, -2.2230665271274654]], [[0.081150032801920347, -4.4960334572487701], [-2.7446288035599906, -1.9624659172973224]], [[-1.7263788861372653, -0.5386133879550723], [-1.5354726034474586, -4.4304723632205274]], [[0.88257731646088544, 1.1877322072279037], [2.7550656265900839, 4.1943964533755]], [[-3.2542087308268428, 2.9241889786618156], [-0.20999511218406219, 0.70541446648579686]], [[4.9247938754555669, 1.0460421025250355], [-4.6631516801949635, -3.1150708876411715]]])+(1.-msk_arg1)*numarray.array([[[-3.7732499291966026, 1.8629648090071509], [0.28894370267904534, 4.7822714216282112]], [[0.57301967216231287, -3.4489813465108154], [4.1254030543939901, 1.0575152392327141]], [[0.78687940599385087, -4.3411578826759412], [4.9320106212239665, 2.9921241993323608]], [[-4.7441202829031308, 0.61647791997378043], [4.4843288294920054, 3.4404971636781596]], [[-4.1657904807541133, -2.7758042010781523], [1.7744409387628979, 4.7499407893724133]], [[-4.1969959078818144, 4.7291009420633738], [-0.87635153666952093, -1.0297909762117929]]])
# Line 5601  class Test_util_overloaded_binary_no_tag Line 5601  class Test_util_overloaded_binary_no_tag
5601        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5602        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5603     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5604     def test_div_overloaded_constData_rank4_float_rank0(self):     def test_quotient_overloaded_constData_rank4_float_rank0(self):
5605        arg0=Data(numarray.array([[[[-4.899897955446189, 1.8545587121230733, 0.44602070968963226, 1.5653851170011732], [-3.1969104701030302, -1.3044859695579292, 2.8772779804663156, -3.0694704706488296], [-0.22738540534536256, 3.8762798001948582, 0.52592214032583851, -4.0183453926649477]], [[3.6392604285809078, -3.1353258106573367, 3.3609466904147869, -1.3248033917634263], [-2.6289369338057145, 1.4492341024480639, -0.095002785387556798, -4.2478514742128981], [0.43439220274257728, 4.249455471256212, 0.47822670102636078, -0.65606939292081812]]], [[[-2.1939335545992398, 1.4699312110403904, -3.7642367565730064, 1.2495966999821455], [1.9999965053150168, -3.3727848598603294, 4.1095796456054643, -3.0605666809094068], [-1.2917390084880118, 4.9142128240624174, 2.6206700267014522, -1.4659864122513544]], [[-1.2172227520451049, 0.37734384246795294, 0.68835894972758815, -0.89729267253853795], [-2.9219166637418672, 2.9963555171504623, 1.7194253528414558, -2.7408016558182426], [-4.5680126546763731, -4.7007698604409187, 2.2014979229380689, -4.1498105357523478]]], [[[-4.1492453396954367, -0.12848076787493579, -4.8304265204404251, 3.96178916111303], [0.17935709119953991, -3.2086809525217475, -1.4732972541736289, 0.92614205796981608], [3.9032916754246152, -3.843963100519685, 1.0949408053995384, -3.8808899218035888]], [[-3.3464503656179256, 3.6890860890206891, 4.755066059996448, 3.7424351052036045], [1.0482641469612624, -4.2096411298370873, 4.9055926600486206, 0.8816617997206837], [-3.21395810789322, -3.994464711396577, 4.7453285414421966, -4.7039389255024942]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-4.899897955446189, 1.8545587121230733, 0.44602070968963226, 1.5653851170011732], [-3.1969104701030302, -1.3044859695579292, 2.8772779804663156, -3.0694704706488296], [-0.22738540534536256, 3.8762798001948582, 0.52592214032583851, -4.0183453926649477]], [[3.6392604285809078, -3.1353258106573367, 3.3609466904147869, -1.3248033917634263], [-2.6289369338057145, 1.4492341024480639, -0.095002785387556798, -4.2478514742128981], [0.43439220274257728, 4.249455471256212, 0.47822670102636078, -0.65606939292081812]]], [[[-2.1939335545992398, 1.4699312110403904, -3.7642367565730064, 1.2495966999821455], [1.9999965053150168, -3.3727848598603294, 4.1095796456054643, -3.0605666809094068], [-1.2917390084880118, 4.9142128240624174, 2.6206700267014522, -1.4659864122513544]], [[-1.2172227520451049, 0.37734384246795294, 0.68835894972758815, -0.89729267253853795], [-2.9219166637418672, 2.9963555171504623, 1.7194253528414558, -2.7408016558182426], [-4.5680126546763731, -4.7007698604409187, 2.2014979229380689, -4.1498105357523478]]], [[[-4.1492453396954367, -0.12848076787493579, -4.8304265204404251, 3.96178916111303], [0.17935709119953991, -3.2086809525217475, -1.4732972541736289, 0.92614205796981608], [3.9032916754246152, -3.843963100519685, 1.0949408053995384, -3.8808899218035888]], [[-3.3464503656179256, 3.6890860890206891, 4.755066059996448, 3.7424351052036045], [1.0482641469612624, -4.2096411298370873, 4.9055926600486206, 0.8816617997206837], [-3.21395810789322, -3.994464711396577, 4.7453285414421966, -4.7039389255024942]]]]),self.functionspace)
5606        arg1=-2.28817037433        arg1=-2.28817037433
5607        res=arg0/arg1        res=arg0/arg1
# Line 5610  class Test_util_overloaded_binary_no_tag Line 5610  class Test_util_overloaded_binary_no_tag
5610        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5611        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5612     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5613     def test_div_overloaded_constData_rank4_array_rank0(self):     def test_quotient_overloaded_constData_rank4_array_rank0(self):
5614        arg0=Data(numarray.array([[[[-3.16757205465822, -0.50479711248921788, 1.6788221631211204, 3.7770951129415167], [-1.5892122638067363, -2.6055467002131838, 4.6122507540887288, -1.2953855526057891], [1.1641170473798059, 4.5241918166931256, -2.5313540212143879, -0.24897855837369054]], [[0.72415331148364981, 2.1882186070814456, 4.8444270870950916, -2.5411609923764544], [-1.8251749655190208, 3.7884384834876101, -4.3017896892676024, -1.2725668231064335], [-3.50682036387574, 1.3786262546295811, 1.5305012504844644, -4.6290512301253504]]], [[[-4.8365859954473951, -0.91172483721318009, 2.1491640936693726, 2.4998516523363943], [2.1513221323901144, -4.4196321614120766, -0.038664617094972265, -4.9487877542133525], [-1.1935599101218139, 0.62673671373246975, -0.13842966546214441, -4.309383472684206]], [[0.95881131707193035, 2.9825648114082925, -1.2109303249637016, -3.7232314920651643], [2.2468683421102673, -1.6916110844871204, 1.8718180796281603, -4.0615030110076464], [-0.65272316690494581, -2.8072415950523935, -4.0443513520455685, -4.3765191556200929]]], [[[1.1962558413249411, 4.0308682722625733, 2.1608496470347038, 0.79128773647734629], [-4.5584375624314397, -2.6095621451567999, 2.1335279643128331, 3.7654654752431895], [-4.7296396223634485, 4.0922129916868517, -1.8738130663782968, 2.5869805427995898]], [[2.6284713209892381, -3.1612446534964378, -0.38126215239507211, 1.7678262783756358], [0.37994738386609139, 0.756123754023033, -4.7105102581178295, 3.7176099342507314], [3.3714519810083559, -2.6681110538782415, 2.2136248569758301, -0.91170117491244707]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-3.16757205465822, -0.50479711248921788, 1.6788221631211204, 3.7770951129415167], [-1.5892122638067363, -2.6055467002131838, 4.6122507540887288, -1.2953855526057891], [1.1641170473798059, 4.5241918166931256, -2.5313540212143879, -0.24897855837369054]], [[0.72415331148364981, 2.1882186070814456, 4.8444270870950916, -2.5411609923764544], [-1.8251749655190208, 3.7884384834876101, -4.3017896892676024, -1.2725668231064335], [-3.50682036387574, 1.3786262546295811, 1.5305012504844644, -4.6290512301253504]]], [[[-4.8365859954473951, -0.91172483721318009, 2.1491640936693726, 2.4998516523363943], [2.1513221323901144, -4.4196321614120766, -0.038664617094972265, -4.9487877542133525], [-1.1935599101218139, 0.62673671373246975, -0.13842966546214441, -4.309383472684206]], [[0.95881131707193035, 2.9825648114082925, -1.2109303249637016, -3.7232314920651643], [2.2468683421102673, -1.6916110844871204, 1.8718180796281603, -4.0615030110076464], [-0.65272316690494581, -2.8072415950523935, -4.0443513520455685, -4.3765191556200929]]], [[[1.1962558413249411, 4.0308682722625733, 2.1608496470347038, 0.79128773647734629], [-4.5584375624314397, -2.6095621451567999, 2.1335279643128331, 3.7654654752431895], [-4.7296396223634485, 4.0922129916868517, -1.8738130663782968, 2.5869805427995898]], [[2.6284713209892381, -3.1612446534964378, -0.38126215239507211, 1.7678262783756358], [0.37994738386609139, 0.756123754023033, -4.7105102581178295, 3.7176099342507314], [3.3714519810083559, -2.6681110538782415, 2.2136248569758301, -0.91170117491244707]]]]),self.functionspace)
5615        arg1=numarray.array(-2.06081324758)        arg1=numarray.array(-2.06081324758)
5616        res=arg0/arg1        res=arg0/arg1
# Line 5619  class Test_util_overloaded_binary_no_tag Line 5619  class Test_util_overloaded_binary_no_tag
5619        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5620        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5621     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5622     def test_div_overloaded_constData_rank4_array_rank4(self):     def test_quotient_overloaded_constData_rank4_array_rank4(self):
5623        arg0=Data(numarray.array([[[[-1.0904546884462487, 1.3334257852891209, -0.22603178304485283, 0.18289397212996583], [-3.7181686664659419, -2.8225796632316902, 1.2180712114642667, -4.6471962445069916], [-3.3219144210330684, -2.8630553803613612, 1.3544128565543554, 3.3768354265741571]], [[-0.87688000999399751, 0.77379878214848752, 1.6088664211586536, 1.5108386468492343], [-1.8270660022336238, 2.3287052166425966, 1.7593570573994599, -1.0400913774856746], [0.3402514268753718, -3.4951840496256947, 1.8602561947704181, -4.5379996687843622]]], [[[0.2812285717584615, -4.3769139128784227, -4.928625992431285, 2.4616622772820138], [-1.1277071206794465, -1.9674422176660755, -1.4326046643359422, 3.9225603914081972], [-4.8841013697199713, -1.9686191337559555, -2.6185495979380025, 4.133006569069428]], [[1.9491771263403663, -2.7172692912122933, 1.6008146426801684, -0.60777456069960767], [-2.8710251130186695, 3.6587482867615417, 3.4776534670955357, 2.4279061967266156], [-0.20493995736069781, 1.0216254351691187, 3.1304908369408029, 4.1924440263025904]]], [[[2.4631234661710639, -4.8181363107981792, -4.011180971149261, 4.0124761594307614], [-1.706588794554631, -1.5514906834760778, -1.0794675603812962, 4.8457140893577382], [4.5785254798766974, 1.207713492827752, -0.59841302556737652, -1.3697809737485143]], [[-3.8464579860536219, -1.260600185798384, 3.9990832690121785, -4.5486212512751347], [4.9974814121590931, 2.003862757961655, 2.2521347013428841, 1.6448200689357311], [-0.72745330552622178, 4.1349895995354764, -4.6922278226722334, -2.0069683572955688]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-1.0904546884462487, 1.3334257852891209, -0.22603178304485283, 0.18289397212996583], [-3.7181686664659419, -2.8225796632316902, 1.2180712114642667, -4.6471962445069916], [-3.3219144210330684, -2.8630553803613612, 1.3544128565543554, 3.3768354265741571]], [[-0.87688000999399751, 0.77379878214848752, 1.6088664211586536, 1.5108386468492343], [-1.8270660022336238, 2.3287052166425966, 1.7593570573994599, -1.0400913774856746], [0.3402514268753718, -3.4951840496256947, 1.8602561947704181, -4.5379996687843622]]], [[[0.2812285717584615, -4.3769139128784227, -4.928625992431285, 2.4616622772820138], [-1.1277071206794465, -1.9674422176660755, -1.4326046643359422, 3.9225603914081972], [-4.8841013697199713, -1.9686191337559555, -2.6185495979380025, 4.133006569069428]], [[1.9491771263403663, -2.7172692912122933, 1.6008146426801684, -0.60777456069960767], [-2.8710251130186695, 3.6587482867615417, 3.4776534670955357, 2.4279061967266156], [-0.20493995736069781, 1.0216254351691187, 3.1304908369408029, 4.1924440263025904]]], [[[2.4631234661710639, -4.8181363107981792, -4.011180971149261, 4.0124761594307614], [-1.706588794554631, -1.5514906834760778, -1.0794675603812962, 4.8457140893577382], [4.5785254798766974, 1.207713492827752, -0.59841302556737652, -1.3697809737485143]], [[-3.8464579860536219, -1.260600185798384, 3.9990832690121785, -4.5486212512751347], [4.9974814121590931, 2.003862757961655, 2.2521347013428841, 1.6448200689357311], [-0.72745330552622178, 4.1349895995354764, -4.6922278226722334, -2.0069683572955688]]]]),self.functionspace)
5624        arg1=numarray.array([[[[-0.60440032943502064, -3.875914104480751, -0.58280980430530427, -2.3163677708493715], [-1.6465671766437637, -3.7691849817545107, -3.2108357220825856, -1.7440636117701267], [-4.6628024270662998, -2.4458176860565017, 0.10683632199126691, 1.5802772529840965]], [[-2.2347207138306779, -4.4056047517802188, 4.5090496642095488, 4.014975611172213], [-1.188897015979741, 3.6920042476050394, -2.5532449990863846, -4.0606938164677562], [4.4197042202445953, -4.5619348496559375, 0.82776640282486014, 4.1566732111698705]]], [[[1.5794789714458668, -3.0570641564181464, 3.8501898573628814, -0.7953567867700384], [-3.7392729570887018, -4.0581342793228199, -3.9245962674980071, -1.9180517504817018], [-4.9091654496139983, -2.1942628059641658, -0.30462112262014696, -1.4571673345824845]], [[-2.048752511236116, -1.6918563022326905, -1.7606950089245386, 1.7532539023144835], [2.3911474287014753, 0.51197130208550679, -0.32269550477930231, 2.6320236454679682], [-0.95441173678796432, -2.8880590488837141, -2.3748871562551175, 1.0995331217286575]]], [[[3.1458049432219291, 4.323466533283268, -0.56637031859309594, 2.8287450298684345], [4.0619469469584484, -2.764332094025046, 4.7192476920935214, 0.59654188476619385], [2.3781695750773881, 2.5854483322542468, -2.3731765570370698, -1.537712244261634]], [[2.4750970686958755, 4.7571761939897321, 2.7621753185494011, 3.7118252942974852], [-1.989099631041189, -1.751821460678201, 2.9677164677803027, 1.2221562891457172], [3.8582858774463862, -0.54255471478740525, -1.6536059202887965, 3.7165005964984879]]]])        arg1=numarray.array([[[[-0.60440032943502064, -3.875914104480751, -0.58280980430530427, -2.3163677708493715], [-1.6465671766437637, -3.7691849817545107, -3.2108357220825856, -1.7440636117701267], [-4.6628024270662998, -2.4458176860565017, 0.10683632199126691, 1.5802772529840965]], [[-2.2347207138306779, -4.4056047517802188, 4.5090496642095488, 4.014975611172213], [-1.188897015979741, 3.6920042476050394, -2.5532449990863846, -4.0606938164677562], [4.4197042202445953, -4.5619348496559375, 0.82776640282486014, 4.1566732111698705]]], [[[1.5794789714458668, -3.0570641564181464, 3.8501898573628814, -0.7953567867700384], [-3.7392729570887018, -4.0581342793228199, -3.9245962674980071, -1.9180517504817018], [-4.9091654496139983, -2.1942628059641658, -0.30462112262014696, -1.4571673345824845]], [[-2.048752511236116, -1.6918563022326905, -1.7606950089245386, 1.7532539023144835], [2.3911474287014753, 0.51197130208550679, -0.32269550477930231, 2.6320236454679682], [-0.95441173678796432, -2.8880590488837141, -2.3748871562551175, 1.0995331217286575]]], [[[3.1458049432219291, 4.323466533283268, -0.56637031859309594, 2.8287450298684345], [4.0619469469584484, -2.764332094025046, 4.7192476920935214, 0.59654188476619385], [2.3781695750773881, 2.5854483322542468, -2.3731765570370698, -1.537712244261634]], [[2.4750970686958755, 4.7571761939897321, 2.7621753185494011, 3.7118252942974852], [-1.989099631041189, -1.751821460678201, 2.9677164677803027, 1.2221562891457172], [3.8582858774463862, -0.54255471478740525, -1.6536059202887965, 3.7165005964984879]]]])
5625        res=arg0/arg1        res=arg0/arg1
# Line 5628  class Test_util_overloaded_binary_no_tag Line 5628  class Test_util_overloaded_binary_no_tag
5628        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5629        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5630     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5631     def test_div_overloaded_constData_rank4_constData_rank0(self):     def test_quotient_overloaded_constData_rank4_constData_rank0(self):
5632        arg0=Data(numarray.array([[[[1.1477780587460726, -0.30048623118843398, 4.9271179045017472, -4.5738511373597976], [-0.62075020987274332, -4.7370346225608202, -3.910927137656961, -0.2928405904964233], [0.70813720290879623, 2.5684616881624498, -2.0182146484975272, 3.1945936071555963]], [[-4.8252297165345777, -2.4849710753779575, -2.9836045084236664, -3.267831134175494], [2.328833954176206, 2.3753653198546809, 3.7196084190795382, 4.9282586786384126], [4.9064344698572242, 0.42034604823578725, 1.3590767941136948, -3.8361270324300834]]], [[[-0.58082301606929576, 4.209657064614289, -4.8777725238941008, -0.081999525262073547], [3.0991677864127016, 2.4825428269650178, -4.1249866067694789, -1.8546788009945612], [3.0090037191554053, 1.8912852666170741, -1.5822853918527668, 1.8366209311741386]], [[2.2468956977970036, -1.4835814386127422, 2.6411282262893003, 3.8260660649513714], [-4.2385065844551484, -3.9694000646480032, 2.2991693765568408, 3.3167146728641637], [-0.69539213078418527, 3.3055535688576558, -2.8589174012095486, -0.092102681457321367]]], [[[1.7850397354272296, 2.2300043238192346, 2.2951969214382224, 4.2948598150342239], [2.859726116774949, 3.6847644001572242, 2.4615450236096512, -3.2402937486518049], [-2.8921263782820636, 0.98100923455332723, 1.1629982675505612, -1.1066905548506298]], [[4.7889075216040169, 0.46758725898206865, -1.4759259159368576, 2.0305205089619953], [3.3735874148449128, 2.2326506941124986, -2.3679862103803484, -3.4301879259368673], [-4.5678038655756694, 0.26833562401225119, -4.0723463323392384, 4.8072943763492209]]]]),self.functionspace)        arg0=Data(numarray.array([[[[1.1477780587460726, -0.30048623118843398, 4.9271179045017472, -4.5738511373597976], [-0.62075020987274332, -4.7370346225608202, -3.910927137656961, -0.2928405904964233], [0.70813720290879623, 2.5684616881624498, -2.0182146484975272, 3.1945936071555963]], [[-4.8252297165345777, -2.4849710753779575, -2.9836045084236664, -3.267831134175494], [2.328833954176206, 2.3753653198546809, 3.7196084190795382, 4.9282586786384126], [4.9064344698572242, 0.42034604823578725, 1.3590767941136948, -3.8361270324300834]]], [[[-0.58082301606929576, 4.209657064614289, -4.8777725238941008, -0.081999525262073547], [3.0991677864127016, 2.4825428269650178, -4.1249866067694789, -1.8546788009945612], [3.0090037191554053, 1.8912852666170741, -1.5822853918527668, 1.8366209311741386]], [[2.2468956977970036, -1.4835814386127422, 2.6411282262893003, 3.8260660649513714], [-4.2385065844551484, -3.9694000646480032, 2.2991693765568408, 3.3167146728641637], [-0.69539213078418527, 3.3055535688576558, -2.8589174012095486, -0.092102681457321367]]], [[[1.7850397354272296, 2.2300043238192346, 2.2951969214382224, 4.2948598150342239], [2.859726116774949, 3.6847644001572242, 2.4615450236096512, -3.2402937486518049], [-2.8921263782820636, 0.98100923455332723, 1.1629982675505612, -1.1066905548506298]], [[4.7889075216040169, 0.46758725898206865, -1.4759259159368576, 2.0305205089619953], [3.3735874148449128, 2.2326506941124986, -2.3679862103803484, -3.4301879259368673], [-4.5678038655756694, 0.26833562401225119, -4.0723463323392384, 4.8072943763492209]]]]),self.functionspace)
5633        arg1=Data(1.25152854037,self.functionspace)        arg1=Data(1.25152854037,self.functionspace)
5634        res=arg0/arg1        res=arg0/arg1
# Line 5637  class Test_util_overloaded_binary_no_tag Line 5637  class Test_util_overloaded_binary_no_tag
5637        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5638        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5639     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5640     def test_div_overloaded_constData_rank4_constData_rank4(self):     def test_quotient_overloaded_constData_rank4_constData_rank4(self):
5641        arg0=Data(numarray.array([[[[-3.5878440070279183, -0.1700996809165245, -4.1412468054894536, -2.0146265772801897], [0.55744045313737622, -0.52187183646786295, 1.0643260641164831, 2.2673056698704137], [-1.9080389547964294, -4.9003327611729315, -3.0538031853017733, 2.1559834164422034]], [[1.8811125433971316, -3.6916344922332978, -4.2062395558468682, 3.7495181480655067], [2.5137081712456357, 1.4133284971486884, 3.8076582726700163, 2.6357723857970363], [4.269562544289716, 4.1635604068507739, 3.7304106982614673, -3.5140079429955429]]], [[[1.8373054437788019, 3.0361519630331628, 2.9877077445004421, 3.0341858153696286], [-4.9042733402549432, -3.7608695768218303, 4.0341909392906281, 4.9801935191941098], [-3.6066047852790186, -4.6680763845436903, -4.8384904751126481, -1.9831234078462545]], [[-3.7070713376869637, -1.2906402026465114, -2.3043901476311057, -2.2864913724053171], [4.8747446391483269, -0.35138766428814527, -4.383573712165699, -1.2543890355891607], [-1.9360914310397925, -4.7050922462630069, -2.6840952778213301, -0.15611556547080241]]], [[[-2.6025641931532126, -3.4694171310094135, 4.2230178219007328, -2.168997481514181], [-4.8479803382062645, -1.7287262092540026, 0.10648488115811183, 4.772773926420804], [-0.45440587882830119, 4.1337671129268099, -0.6610150140630191, -2.4754686490143141]], [[-2.9322114375478812, 3.3192757415210448, -3.6933238643237463, 3.520882954677603], [-3.3966174668671423, -4.8857477036463193, 1.898625940301697, 2.5405227607451994], [2.7447507748804529, -1.1964276678737527, 0.081547685768406097, -3.2270714621528906]]]]),self.functionspace)        arg0=Data(numarray.array([[[[-3.5878440070279183, -0.1700996809165245, -4.1412468054894536, -2.0146265772801897], [0.55744045313737622, -0.52187183646786295, 1.0643260641164831, 2.2673056698704137], [-1.9080389547964294, -4.9003327611729315, -3.0538031853017733, 2.1559834164422034]], [[1.8811125433971316, -3.6916344922332978, -4.2062395558468682, 3.7495181480655067], [2.5137081712456357, 1.4133284971486884, 3.8076582726700163, 2.6357723857970363], [4.269562544289716, 4.1635604068507739, 3.7304106982614673, -3.5140079429955429]]], [[[1.8373054437788019, 3.0361519630331628, 2.9877077445004421, 3.0341858153696286], [-4.9042733402549432, -3.7608695768218303, 4.0341909392906281, 4.9801935191941098], [-3.6066047852790186, -4.6680763845436903, -4.8384904751126481, -1.9831234078462545]], [[-3.7070713376869637, -1.2906402026465114, -2.3043901476311057, -2.2864913724053171], [4.8747446391483269, -0.35138766428814527, -4.383573712165699, -1.2543890355891607], [-1.9360914310397925, -4.7050922462630069, -2.6840952778213301, -0.15611556547080241]]], [[[-2.6025641931532126, -3.4694171310094135, 4.2230178219007328, -2.168997481514181], [-4.8479803382062645, -1.7287262092540026, 0.10648488115811183, 4.772773926420804], [-0.45440587882830119, 4.1337671129268099, -0.6610150140630191, -2.4754686490143141]], [[-2.9322114375478812, 3.3192757415210448, -3.6933238643237463, 3.520882954677603], [-3.3966174668671423, -4.8857477036463193, 1.898625940301697, 2.5405227607451994], [2.7447507748804529, -1.1964276678737527, 0.081547685768406097, -3.2270714621528906]]]]),self.functionspace)
5642        arg1=Data(numarray.array([[[[-1.4192236603533583, 1.334627778091539, -0.44475276835635658, 2.6354943100394488], [4.8757948458992537, -0.30154755289694268, 0.018393073492706691, -4.7503904846814313], [0.036159739130172674, -3.7073317173047835, 2.4133732168704487, 4.7030266195492985]], [[2.2052107720673995, -4.7574153968443564, -0.73430661365261329, 4.3961081848547607], [-3.6100471425175451, -1.153028380090154, 0.4238877374824277, -1.4334288568505382], [-3.6688773031429012, -2.2503468718797546, -3.5254650928078468, 3.0765751150677261]]], [[[2.1998266217312974, 1.1748827369587067, -4.8630189420301884, -4.6282652208324171], [-4.6622508113493568, -1.0980110611292626, -3.8798174063293422, 2.9619355569286832], [-1.3838634843552611, -1.5458925504765042, 4.7102488188535361, 4.6423848950616016]], [[-1.6023691345389235, 2.823379237552766, 1.5564304425869313, 3.6952029309612282], [-4.4137044453792731, -1.6529088178640428, 2.9544637916450798, 2.3508449135824456], [-2.6989124137760303, -2.1745251170743285, -1.6786743431844675, -0.79707132252102753]]], [[[-2.5880751009677572, -4.3938522846248231, -0.96036936099589543, -3.327649852368042], [2.6342745476495244, 2.2689105136464889, 4.2433705235112669, -4.3448259206320907], [1.2148929711476715, -1.6987181147931962, -3.1226858533780053, 1.3917325568999797]], [[2.0186152568464655, -3.5046259094065322, 4.6416937208399904, -2.0802257070892285], [-2.3193800420129715, -0.67871525107829633, -2.2781158494394047, -0.40136884218995128], [1.7033440478745678, 3.4923796518388617, 3.1365103869960596, 1.7243239074935914]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-1.4192236603533583, 1.334627778091539, -0.44475276835635658, 2.6354943100394488], [4.8757948458992537, -0.30154755289694268, 0.018393073492706691, -4.7503904846814313], [0.036159739130172674, -3.7073317173047835, 2.4133732168704487, 4.7030266195492985]], [[2.2052107720673995, -4.7574153968443564, -0.73430661365261329, 4.3961081848547607], [-3.6100471425175451, -1.153028380090154, 0.4238877374824277, -1.4334288568505382], [-3.6688773031429012, -2.2503468718797546, -3.5254650928078468, 3.0765751150677261]]], [[[2.1998266217312974, 1.1748827369587067, -4.8630189420301884, -4.6282652208324171], [-4.6622508113493568, -1.0980110611292626, -3.8798174063293422, 2.9619355569286832], [-1.3838634843552611, -1.5458925504765042, 4.7102488188535361, 4.6423848950616016]], [[-1.6023691345389235, 2.823379237552766, 1.5564304425869313, 3.6952029309612282], [-4.4137044453792731, -1.6529088178640428, 2.9544637916450798, 2.3508449135824456], [-2.6989124137760303, -2.1745251170743285, -1.6786743431844675, -0.79707132252102753]]], [[[-2.5880751009677572, -4.3938522846248231, -0.96036936099589543, -3.327649852368042], [2.6342745476495244, 2.2689105136464889, 4.2433705235112669, -4.3448259206320907], [1.2148929711476715, -1.6987181147931962, -3.1226858533780053, 1.3917325568999797]], [[2.0186152568464655, -3.5046259094065322, 4.6416937208399904, -2.0802257070892285], [-2.3193800420129715, -0.67871525107829633, -2.2781158494394047, -0.40136884218995128], [1.7033440478745678, 3.4923796518388617, 3.1365103869960596, 1.7243239074935914]]]]),self.functionspace)
5643        res=arg0/arg1        res=arg0/arg1
# Line 5646  class Test_util_overloaded_binary_no_tag Line 5646  class Test_util_overloaded_binary_no_tag
5646        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5647        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5648     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5649     def test_div_overloaded_constData_rank4_expandedData_rank0(self):     def test_quotient_overloaded_constData_rank4_expandedData_rank0(self):
5650        arg0=Data(numarray.array([[[[4.412518352066181, -3.1098643012240967, -4.7558876935081082, -3.2711898204883525], [-2.2457923255657777, 2.0059445983496635, 2.0215102596882897, 0.79758981166266008], [-4.4412761328213834, 1.0033814164110115, -1.2982782934866943, -4.1204179174790845]], [[1.7840922235302417, -0.95709853273933554, -1.7382828390973151, 3.8554075221477841], [-2.4258705986317142, -3.627825487593034, 2.6559428396800264, -0.19799215564643458], [2.1661067884872223, -1.4262141977830045, -0.26406212935679463, 2.5100575370537719]]], [[[4.1820747068718607, 4.9050722386866283, -4.0633395532013079, -3.9405371548508885], [2.973051377771049, -1.946374689712369, 4.6134680551383607, 2.8686358221337338], [-3.3582201017310731, 1.9546297287973102, -0.97203540600203375, 3.1269645246978808]], [[-0.5878623537812846, -0.95965858065134135, -2.5752176173435903, 4.6948697605076344], [-4.0551769138295892, -2.8062824354588445, -4.9919212689190449, 2.1747373667203309], [-1.7481317881152125, 0.6577549434941421, -1.2016837202981021, 0.23394398668818361]]], [[[1.9087213429605656, 3.3707427949854321, -3.3020394873909318, 4.3600839601717176], [0.50010396094649412, 4.4875982311177438, -3.1575441040879504, 1.5273508651815515], [4.5557285198427362, 2.392652489014413, -3.8600978932523233, -2.6728652249183673]], [[-0.42126710644162557, -3.6243525224129005, 1.7204672019618918, -4.4918600764859029], [1.2848888405605674, -1.9434977296685707, 2.4648856620122537, -2.7689365425916099], [-0.92689824733479309, -0.33131118170618734, 4.6548439908136121, -4.6590430970540506]]]]),self.functionspace)        arg0=Data(numarray.array([[[[4.412518352066181, -3.1098643012240967, -4.7558876935081082, -3.2711898204883525], [-2.2457923255657777, 2.0059445983496635, 2.0215102596882897, 0.79758981166266008], [-4.4412761328213834, 1.0033814164110115, -1.2982782934866943, -4.1204179174790845]], [[1.7840922235302417, -0.95709853273933554, -1.7382828390973151, 3.8554075221477841], [-2.4258705986317142, -3.627825487593034, 2.6559428396800264, -0.19799215564643458], [2.1661067884872223, -1.4262141977830045, -0.26406212935679463, 2.5100575370537719]]], [[[4.1820747068718607, 4.9050722386866283, -4.0633395532013079, -3.9405371548508885], [2.973051377771049, -1.946374689712369, 4.6134680551383607, 2.8686358221337338], [-3.3582201017310731, 1.9546297287973102, -0.97203540600203375, 3.1269645246978808]], [[-0.5878623537812846, -0.95965858065134135, -2.5752176173435903, 4.6948697605076344], [-4.0551769138295892, -2.8062824354588445, -4.9919212689190449, 2.1747373667203309], [-1.7481317881152125, 0.6577549434941421, -1.2016837202981021, 0.23394398668818361]]], [[[1.9087213429605656, 3.3707427949854321, -3.3020394873909318, 4.3600839601717176], [0.50010396094649412, 4.4875982311177438, -3.1575441040879504, 1.5273508651815515], [4.5557285198427362, 2.392652489014413, -3.8600978932523233, -2.6728652249183673]], [[-0.42126710644162557, -3.6243525224129005, 1.7204672019618918, -4.4918600764859029], [1.2848888405605674, -1.9434977296685707, 2.4648856620122537, -2.7689365425916099], [-0.92689824733479309, -0.33131118170618734, 4.6548439908136121, -4.6590430970540506]]]]),self.functionspace)
5651        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5652        arg1=msk_arg1*(4.5163558224)+(1.-msk_arg1)*(3.30550390167)        arg1=msk_arg1*(4.5163558224)+(1.-msk_arg1)*(3.30550390167)
# Line 5657  class Test_util_overloaded_binary_no_tag Line 5657  class Test_util_overloaded_binary_no_tag
5657        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5658        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5659     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660     def test_div_overloaded_constData_rank4_expandedData_rank4(self):     def test_quotient_overloaded_constData_rank4_expandedData_rank4(self):
5661        arg0=Data(numarray.array([[[[2.9081699054784629, -0.52767602583237405, -4.8676204514975998, 3.0656135751128506], [3.4195689117030028, 3.0074043214835662, -1.7270820460100356, -2.8987878505521438], [-2.3130559970750708, 4.8207960200663553, 0.55243953125140433, 0.88076242650078562]], [[-2.7536605772035183, -3.7711545932324917, 2.9067630057185028, -4.1129896972084978], [-1.2784492727347119, 0.69695621752376535, 2.9477627539737341, 1.4610988782668102], [0.2943489197851159, 3.5737592084072247, -4.9298691454020052, 0.94541500860994532]]], [[[-3.8340550369717041, 0.97696064003551886, 2.4224341317795286, 1.9967042904317545], [1.2044795557381676, -4.056325871650575, 0.51617607026094703, -2.849666753344493], [-3.7868839846612734, 0.88475821351153261, 2.6016189509013348, -4.8073704855795221]], [[0.44234464671708729, -4.8880779253744722, 1.8546890727264795, 2.9180066219843015], [-1.0126086589542602, -0.29422835104697853, -0.42280031697502363, 0.4309828152431372], [-2.2614242309620272, 2.0773912025446695, 0.18146231086733433, 1.4055222090281303]]], [[[-2.548696220235672, -2.4788729149718458, 1.072945903211231, 3.683370286122857], [1.8564047155739649, -4.7544085613107443, 0.53982777126928561, 1.9397243984667289], [-2.8351844181475396, 1.121983175603698, 4.2013657561163296, -1.7204618771743876]], [[0.5438114487557888, 4.4370545390089866, 0.69153496717829643, -1.9573982644538046], [3.3766998595686069, 2.7245238536969456, -3.2964330075690218, -3.1677351247888486], [3.3857102320850547, -1.793879557866239, 0.25924077080415575, 2.2426857570134198]]]]),self.functionspace)        arg0=Data(numarray.array([[[[2.9081699054784629, -0.52767602583237405, -4.8676204514975998, 3.0656135751128506], [3.4195689117030028, 3.0074043214835662, -1.7270820460100356, -2.8987878505521438], [-2.3130559970750708, 4.8207960200663553, 0.55243953125140433, 0.88076242650078562]], [[-2.7536605772035183, -3.7711545932324917, 2.9067630057185028, -4.1129896972084978], [-1.2784492727347119, 0.69695621752376535, 2.9477627539737341, 1.4610988782668102], [0.2943489197851159, 3.5737592084072247, -4.9298691454020052, 0.94541500860994532]]], [[[-3.8340550369717041, 0.97696064003551886, 2.4224341317795286, 1.9967042904317545], [1.2044795557381676, -4.056325871650575, 0.51617607026094703, -2.849666753344493], [-3.7868839846612734, 0.88475821351153261, 2.6016189509013348, -4.8073704855795221]], [[0.44234464671708729, -4.8880779253744722, 1.8546890727264795, 2.9180066219843015], [-1.0126086589542602, -0.29422835104697853, -0.42280031697502363, 0.4309828152431372], [-2.2614242309620272, 2.0773912025446695, 0.18146231086733433, 1.4055222090281303]]], [[[-2.548696220235672, -2.4788729149718458, 1.072945903211231, 3.683370286122857], [1.8564047155739649, -4.7544085613107443, 0.53982777126928561, 1.9397243984667289], [-2.8351844181475396, 1.121983175603698, 4.2013657561163296, -1.7204618771743876]], [[0.5438114487557888, 4.4370545390089866, 0.69153496717829643, -1.9573982644538046], [3.3766998595686069, 2.7245238536969456, -3.2964330075690218, -3.1677351247888486], [3.3857102320850547, -1.793879557866239, 0.25924077080415575, 2.2426857570134198]]]]),self.functionspace)
5662        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
5663        arg1=msk_arg1*numarray.array([[[[4.3111723034689877, -0.51272641378774164, -0.19422078974034385, 0.19456255846028814], [1.4081517012501514, -3.9568678810431468, -2.1295217591713964, -2.0694582579589316], [-3.0991052505594805, 2.2122995383785771, 2.4794941183633235, 0.66114960804785294]], [[-4.8969028341427894, 4.1182601392623504, -1.8254876882020152, -0.47086880030218747], [-0.94885734694597712, -2.9079017397530835, -1.5779513714845086, -0.074632193936196245], [-2.8604679121870591, 4.1759406093784541, -4.0059464567021283, 0.48354992486232007]]], [[[-3.5447370220150241, 0.92669668189849563, -2.4237548316909239, 4.1324406056163454], [-2.8758659810779608, 1.1119323922745759, -0.91587219847868795, -1.5859956755970783], [1.3218766489656906, -3.089764040029499, 0.19065669827063036, 3.6524960462605129]], [[-4.8849856289871774, 4.7047194997272221, 4.0020345768083629, -1.140574999979421], [0.91393014960572039, 2.4978706097746093, 1.4713661486195653, -2.7031516471614081], [0.93060178482629841, 0.78398582765172886, 2.3775120381350217, -1.565537352291233]]], [[[-4.6086028886293775, -0.57050783749372513, 1.306045318608037, 4.4571163176042834], [2.7802845840789034, 4.4462864530704174, -0.86316101288559466, 1.1460856455585366], [3.955680981374444, 2.589442849252551, -3.020080734817939, 0.90711684678397386]], [[0.25197096379710082, 4.1087769867077171, -2.4469877326495251, -2.3335119633375259], [2.8684943015556232, -3.3580128714258595, 2.9744564999117573, -3.1389790237754136], [-2.4987563810487377, 1.7416315503173498, 0.056015176878369211, -1.4899741977944538]]]])+(1.-msk_arg1)*numarray.array([[[[-0.54239286579831969, -0.36223024249238556, -2.1946334214605745, -0.83400107629310938], [0.24057761946722511, 3.3191490451625896, 4.4537215458189969, 4.8945184143326337], [-2.6707783510318537, -0.32239193277991962, -1.0278479997665926, -1.6540744775933671]], [[-2.7352300996019139, -4.489579010319992, -1.2170699275684393, 2.2344251911937896], [2.3565588572995066, -0.05461916588921234, -2.5208522829137547, 4.8612708202340009], [-0.82441411131140185, -0.83511915144139337, -1.0749313746768063, 0.6632730486836893]]], [[[4.1429094618922484, 3.0055637804292985, -3.5021203571723367, 1.6596153829707454], [-0.053993613093562765, -2.037801710975474, -1.4036493113720647, 2.7096340147789419], [4.0858348715598627, -2.3143687330034144, 3.0408775659994305, -0.46825136507924547]], [[2.6517610085705412, 0.067569675318274847, -4.0884250728844975, 2.6783965222804706], [3.0792598195235321, -3.5363607583123393, -4.2240289065704131, 4.7714192116398184], [-1.1536339089833483, 0.95014194052652279, 3.8824165323332647, 2.0408532146055176]]], [[[-4.2043991537907068, 0.26240477542094531, -3.4172363277466653, -1.8882732134368609], [4.9124496572578504, 3.0561992411513756, 3.6712710554851249, 2.2055477640088386], [1.4835890212755825, -0.79785588894802295, -2.2071301868338509, 2.7130390219950842]], [[-0.70164687426071559, -3.1926096645916999, -2.4799121778723632, -3.0213532603186333], [-1.4051653504429487, -4.9463275725930034, -4.2735750605806864, -2.7012201386196857], [-3.0110725118480963, 1.3371871335969177, 1.2026768066127405, 0.41108097305897484]]]])        arg1=msk_arg1*numarray.array([[[[4.3111723034689877, -0.51272641378774164, -0.19422078974034385, 0.19456255846028814], [1.4081517012501514, -3.9568678810431468, -2.1295217591713964, -2.0694582579589316], [-3.0991052505594805, 2.2122995383785771, 2.4794941183633235, 0.66114960804785294]], [[-4.8969028341427894, 4.1182601392623504, -1.8254876882020152, -0.47086880030218747], [-0.94885734694597712, -2.9079017397530835, -1.5779513714845086, -0.074632193936196245], [-2.8604679121870591, 4.1759406093784541, -4.0059464567021283, 0.48354992486232007]]], [[[-3.5447370220150241, 0.92669668189849563, -2.4237548316909239, 4.1324406056163454], [-2.8758659810779608, 1.1119323922745759, -0.91587219847868795, -1.5859956755970783], [1.3218766489656906, -3.089764040029499, 0.19065669827063036, 3.6524960462605129]], [[-4.8849856289871774, 4.7047194997272221, 4.0020345768083629, -1.140574999979421], [0.91393014960572039, 2.4978706097746093, 1.4713661486195653, -2.7031516471614081], [0.93060178482629841, 0.78398582765172886, 2.3775120381350217, -1.565537352291233]]], [[[-4.6086028886293775, -0.57050783749372513, 1.306045318608037, 4.4571163176042834], [2.7802845840789034, 4.4462864530704174, -0.86316101288559466, 1.1460856455585366], [3.955680981374444, 2.589442849252551, -3.020080734817939, 0.90711684678397386]], [[0.25197096379710082, 4.1087769867077171, -2.4469877326495251, -2.3335119633375259], [2.8684943015556232, -3.3580128714258595, 2.9744564999117573, -3.1389790237754136], [-2.4987563810487377, 1.7416315503173498, 0.056015176878369211, -1.4899741977944538]]]])+(1.-msk_arg1)*numarray.array([[[[-0.54239286579831969, -0.36223024249238556, -2.1946334214605745, -0.83400107629310938], [0.24057761946722511, 3.3191490451625896, 4.4537215458189969, 4.8945184143326337], [-2.6707783510318537, -0.32239193277991962, -1.0278479997665926, -1.6540744775933671]], [[-2.7352300996019139, -4.489579010319992, -1.2170699275684393, 2.2344251911937896], [2.3565588572995066, -0.05461916588921234, -2.5208522829137547, 4.8612708202340009], [-0.82441411131140185, -0.83511915144139337, -1.0749313746768063, 0.6632730486836893]]], [[[4.1429094618922484, 3.0055637804292985, -3.5021203571723367, 1.6596153829707454], [-0.053993613093562765, -2.037801710975474, -1.4036493113720647, 2.7096340147789419], [4.0858348715598627, -2.3143687330034144, 3.0408775659994305, -0.46825136507924547]], [[2.6517610085705412, 0.067569675318274847, -4.0884250728844975, 2.6783965222804706], [3.0792598195235321, -3.5363607583123393, -4.2240289065704131, 4.7714192116398184], [-1.1536339089833483, 0.95014194052652279, 3.8824165323332647, 2.0408532146055176]]], [[[-4.2043991537907068, 0.26240477542094531, -3.4172363277466653, -1.8882732134368609], [4.9124496572578504, 3.0561992411513756, 3.6712710554851249, 2.2055477640088386], [1.4835890212755825, -0.79785588894802295, -2.2071301868338509, 2.7130390219950842]], [[-0.70164687426071559, -3.1926096645916999, -2.4799121778723632, -3.0213532603186333], [-1.4051653504429487, -4.9463275725930034, -4.2735750605806864, -2.7012201386196857], [-3.0110725118480963, 1.3371871335969177, 1.2026768066127405, 0.41108097305897484]]]])
# Line 5668  class Test_util_overloaded_binary_no_tag Line 5668  class Test_util_overloaded_binary_no_tag
5668        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5669        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5670     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5671     def test_div_overloaded_expandedData_rank0_float_rank0(self):     def test_quotient_overloaded_expandedData_rank0_float_rank0(self):
5672        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5673        arg0=msk_arg0*(1.51258209259)+(1.-msk_arg0)*(0.157852552457)        arg0=msk_arg0*(1.51258209259)+(1.-msk_arg0)*(0.157852552457)
5674        arg1=-2.40412038934        arg1=-2.40412038934
# Line 5679  class Test_util_overloaded_binary_no_tag Line 5679  class Test_util_overloaded_binary_no_tag
5679        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5680        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5681     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5682     def test_div_overloaded_expandedData_rank0_array_rank0(self):     def test_quotient_overloaded_expandedData_rank0_array_rank0(self):
5683        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5684        arg0=msk_arg0*(0.623891836675)+(1.-msk_arg0)*(-4.57535280742)        arg0=msk_arg0*(0.623891836675)+(1.-msk_arg0)*(-4.57535280742)
5685        arg1=numarray.array(-2.22578280867)        arg1=numarray.array(-2.22578280867)
# Line 5690  class Test_util_overloaded_binary_no_tag Line 5690  class Test_util_overloaded_binary_no_tag
5690        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5691        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5692     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5693     def test_div_overloaded_expandedData_rank0_array_rank1(self):     def test_quotient_overloaded_expandedData_rank0_array_rank1(self):
5694        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5695        arg0=msk_arg0*(-2.28867426406)+(1.-msk_arg0)*(0.40151348993)        arg0=msk_arg0*(-2.28867426406)+(1.-msk_arg0)*(0.40151348993)
5696        arg1=numarray.array([-1.005881815433102, -4.2992828989978946])        arg1=numarray.array([-1.005881815433102, -4.2992828989978946])
# Line 5701  class Test_util_overloaded_binary_no_tag Line 5701  class Test_util_overloaded_binary_no_tag
5701        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5702        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5703     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5704     def test_div_overloaded_expandedData_rank0_array_rank2(self):     def test_quotient_overloaded_expandedData_rank0_array_rank2(self):
5705        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5706        arg0=msk_arg0*(-4.75989379122)+(1.-msk_arg0)*(-4.32413720595)        arg0=msk_arg0*(-4.75989379122)+(1.-msk_arg0)*(-4.32413720595)
5707        arg1=numarray.array([[-2.2199560634475954, 4.5148770728023351, -2.7347978982286349, -4.7481396347998501, 2.9486390257995385], [-1.8318806519791808, -1.9147910769823162, -3.4650377663122645, -4.6139600747695191, 3.0033523449265154], [-3.4506169616679063, 3.1254177230085674, -1.6437502834473205, 4.6901813032166846, 3.1245689691919214], [3.2471879107702115, 1.3189272753338894, -2.1793619521676364, -1.7765589665564949, -1.0584302238348853]])        arg1=numarray.array([[-2.2199560634475954, 4.5148770728023351, -2.7347978982286349, -4.7481396347998501, 2.9486390257995385], [-1.8318806519791808, -1.9147910769823162, -3.4650377663122645, -4.6139600747695191, 3.0033523449265154], [-3.4506169616679063, 3.1254177230085674, -1.6437502834473205, 4.6901813032166846, 3.1245689691919214], [3.2471879107702115, 1.3189272753338894, -2.1793619521676364, -1.7765589665564949, -1.0584302238348853]])
# Line 5712  class Test_util_overloaded_binary_no_tag Line 5712  class Test_util_overloaded_binary_no_tag
5712        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5713        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5714     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5715     def test_div_overloaded_expandedData_rank0_array_rank3(self):     def test_quotient_overloaded_expandedData_rank0_array_rank3(self):
5716        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5717        arg0=msk_arg0*(-4.90749636577)+(1.-msk_arg0)*(-0.695987638783)        arg0=msk_arg0*(-4.90749636577)+(1.-msk_arg0)*(-0.695987638783)
5718        arg1=numarray.array([[[-3.8683229421324006, -4.3724709414995626], [2.574406810861932, -1.7769580091610129]], [[4.2532182277437478, -4.8639669587055021], [3.8702275365114005, 0.24072631795984289]], [[1.5252558189640686, 3.3664193859246776], [1.2634283615539674, -4.6659891986663036]], [[-1.2387373780826061, -2.5105056344199053], [-2.5926495789718809, 2.2950980695351273]], [[1.051826718104123, 2.9257868139581653], [-4.9232592241212885, -3.6766442871517988]], [[4.3459387050977121, -0.053718956670220308], [2.8519225074631986, -3.4135551887992444]]])        arg1=numarray.array([[[-3.8683229421324006, -4.3724709414995626], [2.574406810861932, -1.7769580091610129]], [[4.2532182277437478, -4.8639669587055021], [3.8702275365114005, 0.24072631795984289]], [[1.5252558189640686, 3.3664193859246776], [1.2634283615539674, -4.6659891986663036]], [[-1.2387373780826061, -2.5105056344199053], [-2.5926495789718809, 2.2950980695351273]], [[1.051826718104123, 2.9257868139581653], [-4.9232592241212885, -3.6766442871517988]], [[4.3459387050977121, -0.053718956670220308], [2.8519225074631986, -3.4135551887992444]]])
# Line 5723  class Test_util_overloaded_binary_no_tag Line 5723  class Test_util_overloaded_binary_no_tag
5723        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5724        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5725     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5726     def test_div_overloaded_expandedData_rank0_array_rank4(self):     def test_quotient_overloaded_expandedData_rank0_array_rank4(self):
5727        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5728        arg0=msk_arg0*(-3.21838220841)+(1.-msk_arg0)*(-2.06441878469)        arg0=msk_arg0*(-3.21838220841)+(1.-msk_arg0)*(-2.06441878469)
5729        arg1=numarray.array([[[[0.68572386050981748, 4.4522487615469366, 0.50370622039161361, 4.6237429183096133], [3.6077194751918178, 2.3866732928339918, -4.7951839032112433, -3.8410389007948553], [-1.7379636204151891, -3.4748138199186784, -0.91755527149451765, 2.3325639120760506]], [[-2.1905580146630541, 2.6640861923839925, -2.571764756677025, -0.17914640273705373], [-3.6393714994207151, 2.5839423755141819, 0.32653082441321857, 3.3013812723933249], [2.2877332157853827, -4.7079721092727969, 0.076638987671123537, 0.67594190662723186]]], [[[-1.2230426561840115, -0.29512381002348409, 0.25716636179938934, -1.7725809751060151], [-2.1528567448026079, -0.01364185360953396, -2.5881565610916746, 3.0724970422712197], [4.7910105105906169, 2.8685090530487276, 2.1030344803323606, -0.76547439901606573]], [[2.4235029056926018, -3.2225789307144947, -3.6636296798516534, -4.6472969483344233], [0.83056294531959285, 3.1840754470489081, -2.3528911482118531, -0.74113583450782894], [0.017823643268661371, -1.7054164729100076, 1.4084960380582405, 4.466265989649802]]], [[[0.67152109386268055, 2.0285998041341742, -4.6668082478655926, -4.9007888691443071], [4.9987349495229125, 4.2689391436524584, 4.8360684199074537, -3.8553463464419324], [-3.0023605526396557, -1.3977196274310835, -3.1648209588333254, 4.6379929354807476]], [[-2.9282629210649267, -0.85219636114336783, -2.0018266922599324, 1.8587851382376028], [3.2626073191814715, -0.42500075903174483, -0.27027270963002614, 2.7074728517624624], [-2.2593027117522215, 4.1692303175051286, -2.1201106016348579, 1.1038704472054022]]]])        arg1=numarray.array([[[[0.68572386050981748, 4.4522487615469366, 0.50370622039161361, 4.6237429183096133], [3.6077194751918178, 2.3866732928339918, -4.7951839032112433, -3.8410389007948553], [-1.7379636204151891, -3.4748138199186784, -0.91755527149451765, 2.3325639120760506]], [[-2.1905580146630541, 2.6640861923839925, -2.571764756677025, -0.17914640273705373], [-3.6393714994207151, 2.5839423755141819, 0.32653082441321857, 3.3013812723933249], [2.2877332157853827, -4.7079721092727969, 0.076638987671123537, 0.67594190662723186]]], [[[-1.2230426561840115, -0.29512381002348409, 0.25716636179938934, -1.7725809751060151], [-2.1528567448026079, -0.01364185360953396, -2.5881565610916746, 3.0724970422712197], [4.7910105105906169, 2.8685090530487276, 2.1030344803323606, -0.76547439901606573]], [[2.4235029056926018, -3.2225789307144947, -3.6636296798516534, -4.6472969483344233], [0.83056294531959285, 3.1840754470489081, -2.3528911482118531, -0.74113583450782894], [0.017823643268661371, -1.7054164729100076, 1.4084960380582405, 4.466265989649802]]], [[[0.67152109386268055, 2.0285998041341742, -4.6668082478655926, -4.9007888691443071], [4.9987349495229125, 4.2689391436524584, 4.8360684199074537, -3.8553463464419324], [-3.0023605526396557, -1.3977196274310835, -3.1648209588333254, 4.6379929354807476]], [[-2.9282629210649267, -0.85219636114336783, -2.0018266922599324, 1.8587851382376028], [3.2626073191814715, -0.42500075903174483, -0.27027270963002614, 2.7074728517624624], [-2.2593027117522215, 4.1692303175051286, -2.1201106016348579, 1.1038704472054022]]]])
# Line 5734  class Test_util_overloaded_binary_no_tag Line 5734  class Test_util_overloaded_binary_no_tag
5734        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5735        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5736     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5737     def test_div_overloaded_expandedData_rank0_constData_rank0(self):     def test_quotient_overloaded_expandedData_rank0_constData_rank0(self):
5738        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5739        arg0=msk_arg0*(-2.47744969089)+(1.-msk_arg0)*(0.169407601567)        arg0=msk_arg0*(-2.47744969089)+(1.-msk_arg0)*(0.169407601567)
5740        arg1=Data(-2.14770628714,self.functionspace)        arg1=Data(-2.14770628714,self.functionspace)
# Line 5745  class Test_util_overloaded_binary_no_tag Line 5745  class Test_util_overloaded_binary_no_tag
5745        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5746        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5747     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5748     def test_div_overloaded_expandedData_rank0_constData_rank1(self):     def test_quotient_overloaded_expandedData_rank0_constData_rank1(self):
5749        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5750        arg0=msk_arg0*(-3.98800864656)+(1.-msk_arg0)*(0.118510821597)        arg0=msk_arg0*(-3.98800864656)+(1.-msk_arg0)*(0.118510821597)
5751        arg1=Data(numarray.array([2.9320942484300829, -3.244701255225606]),self.functionspace)        arg1=Data(numarray.array([2.9320942484300829, -3.244701255225606]),self.functionspace)
# Line 5756  class Test_util_overloaded_binary_no_tag Line 5756  class Test_util_overloaded_binary_no_tag
5756        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5757        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5758     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5759     def test_div_overloaded_expandedData_rank0_constData_rank2(self):     def test_quotient_overloaded_expandedData_rank0_constData_rank2(self):
5760        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5761        arg0=msk_arg0*(4.2641791644)+(1.-msk_arg0)*(-1.75488092016)        arg0=msk_arg0*(4.2641791644)+(1.-msk_arg0)*(-1.75488092016)
5762        arg1=Data(numarray.array([[-0.51534423126757911, -0.71314638845691913, 4.6263192662707979, 0.88193037150846365, -4.7246223038144519], [-3.0202439837234261, 2.1088255222134498, 2.7580495812572758, -4.6725986847161991, -0.45185454512724466], [2.9862734207023633, 4.8337758724530193, 1.0906631641560027, 2.1131951532361732, 2.8211709039591408], [1.5951889269749824, -2.4982410181843506, -0.098690469778995649, -3.2717538451007666, -3.2732314222313228]]),self.functionspace)        arg1=Data(numarray.array([[-0.51534423126757911, -0.71314638845691913, 4.6263192662707979, 0.88193037150846365, -4.7246223038144519], [-3.0202439837234261, 2.1088255222134498, 2.7580495812572758, -4.6725986847161991, -0.45185454512724466], [2.9862734207023633, 4.8337758724530193, 1.0906631641560027, 2.1131951532361732, 2.8211709039591408], [1.5951889269749824, -2.4982410181843506, -0.098690469778995649, -3.2717538451007666, -3.2732314222313228]]),self.functionspace)
# Line 5767  class Test_util_overloaded_binary_no_tag Line 5767  class Test_util_overloaded_binary_no_tag
5767        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5768        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5769     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5770     def test_div_overloaded_expandedData_rank0_constData_rank3(self):     def test_quotient_overloaded_expandedData_rank0_constData_rank3(self):
5771        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5772        arg0=msk_arg0*(4.45710785129)+(1.-msk_arg0)*(0.236739391979)        arg0=msk_arg0*(4.45710785129)+(1.-msk_arg0)*(0.236739391979)
5773        arg1=Data(numarray.array([[[-3.4664289240522308, -1.8386012755254821], [3.0528594455198643, 3.5607791850373545]], [[-3.2780146322724635, -0.44044943950651927], [-4.2554154378230358, 1.6732791515427801]], [[1.8244246995849958, 4.0050245279669952], [4.7737632229387987, 0.94466062736218515]], [[-4.6891980802200788, -2.7839067877101575], [1.7597267075772987, -3.3038863058494758]], [[-4.07625336200796, 1.4002672077441343], [-2.9142431076439768, 2.0413553960743283]], [[4.1909160508089354, -2.993482731284459], [0.32849775345447974, -0.80221788940745142]]]),self.functionspace)        arg1=Data(numarray.array([[[-3.4664289240522308, -1.8386012755254821], [3.0528594455198643, 3.5607791850373545]], [[-3.2780146322724635, -0.44044943950651927], [-4.2554154378230358, 1.6732791515427801]], [[1.8244246995849958, 4.0050245279669952], [4.7737632229387987, 0.94466062736218515]], [[-4.6891980802200788, -2.7839067877101575], [1.7597267075772987, -3.3038863058494758]], [[-4.07625336200796, 1.4002672077441343], [-2.9142431076439768, 2.0413553960743283]], [[4.1909160508089354, -2.993482731284459], [0.32849775345447974, -0.80221788940745142]]]),self.functionspace)
# Line 5778  class Test_util_overloaded_binary_no_tag Line 5778  class Test_util_overloaded_binary_no_tag
5778        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5779        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5780     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5781     def test_div_overloaded_expandedData_rank0_constData_rank4(self):     def test_quotient_overloaded_expandedData_rank0_constData_rank4(self):
5782        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5783        arg0=msk_arg0*(0.885219639853)+(1.-msk_arg0)*(2.75497413394)        arg0=msk_arg0*(0.885219639853)+(1.-msk_arg0)*(2.75497413394)
5784        arg1=Data(numarray.array([[[[1.467689808527135, 4.6829406890102963, -2.4921975976744317, 1.3781710158380056], [4.5659368432735281, 4.9692562597585823, -1.551567324228925, -2.787845987672962], [2.3966510474245979, 2.8979288457607471, 3.7476369053946037, 2.530534811510857]], [[4.5082349960469301, 3.597141099902414, -2.5112915941016434, 1.1332118422904589], [-2.6548606308631904, -3.2724917971804626, -1.0985631523180892, 1.4818906888351187], [4.0487865949301671, -0.8652476351631595, -1.6358540766570231, 4.367138448376501]]], [[[-4.6762648412445742, -1.7928331112415217, -0.0027030165873807022, -3.8042820448108259], [4.1391118848640769, 0.90898456721033583, -4.0982367960832544, -0.81494306022968566], [3.6913212737025543, 0.0023887817239582887, 1.0685948582595195, 2.2191101539589999]], [[2.5810005499598176, 2.3740879852413919, 0.7967523085283057, 3.5164384506592885], [2.1810683906035155, 0.22550149190801783, -0.89132213947725614, -1.2631676092836441], [-3.2493097908956181, 2.5539108743600405, -2.7057015342600566, -3.8273428273599643]]], [[[-1.0466483509815063, -2.255214496117024, -0.51492744202985019, 0.21355392655934935], [3.7352326573944126, 1.1141322726163985, 1.9371441856301654, 0.56493885663453725], [-1.410687366257287, 3.3389146402400609, 3.8636824951032338, 2.585777645486047]], [[2.3394277377851829, 2.6315560293776006, 2.9381376491249593, -1.6420904736994615], [-1.9436881516367945, 4.264006161459136, -0.52545692395622812, 2.6127356184800128], [-2.9426977153149068, 4.4690388259354297, -0.090876374361887891, -2.8229842082142156]]]]),self.functionspace)        arg1=Data(numarray.array([[[[1.467689808527135, 4.6829406890102963, -2.4921975976744317, 1.3781710158380056], [4.5659368432735281, 4.9692562597585823, -1.551567324228925, -2.787845987672962], [2.3966510474245979, 2.8979288457607471, 3.7476369053946037, 2.530534811510857]], [[4.5082349960469301, 3.597141099902414, -2.5112915941016434, 1.1332118422904589], [-2.6548606308631904, -3.2724917971804626, -1.0985631523180892, 1.4818906888351187], [4.0487865949301671, -0.8652476351631595, -1.6358540766570231, 4.367138448376501]]], [[[-4.6762648412445742, -1.7928331112415217, -0.0027030165873807022, -3.8042820448108259], [4.1391118848640769, 0.90898456721033583, -4.0982367960832544, -0.81494306022968566], [3.6913212737025543, 0.0023887817239582887, 1.0685948582595195, 2.2191101539589999]], [[2.5810005499598176, 2.3740879852413919, 0.7967523085283057, 3.5164384506592885], [2.1810683906035155, 0.22550149190801783, -0.89132213947725614, -1.2631676092836441], [-3.2493097908956181, 2.5539108743600405, -2.7057015342600566, -3.8273428273599643]]], [[[-1.0466483509815063, -2.255214496117024, -0.51492744202985019, 0.21355392655934935], [3.7352326573944126, 1.1141322726163985, 1.9371441856301654, 0.56493885663453725], [-1.410687366257287, 3.3389146402400609, 3.8636824951032338, 2.585777645486047]], [[2.3394277377851829, 2.6315560293776006, 2.9381376491249593, -1.6420904736994615], [-1.9436881516367945, 4.264006161459136, -0.52545692395622812, 2.6127356184800128], [-2.9426977153149068, 4.4690388259354297, -0.090876374361887891, -2.8229842082142156]]]]),self.functionspace)
# Line 5789  class Test_util_overloaded_binary_no_tag Line 5789  class Test_util_overloaded_binary_no_tag
5789        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5790        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5791     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5792     def test_div_overloaded_expandedData_rank0_expandedData_rank0(self):     def test_quotient_overloaded_expandedData_rank0_expandedData_rank0(self):
5793        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5794        arg0=msk_arg0*(2.67484445855)+(1.-msk_arg0)*(3.27683623995)        arg0=msk_arg0*(2.67484445855)+(1.-msk_arg0)*(3.27683623995)
5795        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5801  class Test_util_overloaded_binary_no_tag Line 5801  class Test_util_overloaded_binary_no_tag
5801        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
5802        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5803     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5804     def test_div_overloaded_expandedData_rank0_expandedData_rank1(self):     def test_quotient_overloaded_expandedData_rank0_expandedData_rank1(self):
5805        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5806        arg0=msk_arg0*(-4.05775920787)+(1.-msk_arg0)*(-1.66738590464)        arg0=msk_arg0*(-4.05775920787)+(1.-msk_arg0)*(-1.66738590464)
5807        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5813  class Test_util_overloaded_binary_no_tag Line 5813  class Test_util_overloaded_binary_no_tag
5813        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5814        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5815     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5816     def test_div_overloaded_expandedData_rank0_expandedData_rank2(self):     def test_quotient_overloaded_expandedData_rank0_expandedData_rank2(self):
5817        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5818        arg0=msk_arg0*(4.93644557337)+(1.-msk_arg0)*(0.938861363015)        arg0=msk_arg0*(4.93644557337)+(1.-msk_arg0)*(0.938861363015)
5819        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5825  class Test_util_overloaded_binary_no_tag Line 5825  class Test_util_overloaded_binary_no_tag
5825        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5826        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5827     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5828     def test_div_overloaded_expandedData_rank0_expandedData_rank3(self):     def test_quotient_overloaded_expandedData_rank0_expandedData_rank3(self):
5829        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5830        arg0=msk_arg0*(-3.61551355308)+(1.-msk_arg0)*(-0.418684456572)        arg0=msk_arg0*(-3.61551355308)+(1.-msk_arg0)*(-0.418684456572)
5831        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5837  class Test_util_overloaded_binary_no_tag Line 5837  class Test_util_overloaded_binary_no_tag
5837        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
5838        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5839     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5840     def test_div_overloaded_expandedData_rank0_expandedData_rank4(self):     def test_quotient_overloaded_expandedData_rank0_expandedData_rank4(self):
5841        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5842        arg0=msk_arg0*(-1.31276654553)+(1.-msk_arg0)*(-2.46388535412)        arg0=msk_arg0*(-1.31276654553)+(1.-msk_arg0)*(-2.46388535412)
5843        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5849  class Test_util_overloaded_binary_no_tag Line 5849  class Test_util_overloaded_binary_no_tag
5849        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
5850        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5851     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5852     def test_div_overloaded_expandedData_rank1_float_rank0(self):     def test_quotient_overloaded_expandedData_rank1_float_rank0(self):
5853        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5854        arg0=msk_arg0*numarray.array([1.9690479287799807, -4.4245825909133449])+(1.-msk_arg0)*numarray.array([-3.3692645962102361, 1.4560599455853751])        arg0=msk_arg0*numarray.array([1.9690479287799807, -4.4245825909133449])+(1.-msk_arg0)*numarray.array([-3.3692645962102361, 1.4560599455853751])
5855        arg1=3.46860219991        arg1=3.46860219991
# Line 5860  class Test_util_overloaded_binary_no_tag Line 5860  class Test_util_overloaded_binary_no_tag
5860        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5861        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5862     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5863     def test_div_overloaded_expandedData_rank1_array_rank0(self):     def test_quotient_overloaded_expandedData_rank1_array_rank0(self):
5864        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5865        arg0=msk_arg0*numarray.array([4.5251679036808099, -3.0184890479158835])+(1.-msk_arg0)*numarray.array([3.289587056950392, 0.46276486014064222])        arg0=msk_arg0*numarray.array([4.5251679036808099, -3.0184890479158835])+(1.-msk_arg0)*numarray.array([3.289587056950392, 0.46276486014064222])
5866        arg1=numarray.array(4.46602446919)        arg1=numarray.array(4.46602446919)
# Line 5871  class Test_util_overloaded_binary_no_tag Line 5871  class Test_util_overloaded_binary_no_tag
5871        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5872        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5873     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5874     def test_div_overloaded_expandedData_rank1_array_rank1(self):     def test_quotient_overloaded_expandedData_rank1_array_rank1(self):
5875        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5876        arg0=msk_arg0*numarray.array([-4.2564806448962518, 4.577944864438205])+(1.-msk_arg0)*numarray.array([-4.2326086220341095, -2.4511207307076344])        arg0=msk_arg0*numarray.array([-4.2564806448962518, 4.577944864438205])+(1.-msk_arg0)*numarray.array([-4.2326086220341095, -2.4511207307076344])
5877        arg1=numarray.array([-4.3650056044380872, 1.6988631049839444])        arg1=numarray.array([-4.3650056044380872, 1.6988631049839444])
# Line 5882  class Test_util_overloaded_binary_no_tag Line 5882  class Test_util_overloaded_binary_no_tag
5882        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5883        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5884     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5885     def test_div_overloaded_expandedData_rank1_constData_rank0(self):     def test_quotient_overloaded_expandedData_rank1_constData_rank0(self):
5886        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5887        arg0=msk_arg0*numarray.array([-1.6094695972274486, -3.4781088983761443])+(1.-msk_arg0)*numarray.array([-0.73288005195922068, 2.7527271610694051])        arg0=msk_arg0*numarray.array([-1.6094695972274486, -3.4781088983761443])+(1.-msk_arg0)*numarray.array([-0.73288005195922068, 2.7527271610694051])
5888        arg1=Data(4.87764199074,self.functionspace)        arg1=Data(4.87764199074,self.functionspace)
# Line 5893  class Test_util_overloaded_binary_no_tag Line 5893  class Test_util_overloaded_binary_no_tag
5893        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5894        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5895     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5896     def test_div_overloaded_expandedData_rank1_constData_rank1(self):     def test_quotient_overloaded_expandedData_rank1_constData_rank1(self):
5897        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5898        arg0=msk_arg0*numarray.array([3.830219429346986, -0.17859791069816033])+(1.-msk_arg0)*numarray.array([-2.6284919253580608, -3.0237199865233846])        arg0=msk_arg0*numarray.array([3.830219429346986, -0.17859791069816033])+(1.-msk_arg0)*numarray.array([-2.6284919253580608, -3.0237199865233846])
5899        arg1=Data(numarray.array([-4.8506778822214871, -4.3915626304941409]),self.functionspace)        arg1=Data(numarray.array([-4.8506778822214871, -4.3915626304941409]),self.functionspace)
# Line 5904  class Test_util_overloaded_binary_no_tag Line 5904  class Test_util_overloaded_binary_no_tag
5904        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5905        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5906     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5907     def test_div_overloaded_expandedData_rank1_expandedData_rank0(self):     def test_quotient_overloaded_expandedData_rank1_expandedData_rank0(self):
5908        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5909        arg0=msk_arg0*numarray.array([-2.6800640519143992, 2.0023541858171878])+(1.-msk_arg0)*numarray.array([1.1613681387518646, -3.0696609819889922])        arg0=msk_arg0*numarray.array([-2.6800640519143992, 2.0023541858171878])+(1.-msk_arg0)*numarray.array([1.1613681387518646, -3.0696609819889922])
5910        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5916  class Test_util_overloaded_binary_no_tag Line 5916  class Test_util_overloaded_binary_no_tag
5916        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5917        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5918     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5919     def test_div_overloaded_expandedData_rank1_expandedData_rank1(self):     def test_quotient_overloaded_expandedData_rank1_expandedData_rank1(self):
5920        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5921        arg0=msk_arg0*numarray.array([-0.31230244240899463, 3.1025957246958527])+(1.-msk_arg0)*numarray.array([-1.6964268758615617, 4.030579379172039])        arg0=msk_arg0*numarray.array([-0.31230244240899463, 3.1025957246958527])+(1.-msk_arg0)*numarray.array([-1.6964268758615617, 4.030579379172039])
5922        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5928  class Test_util_overloaded_binary_no_tag Line 5928  class Test_util_overloaded_binary_no_tag
5928        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
5929        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5930     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5931     def test_div_overloaded_expandedData_rank2_float_rank0(self):     def test_quotient_overloaded_expandedData_rank2_float_rank0(self):
5932        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5933        arg0=msk_arg0*numarray.array([[2.410303391226897, -0.15514188464505452, -1.687491967901702, -1.579101932074364, 0.26706094549991288], [-3.5303665372888982, 2.089473433559589, -3.0059121525916965, -1.692959306980697, 2.2717737490018557], [-0.90645790278991445, 0.40341832853528903, 0.68666742917210311, 2.0626268306763613, 4.4570192216006461], [-1.4392172230686651, -1.0411162972308405, -3.2093062231663749, -4.1064799831755749, -3.6513620151057657]])+(1.-msk_arg0)*numarray.array([[4.4564729933588172, 4.4437025598736231, -4.3476199896151977, -1.2442254623656734, -1.5090363536676032], [-0.83001159258585133, 0.041459403655911053, 0.1051555316842121, -1.096017044685663, 1.0799848928163911], [4.0718159471940361, 0.75790507207492297, 1.0631276118915185, 2.8175439476881659, 3.2337369051060598], [1.0925612271107603, -1.0819538840584588, 2.3088842689166285, -4.903225267172143, -4.4031757991605307]])        arg0=msk_arg0*numarray.array([[2.410303391226897, -0.15514188464505452, -1.687491967901702, -1.579101932074364, 0.26706094549991288], [-3.5303665372888982, 2.089473433559589, -3.0059121525916965, -1.692959306980697, 2.2717737490018557], [-0.90645790278991445, 0.40341832853528903, 0.68666742917210311, 2.0626268306763613, 4.4570192216006461], [-1.4392172230686651, -1.0411162972308405, -3.2093062231663749, -4.1064799831755749, -3.6513620151057657]])+(1.-msk_arg0)*numarray.array([[4.4564729933588172, 4.4437025598736231, -4.3476199896151977, -1.2442254623656734, -1.5090363536676032], [-0.83001159258585133, 0.041459403655911053, 0.1051555316842121, -1.096017044685663, 1.0799848928163911], [4.0718159471940361, 0.75790507207492297, 1.0631276118915185, 2.8175439476881659, 3.2337369051060598], [1.0925612271107603, -1.0819538840584588, 2.3088842689166285, -4.903225267172143, -4.4031757991605307]])
5934        arg1=-2.8426976555        arg1=-2.8426976555
# Line 5939  class Test_util_overloaded_binary_no_tag Line 5939  class Test_util_overloaded_binary_no_tag
5939        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5940        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5941     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5942     def test_div_overloaded_expandedData_rank2_array_rank0(self):     def test_quotient_overloaded_expandedData_rank2_array_rank0(self):
5943        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5944        arg0=msk_arg0*numarray.array([[2.0494478966696068, 3.6795371717758698, 1.9211166322238125, 1.0774994034195249, 4.1279713581047979], [-1.0338439734143701, -2.8804363541401767, -0.85827010664703174, -1.0825401631894849, 0.78437434804826545], [-4.9903529668748341, -0.84642958448940497, -4.4157077114671175, -1.4467904237103433, -0.60995905178916665], [0.2377779461374967, -1.5696190566720833, 2.2413420543278075, 3.949820863051249, 4.9569096567408053]])+(1.-msk_arg0)*numarray.array([[-4.261788465022688, 2.0459050602270441, 0.54672637931962598, 0.96422214632448444, -2.3189328103688958], [-0.83263701746795249, -2.1676938095875986, -4.2090990732929869, 3.6982260508334637, 0.83530638981434535], [4.0678210803312478, 4.5417452459052114, -4.0533484119091368, -0.91034350081337401, -4.0677837839073936], [-1.4655018985123878, -0.77428579694339028, 4.764548547536636, 4.4554623162974973, 2.7678638809913325]])        arg0=msk_arg0*numarray.array([[2.0494478966696068, 3.6795371717758698, 1.9211166322238125, 1.0774994034195249, 4.1279713581047979], [-1.0338439734143701, -2.8804363541401767, -0.85827010664703174, -1.0825401631894849, 0.78437434804826545], [-4.9903529668748341, -0.84642958448940497, -4.4157077114671175, -1.4467904237103433, -0.60995905178916665], [0.2377779461374967, -1.5696190566720833, 2.2413420543278075, 3.949820863051249, 4.9569096567408053]])+(1.-msk_arg0)*numarray.array([[-4.261788465022688, 2.0459050602270441, 0.54672637931962598, 0.96422214632448444, -2.3189328103688958], [-0.83263701746795249, -2.1676938095875986, -4.2090990732929869, 3.6982260508334637, 0.83530638981434535], [4.0678210803312478, 4.5417452459052114, -4.0533484119091368, -0.91034350081337401, -4.0677837839073936], [-1.4655018985123878, -0.77428579694339028, 4.764548547536636, 4.4554623162974973, 2.7678638809913325]])
5945        arg1=numarray.array(4.74353824914)        arg1=numarray.array(4.74353824914)
# Line 5950  class Test_util_overloaded_binary_no_tag Line 5950  class Test_util_overloaded_binary_no_tag
5950        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5951        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5952     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5953     def test_div_overloaded_expandedData_rank2_array_rank2(self):     def test_quotient_overloaded_expandedData_rank2_array_rank2(self):
5954        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5955        arg0=msk_arg0*numarray.array([[1.148355942207524, -2.7805928894099829, -3.3037216174015995, 2.7688529686635022, 2.2034295113738782], [-1.861309394420434, -1.1883171485664299, -4.0607836758499962, 3.8357441882091301, -0.99517736137248036], [1.2904656369956253, -2.3889894990490013, 4.2136078547587736, -3.6468381336658506, -1.002002246584798], [0.61785866146358615, 2.9845956006859797, 2.5505931344716064, 4.0082468440941259, 4.3015577136561074]])+(1.-msk_arg0)*numarray.array([[4.8510001597883008, 3.1416471544116682, -4.3211585528159526, 1.0561657588326536, -3.5374998997334894], [2.1776714817312577, -1.9620691058196016, 2.242090679863896, -1.9881111881919145, -4.7066582986587218], [2.8785003842997767, 2.6215055637484923, -0.74696058667359111, 1.837652358856003, -2.0259552833671588], [-0.98160647743729612, -0.90472511923361498, 2.3662408256752414, 2.5322932653187626, 4.7462719335290178]])        arg0=msk_arg0*numarray.array([[1.148355942207524, -2.7805928894099829, -3.3037216174015995, 2.7688529686635022, 2.2034295113738782], [-1.861309394420434, -1.1883171485664299, -4.0607836758499962, 3.8357441882091301, -0.99517736137248036], [1.2904656369956253, -2.3889894990490013, 4.2136078547587736, -3.6468381336658506, -1.002002246584798], [0.61785866146358615, 2.9845956006859797, 2.5505931344716064, 4.0082468440941259, 4.3015577136561074]])+(1.-msk_arg0)*numarray.array([[4.8510001597883008, 3.1416471544116682, -4.3211585528159526, 1.0561657588326536, -3.5374998997334894], [2.1776714817312577, -1.9620691058196016, 2.242090679863896, -1.9881111881919145, -4.7066582986587218], [2.8785003842997767, 2.6215055637484923, -0.74696058667359111, 1.837652358856003, -2.0259552833671588], [-0.98160647743729612, -0.90472511923361498, 2.3662408256752414, 2.5322932653187626, 4.7462719335290178]])
5956        arg1=numarray.array([[1.274302883112659, 0.86108266998222138, 3.3405750198536861, -4.0519348648221074, -2.21015726425702], [2.8545653750159508, 3.5793557428106997, -3.2190468252005688, -3.458702610572526, 2.0813450603379371], [-3.4442727915771618, 1.8039097553838808, 2.039111133551005, -1.096450295792577, 4.5608306210849907], [-4.25431468672405, -1.8199563772301919, -0.41220889342830525, 0.14531084119227078, 3.9808935033994928]])        arg1=numarray.array([[1.274302883112659, 0.86108266998222138, 3.3405750198536861, -4.0519348648221074, -2.21015726425702], [2.8545653750159508, 3.5793557428106997, -3.2190468252005688, -3.458702610572526, 2.0813450603379371], [-3.4442727915771618, 1.8039097553838808, 2.039111133551005, -1.096450295792577, 4.5608306210849907], [-4.25431468672405, -1.8199563772301919, -0.41220889342830525, 0.14531084119227078, 3.9808935033994928]])
# Line 5961  class Test_util_overloaded_binary_no_tag Line 5961  class Test_util_overloaded_binary_no_tag
5961        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5962        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5963     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5964     def test_div_overloaded_expandedData_rank2_constData_rank0(self):     def test_quotient_overloaded_expandedData_rank2_constData_rank0(self):
5965        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5966        arg0=msk_arg0*numarray.array([[-2.8200591316844048, 2.3658193338369742, 0.30017455821027195, -1.4277240174526993, 1.2184664241047365], [0.23174560453216486, 1.1396249018959779, 2.0511745146631153, 2.5633133816805822, 3.0867762739010054], [2.6216076115985913, -3.2646219781091732, 2.6788298311248528, -0.021539946894937323, -3.0740712762933855], [-2.2185088137959861, 1.9652732798010275, -1.3592420593723533, -1.796676524640973, -1.0475872021329371]])+(1.-msk_arg0)*numarray.array([[0.28487875859378864, 0.28056076675615493, 3.0236154442989722, -1.7603512428813328, 0.55640282944439701], [-1.7421584040315263, -2.4767261762081327, -1.3892859789274259, -2.4851217301297126, -1.2546403469584657], [-1.6727069155125807, -2.9014764458894615, 4.6446210676836426, -4.9922542523336961, -4.6414768174621717], [1.4395471551487002, -3.7088942820706272, 1.8414151490073616, -1.1336130474058392, -0.67907023089558116]])        arg0=msk_arg0*numarray.array([[-2.8200591316844048, 2.3658193338369742, 0.30017455821027195, -1.4277240174526993, 1.2184664241047365], [0.23174560453216486, 1.1396249018959779, 2.0511745146631153, 2.5633133816805822, 3.0867762739010054], [2.6216076115985913, -3.2646219781091732, 2.6788298311248528, -0.021539946894937323, -3.0740712762933855], [-2.2185088137959861, 1.9652732798010275, -1.3592420593723533, -1.796676524640973, -1.0475872021329371]])+(1.-msk_arg0)*numarray.array([[0.28487875859378864, 0.28056076675615493, 3.0236154442989722, -1.7603512428813328, 0.55640282944439701], [-1.7421584040315263, -2.4767261762081327, -1.3892859789274259, -2.4851217301297126, -1.2546403469584657], [-1.6727069155125807, -2.9014764458894615, 4.6446210676836426, -4.9922542523336961, -4.6414768174621717], [1.4395471551487002, -3.7088942820706272, 1.8414151490073616, -1.1336130474058392, -0.67907023089558116]])
5967        arg1=Data(-3.81752500929,self.functionspace)        arg1=Data(-3.81752500929,self.functionspace)
# Line 5972  class Test_util_overloaded_binary_no_tag Line 5972  class Test_util_overloaded_binary_no_tag
5972        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5973        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5974     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5975     def test_div_overloaded_expandedData_rank2_constData_rank2(self):     def test_quotient_overloaded_expandedData_rank2_constData_rank2(self):
5976        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5977        arg0=msk_arg0*numarray.array([[-3.0977497463423687, -2.3170938574689659, -0.20503941931962011, -4.5898934065456771, -0.42619269712573704], [-4.8825497775602251, 3.3133187115519878, 2.8612308565498079, 4.7591865480545579, 4.7920088021431013], [-0.82765120977030726, -2.4798895081033647, 4.175604275145492, 2.1654082427629637, 4.6578827486594037], [-2.4711651791276346, -0.20392147725246623, 1.609054826713173, -4.0329116169603898, -1.066489449083595]])+(1.-msk_arg0)*numarray.array([[-1.9633542044305399, 4.8470062073414546, 3.1263192163642923, -4.8033079553405802, -0.31098787621779422], [4.0457527926001209, 0.086714290376979974, -4.2659319774817561, 1.373882877352413, 0.60707521624791649], [-3.5465947274121437, -4.8890742314183067, -3.0959330031655297, 0.45333801671696872, 2.8097039371601742], [3.9811025489770113, 4.9007324717614935, -4.688754488597942, -2.0786884286701799, -3.0295248113578177]])        arg0=msk_arg0*numarray.array([[-3.0977497463423687, -2.3170938574689659, -0.20503941931962011, -4.5898934065456771, -0.42619269712573704], [-4.8825497775602251, 3.3133187115519878, 2.8612308565498079, 4.7591865480545579, 4.7920088021431013], [-0.82765120977030726, -2.4798895081033647, 4.175604275145492, 2.1654082427629637, 4.6578827486594037], [-2.4711651791276346, -0.20392147725246623, 1.609054826713173, -4.0329116169603898, -1.066489449083595]])+(1.-msk_arg0)*numarray.array([[-1.9633542044305399, 4.8470062073414546, 3.1263192163642923, -4.8033079553405802, -0.31098787621779422], [4.0457527926001209, 0.086714290376979974, -4.2659319774817561, 1.373882877352413, 0.60707521624791649], [-3.5465947274121437, -4.8890742314183067, -3.0959330031655297, 0.45333801671696872, 2.8097039371601742], [3.9811025489770113, 4.9007324717614935, -4.688754488597942, -2.0786884286701799, -3.0295248113578177]])
5978        arg1=Data(numarray.array([[-4.7217054280507238, 4.9485621313262502, 1.6106443486333486, 1.9163551383297381, -2.3765526117867433], [1.3032603561283587, 2.849591837056157, 2.4293372163697411, -1.0337996283918538, -0.088125953033413751], [0.83089398521219238, -1.5952547947939588, -3.1609028844824536, 1.6286949658854235, 2.6107477472621614], [3.3563427481156012, 0.086610522222403397, 4.9168461903062859, -3.8734999999523732, -4.5187013360367008]]),self.functionspace)        arg1=Data(numarray.array([[-4.7217054280507238, 4.9485621313262502, 1.6106443486333486, 1.9163551383297381, -2.3765526117867433], [1.3032603561283587, 2.849591837056157, 2.4293372163697411, -1.0337996283918538, -0.088125953033413751], [0.83089398521219238, -1.5952547947939588, -3.1609028844824536, 1.6286949658854235, 2.6107477472621614], [3.3563427481156012, 0.086610522222403397, 4.9168461903062859, -3.8734999999523732, -4.5187013360367008]]),self.functionspace)
# Line 5983  class Test_util_overloaded_binary_no_tag Line 5983  class Test_util_overloaded_binary_no_tag
5983        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5984        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5985     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5986     def test_div_overloaded_expandedData_rank2_expandedData_rank0(self):     def test_quotient_overloaded_expandedData_rank2_expandedData_rank0(self):
5987        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
5988        arg0=msk_arg0*numarray.array([[3.8516610989820972, -4.8722250008467816, 4.1216830944727914, 0.90637015968298051, -0.36938032693578293], [-2.2176679623179085, 3.3276032274927676, 0.93738453045659309, 0.39222744995013414, 3.3014585857597503], [4.3446698532390808, 2.6981495971750205, -3.5664760490157055, -4.1190431253208786, 1.3560308127964404], [-0.74218714552620746, 1.1132965058122322, -0.48743631887238514, -3.0021052995725683, -2.1846020700761315]])+(1.-msk_arg0)*numarray.array([[-1.9154942873785985, 3.0914740603099702, -4.6761268807469838, 4.4372883733280801, 2.5488806173091962], [4.0520455603788221, -3.2142755854208502, 4.1766453431150143, 1.2127780387045188, -0.50420382432476885], [-3.4125604853641365, 3.9739743075634006, -2.1338677740783685, 1.3457419019008228, 4.0667471532283663], [0.5619045178706541, -1.7101692536711854, -2.7565489564755099, -0.70371734308194256, 3.5544469255022193]])        arg0=msk_arg0*numarray.array([[3.8516610989820972, -4.8722250008467816, 4.1216830944727914, 0.90637015968298051, -0.36938032693578293], [-2.2176679623179085, 3.3276032274927676, 0.93738453045659309, 0.39222744995013414, 3.3014585857597503], [4.3446698532390808, 2.6981495971750205, -3.5664760490157055, -4.1190431253208786, 1.3560308127964404], [-0.74218714552620746, 1.1132965058122322, -0.48743631887238514, -3.0021052995725683, -2.1846020700761315]])+(1.-msk_arg0)*numarray.array([[-1.9154942873785985, 3.0914740603099702, -4.6761268807469838, 4.4372883733280801, 2.5488806173091962], [4.0520455603788221, -3.2142755854208502, 4.1766453431150143, 1.2127780387045188, -0.50420382432476885], [-3.4125604853641365, 3.9739743075634006, -2.1338677740783685, 1.3457419019008228, 4.0667471532283663], [0.5619045178706541, -1.7101692536711854, -2.7565489564755099, -0.70371734308194256, 3.5544469255022193]])
5989        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 5995  class Test_util_overloaded_binary_no_tag Line 5995  class Test_util_overloaded_binary_no_tag
5995        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
5996        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
5997     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5998     def test_div_overloaded_expandedData_rank2_expandedData_rank2(self):     def test_quotient_overloaded_expandedData_rank2_expandedData_rank2(self):
5999        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6000        arg0=msk_arg0*numarray.array([[-0.73557422607972622, 1.7639407521821386, -1.8377992827507916, -1.2116077750298571, 0.76561287677937706], [0.16292894637794397, 3.268071442843091, -0.61795058764401301, 4.7073196563072432, -0.42896706835255127], [-3.846982945573524, -2.3454172375679319, 4.0705901432430203, -0.96720212323389543, 2.594674289552894], [1.2120149131551186, -4.095086821149061, -2.578915984150715, -1.9013177980006701, 3.1807342237083915]])+(1.-msk_arg0)*numarray.array([[-3.5207870549436846, -4.2464297310459918, 0.65068385498336134, -3.6962527711041382, -1.5570207427632199], [-4.6023880051474197, -4.5948026835763454, -2.2516428959582893, -2.7389440214352865, -2.7933105001611502], [1.148448621049222, 0.99370580770158767, -2.1221270744208418, 2.1778821624703184, 1.4240790173614286], [-2.7274067134293323, 1.0583953633611998, 2.6620336129940974, 3.9159695624080708, -2.6165191033865955]])        arg0=msk_arg0*numarray.array([[-0.73557422607972622, 1.7639407521821386, -1.8377992827507916, -1.2116077750298571, 0.76561287677937706], [0.16292894637794397, 3.268071442843091, -0.61795058764401301, 4.7073196563072432, -0.42896706835255127], [-3.846982945573524, -2.3454172375679319, 4.0705901432430203, -0.96720212323389543, 2.594674289552894], [1.2120149131551186, -4.095086821149061, -2.578915984150715, -1.9013177980006701, 3.1807342237083915]])+(1.-msk_arg0)*numarray.array([[-3.5207870549436846, -4.2464297310459918, 0.65068385498336134, -3.6962527711041382, -1.5570207427632199], [-4.6023880051474197, -4.5948026835763454, -2.2516428959582893, -2.7389440214352865, -2.7933105001611502], [1.148448621049222, 0.99370580770158767, -2.1221270744208418, 2.1778821624703184, 1.4240790173614286], [-2.7274067134293323, 1.0583953633611998, 2.6620336129940974, 3.9159695624080708, -2.6165191033865955]])
6001        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 6007  class Test_util_overloaded_binary_no_tag Line 6007  class Test_util_overloaded_binary_no_tag
6007        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6008        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6009     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6010     def test_div_overloaded_expandedData_rank3_float_rank0(self):     def test_quotient_overloaded_expandedData_rank3_float_rank0(self):
6011        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6012        arg0=msk_arg0*numarray.array([[[1.6823162016463789, -2.8801337615862241], [-4.6286990664293963, 2.6106963528491569]], [[2.2937651007949835, -1.0850173780241921], [-0.093255562464694464, -0.072341477360184925]], [[-4.8855388038147574, -0.64614674019247342], [0.99218391436770137, -2.240995142266752]], [[-1.8894667338613336, -3.1126067206510175], [4.6853914057357322, 4.5366790328623363]], [[-4.3099687403088609, -4.2960400484517347], [0.34841827378277568, 4.8512029911197914]], [[-4.0813429241216239, -2.2259924111163123], [-0.1168323680784642, -4.100013436580717]]])+(1.-msk_arg0)*numarray.array([[[2.4814938904968926, -1.5379279369526144], [4.1878664874949081, -4.1677743309540372]], [[3.6280664499592437, -3.7571147437585761], [2.9408884474936192, -1.1890373686046498]], [[3.2821762099956224, -0.84622752859024519], [-1.8671307085857469, -3.3712537321841207]], [[-4.2601804720206848, -1.6564232635003426], [-3.7050275270887401, 2.0874669623508506]], [[-2.805111427506807, 4.4678421707239941], [-3.2108254464468997, -4.1013313672484948]], [[4.3610960125362936, 3.2719816025884239], [0.19806421790910811, -0.47935070791021772]]])        arg0=msk_arg0*numarray.array([[[1.6823162016463789, -2.8801337615862241], [-4.6286990664293963, 2.6106963528491569]], [[2.2937651007949835, -1.0850173780241921], [-0.093255562464694464, -0.072341477360184925]], [[-4.8855388038147574, -0.64614674019247342], [0.99218391436770137, -2.240995142266752]], [[-1.8894667338613336, -3.1126067206510175], [4.6853914057357322, 4.5366790328623363]], [[-4.3099687403088609, -4.2960400484517347], [0.34841827378277568, 4.8512029911197914]], [[-4.0813429241216239, -2.2259924111163123], [-0.1168323680784642, -4.100013436580717]]])+(1.-msk_arg0)*numarray.array([[[2.4814938904968926, -1.5379279369526144], [4.1878664874949081, -4.1677743309540372]], [[3.6280664499592437, -3.7571147437585761], [2.9408884474936192, -1.1890373686046498]], [[3.2821762099956224, -0.84622752859024519], [-1.8671307085857469, -3.3712537321841207]], [[-4.2601804720206848, -1.6564232635003426], [-3.7050275270887401, 2.0874669623508506]], [[-2.805111427506807, 4.4678421707239941], [-3.2108254464468997, -4.1013313672484948]], [[4.3610960125362936, 3.2719816025884239], [0.19806421790910811, -0.47935070791021772]]])
6013        arg1=1.10113103857        arg1=1.10113103857
# Line 6018  class Test_util_overloaded_binary_no_tag Line 6018  class Test_util_overloaded_binary_no_tag
6018        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6019        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6020     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6021     def test_div_overloaded_expandedData_rank3_array_rank0(self):     def test_quotient_overloaded_expandedData_rank3_array_rank0(self):
6022        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6023        arg0=msk_arg0*numarray.array([[[0.86983763706075212, 2.7856665110504064], [-0.23254233202011676, -4.1573323765906913]], [[3.7662038506487363, -3.4842152731378997], [-3.4671738586723775, 3.7482955460199214]], [[-1.887344963626878, 1.3231876055887168], [-0.43615920193491853, -2.9205950157408287]], [[-3.818354251913191, 1.8065750372406475], [-0.18015964361994108, 4.8672168649628293]], [[-3.3440161635812515, 4.9122369062019775], [0.064881081192954326, -2.3569569688582117]], [[3.3313622446213387, 0.70123445691401809], [-1.5052990415021883, -2.9105121208407594]]])+(1.-msk_arg0)*numarray.array([[[-1.8935193789138047, -2.389241040498514], [1.3864480833518993, 3.533693894436249]], [[3.660976342036685, 0.91965798694228962], [1.1794375091242735, -1.4904952068586175]], [[4.5621384538519649, -1.9417127237359635], [1.8235327088597302, -2.0190282414775282]], [[-2.0065458271839898, -4.7114289654774977], [1.5822038001136498, -1.5352726622602386]], [[-2.1088110960915154, 1.0652821700219581], [4.381594091526221, -1.0915690355764784]], [[-4.8797218498299753, 4.8730981381075171], [-3.6338377496068821, 1.006994825786208]]])        arg0=msk_arg0*numarray.array([[[0.86983763706075212, 2.7856665110504064], [-0.23254233202011676, -4.1573323765906913]], [[3.7662038506487363, -3.4842152731378997], [-3.4671738586723775, 3.7482955460199214]], [[-1.887344963626878, 1.3231876055887168], [-0.43615920193491853, -2.9205950157408287]], [[-3.818354251913191, 1.8065750372406475], [-0.18015964361994108, 4.8672168649628293]], [[-3.3440161635812515, 4.9122369062019775], [0.064881081192954326, -2.3569569688582117]], [[3.3313622446213387, 0.70123445691401809], [-1.5052990415021883, -2.9105121208407594]]])+(1.-msk_arg0)*numarray.array([[[-1.8935193789138047, -2.389241040498514], [1.3864480833518993, 3.533693894436249]], [[3.660976342036685, 0.91965798694228962], [1.1794375091242735, -1.4904952068586175]], [[4.5621384538519649, -1.9417127237359635], [1.8235327088597302, -2.0190282414775282]], [[-2.0065458271839898, -4.7114289654774977], [1.5822038001136498, -1.5352726622602386]], [[-2.1088110960915154, 1.0652821700219581], [4.381594091526221, -1.0915690355764784]], [[-4.8797218498299753, 4.8730981381075171], [-3.6338377496068821, 1.006994825786208]]])
6024        arg1=numarray.array(-2.73036397044)        arg1=numarray.array(-2.73036397044)
# Line 6029  class Test_util_overloaded_binary_no_tag Line 6029  class Test_util_overloaded_binary_no_tag
6029        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6030        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6031     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6032     def test_div_overloaded_expandedData_rank3_array_rank3(self):     def test_quotient_overloaded_expandedData_rank3_array_rank3(self):
6033        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6034        arg0=msk_arg0*numarray.array([[[4.3521998235062131, -1.6482419251955194], [-2.7727308653101068, -1.5594983844649537]], [[-3.7196090167147022, 2.7060589614220421], [-0.89431531970656941, -4.1619106884778194]], [[2.0843258764025965, -1.8818896027690011], [-2.2835436125943955, -0.8848109050935502]], [[2.4873532636783446, 0.53961325382071301], [-1.2922008971412069, 3.1656940656093528]], [[2.7051977908343225, -1.5650697638735664], [-3.2035996207393547, 3.8643577775436952]], [[1.9698261383066757, -0.82321736370819032], [0.18155875651825504, -0.88515034326247299]]])+(1.-msk_arg0)*numarray.array([[[-1.3589957136764355, 4.6827423735971081], [4.2559517378357477, 4.5654165974375136]], [[1.6372271617723015, -3.7894723392800889], [4.3089778110426682, -3.7331735154083381]], [[4.4397466457498176, -3.35994006938631], [1.3013159784008463, -1.5312909619239203]], [[4.5127306836400898, -3.3062807414110882], [1.751140701125963, -2.281024405190891]], [[0.39682968997257451, 2.7437436468521952], [-3.666593294208079, -2.2992231260858818]], [[-0.96968987786387295, 3.5155211340729426], [-3.2007657517314736, -4.3769808201417417]]])        arg0=msk_arg0*numarray.array([[[4.3521998235062131, -1.6482419251955194], [-2.7727308653101068, -1.5594983844649537]], [[-3.7196090167147022, 2.7060589614220421], [-0.89431531970656941, -4.1619106884778194]], [[2.0843258764025965, -1.8818896027690011], [-2.2835436125943955, -0.8848109050935502]], [[2.4873532636783446, 0.53961325382071301], [-1.2922008971412069, 3.1656940656093528]], [[2.7051977908343225, -1.5650697638735664], [-3.2035996207393547, 3.8643577775436952]], [[1.9698261383066757, -0.82321736370819032], [0.18155875651825504, -0.88515034326247299]]])+(1.-msk_arg0)*numarray.array([[[-1.3589957136764355, 4.6827423735971081], [4.2559517378357477, 4.5654165974375136]], [[1.6372271617723015, -3.7894723392800889], [4.3089778110426682, -3.7331735154083381]], [[4.4397466457498176, -3.35994006938631], [1.3013159784008463, -1.5312909619239203]], [[4.5127306836400898, -3.3062807414110882], [1.751140701125963, -2.281024405190891]], [[0.39682968997257451, 2.7437436468521952], [-3.666593294208079, -2.2992231260858818]], [[-0.96968987786387295, 3.5155211340729426], [-3.2007657517314736, -4.3769808201417417]]])
6035        arg1=numarray.array([[[0.08995161936665852, 0.8567894986772151], [-0.16361816705443033, -2.1711050036733406]], [[2.905722724395571, -3.6332330275608959], [-1.7429297291569021, -4.1910374084549815]], [[-2.6595183327385885, 3.2544075461525797], [2.6044693874980664, 3.1866149333988059]], [[-2.0892229397915631, 3.0427171332061711], [-3.2287828769581162, -1.809721469337775]], [[3.6170653932586223, -3.8368989971689107], [-2.0446630546643574, 4.7611593122944385]], [[-0.26362602115112121, -4.3183431101648617], [-4.4822592189471324, 1.9945283509115583]]])        arg1=numarray.array([[[0.08995161936665852, 0.8567894986772151], [-0.16361816705443033, -2.1711050036733406]], [[2.905722724395571, -3.6332330275608959], [-1.7429297291569021, -4.1910374084549815]], [[-2.6595183327385885, 3.2544075461525797], [2.6044693874980664, 3.1866149333988059]], [[-2.0892229397915631, 3.0427171332061711], [-3.2287828769581162, -1.809721469337775]], [[3.6170653932586223, -3.8368989971689107], [-2.0446630546643574, 4.7611593122944385]], [[-0.26362602115112121, -4.3183431101648617], [-4.4822592189471324, 1.9945283509115583]]])
# Line 6040  class Test_util_overloaded_binary_no_tag Line 6040  class Test_util_overloaded_binary_no_tag
6040        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6041        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6042     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6043     def test_div_overloaded_expandedData_rank3_constData_rank0(self):     def test_quotient_overloaded_expandedData_rank3_constData_rank0(self):
6044        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6045        arg0=msk_arg0*numarray.array([[[-0.031114782671034291, -2.7399464480546234], [4.4239905687282075, 4.733421382482117]], [[-4.5402395256466379, -3.382978259917361], [4.7216155406282319, 3.0543160197254231]], [[-0.40353176213230402, 4.2652019547517064], [2.2403135238781893, -1.3995283008362791]], [[0.34670920406598071, 4.665733401152842], [-0.97829673858727784, 4.506560380528791]], [[-4.094925547740413, -1.4206147622461396], [-4.3081581937833775, 2.3042472572167769]], [[-1.6266055366885035, -0.88690802424438431], [2.6734369988483442, -4.1910272811079317]]])+(1.-msk_arg0)*numarray.array([[[1.6056714405189032, -0.45600497470922541], [-0.653485358801559, 2.1473116072279712]], [[-0.78806816863821627, 1.3545632921491011], [-1.7598167011214838, -1.4784015635035006]], [[4.521618087420805, 3.9005591548785858], [-1.175011876497706, -2.0833829499314174]], [[3.4328433791651332, 2.3231592185979499], [-4.4012332805149379, -1.0840881688675741]], [[-0.87760874285067292, 3.5622892466198408], [0.10569648070234905, -1.7872037827201739]], [[-0.49033666269604304, 0.95954164246023055], [-1.0844319111343537, 4.596929121675025]]])        arg0=msk_arg0*numarray.array([[[-0.031114782671034291, -2.7399464480546234], [4.4239905687282075, 4.733421382482117]], [[-4.5402395256466379, -3.382978259917361], [4.7216155406282319, 3.0543160197254231]], [[-0.40353176213230402, 4.2652019547517064], [2.2403135238781893, -1.3995283008362791]], [[0.34670920406598071, 4.665733401152842], [-0.97829673858727784, 4.506560380528791]], [[-4.094925547740413, -1.4206147622461396], [-4.3081581937833775, 2.3042472572167769]], [[-1.6266055366885035, -0.88690802424438431], [2.6734369988483442, -4.1910272811079317]]])+(1.-msk_arg0)*numarray.array([[[1.6056714405189032, -0.45600497470922541], [-0.653485358801559, 2.1473116072279712]], [[-0.78806816863821627, 1.3545632921491011], [-1.7598167011214838, -1.4784015635035006]], [[4.521618087420805, 3.9005591548785858], [-1.175011876497706, -2.0833829499314174]], [[3.4328433791651332, 2.3231592185979499], [-4.4012332805149379, -1.0840881688675741]], [[-0.87760874285067292, 3.5622892466198408], [0.10569648070234905, -1.7872037827201739]], [[-0.49033666269604304, 0.95954164246023055], [-1.0844319111343537, 4.596929121675025]]])
6046        arg1=Data(2.02779476587,self.functionspace)        arg1=Data(2.02779476587,self.functionspace)
# Line 6051  class Test_util_overloaded_binary_no_tag Line 6051  class Test_util_overloaded_binary_no_tag
6051        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6052        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6053     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6054     def test_div_overloaded_expandedData_rank3_constData_rank3(self):     def test_quotient_overloaded_expandedData_rank3_constData_rank3(self):
6055        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6056        arg0=msk_arg0*numarray.array([[[0.26649649085528448, 1.5093354012819393], [-1.9828456745053744, -2.2856564293834012]], [[-2.5851066924566068, 3.0612170614087937], [2.2307144526623732, 0.39178141254406196]], [[2.8921278628701703, 2.9166920740046631], [-1.4537870053062338, 1.0003616467032437]], [[-1.551536846355984, -4.2912563334316642], [-2.3770310211576051, 0.85940548774519154]], [[-1.9031152572343233, -1.8540009351844899], [4.4498988425895885, 0.2643159464134639]], [[1.6090189490934739, 2.7226080637232783], [-2.7878122168425454, 3.0340820602060266]]])+(1.-msk_arg0)*numarray.array([[[0.65790016904571846, 2.2441974122805082], [2.9459864875506199, -2.6843186032707034]], [[-1.5542268002015014, 0.90650448212054435], [0.52824009989401066, -0.73154619910858543]], [[1.0218880794859686, -4.3975888600675663], [0.73500173162997839, 2.2318184332316697]], [[2.5721544299370329, 2.7206293523978449], [-3.6452995752840858, -1.5054018904898001]], [[4.5454989412834621, -0.057354257803915232], [-2.7465293500359964, -0.61818185208107046]], [[-2.9044532538419823, 2.7292650084948527], [1.3619828819530326, -4.85677127465644]]])        arg0=msk_arg0*numarray.array([[[0.26649649085528448, 1.5093354012819393], [-1.9828456745053744, -2.2856564293834012]], [[-2.5851066924566068, 3.0612170614087937], [2.2307144526623732, 0.39178141254406196]], [[2.8921278628701703, 2.9166920740046631], [-1.4537870053062338, 1.0003616467032437]], [[-1.551536846355984, -4.2912563334316642], [-2.3770310211576051, 0.85940548774519154]], [[-1.9031152572343233, -1.8540009351844899], [4.4498988425895885, 0.2643159464134639]], [[1.6090189490934739, 2.7226080637232783], [-2.7878122168425454, 3.0340820602060266]]])+(1.-msk_arg0)*numarray.array([[[0.65790016904571846, 2.2441974122805082], [2.9459864875506199, -2.6843186032707034]], [[-1.5542268002015014, 0.90650448212054435], [0.52824009989401066, -0.73154619910858543]], [[1.0218880794859686, -4.3975888600675663], [0.73500173162997839, 2.2318184332316697]], [[2.5721544299370329, 2.7206293523978449], [-3.6452995752840858, -1.5054018904898001]], [[4.5454989412834621, -0.057354257803915232], [-2.7465293500359964, -0.61818185208107046]], [[-2.9044532538419823, 2.7292650084948527], [1.3619828819530326, -4.85677127465644]]])
6057        arg1=Data(numarray.array([[[3.1025320815170261, 2.8045235537162005], [-0.74073187983458588, 2.7124118434597113]], [[-4.3499804353917089, 4.9001260593223055], [3.3326887401303136, 0.54276379705855682]], [[3.5123074056179, -1.412227479202155], [4.2148557562470739, -3.6089397626027022]], [[4.0481781407778623, -2.1369531767207905], [-2.8532365262925552, -3.3847333647044628]], [[4.0797999942341452, 1.5211233510763336], [-4.9487185167503691, -2.890094796201085]], [[4.1756911899455389, 4.0893781777918896], [-2.9052028503497795, 2.9255489107836263]]]),self.functionspace)        arg1=Data(numarray.array([[[3.1025320815170261, 2.8045235537162005], [-0.74073187983458588, 2.7124118434597113]], [[-4.3499804353917089, 4.9001260593223055], [3.3326887401303136, 0.54276379705855682]], [[3.5123074056179, -1.412227479202155], [4.2148557562470739, -3.6089397626027022]], [[4.0481781407778623, -2.1369531767207905], [-2.8532365262925552, -3.3847333647044628]], [[4.0797999942341452, 1.5211233510763336], [-4.9487185167503691, -2.890094796201085]], [[4.1756911899455389, 4.0893781777918896], [-2.9052028503497795, 2.9255489107836263]]]),self.functionspace)
# Line 6062  class Test_util_overloaded_binary_no_tag Line 6062  class Test_util_overloaded_binary_no_tag
6062        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6063        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6064     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6065     def test_div_overloaded_expandedData_rank3_expandedData_rank0(self):     def test_quotient_overloaded_expandedData_rank3_expandedData_rank0(self):
6066        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6067        arg0=msk_arg0*numarray.array([[[1.4169387775852282, 1.8322447655949503], [3.8558811619368285, -2.4881967265222515]], [[1.9708523978157677, 4.8942502839083026], [-3.6158368629178437, 4.3500942785700509]], [[3.1281852996265656, -3.8418868417635044], [-3.2040770337961435, -4.3306282562981968]], [[2.070936345092024, 2.7082797210785134], [-2.5664594874154414, -4.0061091254755734]], [[3.8180671077391874, 2.7355704227097206], [1.6241485183295721, -1.2362835486085677]], [[-3.7670462041456352, 4.8050117877490326], [0.5633165318004183, 2.8702086935696514]]])+(1.-msk_arg0)*numarray.array([[[-0.2936164944911237, 4.3957149920680987], [-2.0616284256566866, 2.4742508432386927]], [[1.8711305488163923, 0.12358735660955222], [1.2737073828140684, 3.28123084953776]], [[1.0906335246896006, -2.794054677233798], [1.4393455405054318, -4.9956240139537709]], [[-4.2063765875342227, 1.1161961734723356], [-3.0317919198335863, -1.6728193408844261]], [[4.0716375368357678, 2.7141676077356047], [2.0499235034099268, -0.024506696142401196]], [[-0.76312345231665279, -4.8145170445426686], [4.7609303949493409, 4.3072486927384102]]])        arg0=msk_arg0*numarray.array([[[1.4169387775852282, 1.8322447655949503], [3.8558811619368285, -2.4881967265222515]], [[1.9708523978157677, 4.8942502839083026], [-3.6158368629178437, 4.3500942785700509]], [[3.1281852996265656, -3.8418868417635044], [-3.2040770337961435, -4.3306282562981968]], [[2.070936345092024, 2.7082797210785134], [-2.5664594874154414, -4.0061091254755734]], [[3.8180671077391874, 2.7355704227097206], [1.6241485183295721, -1.2362835486085677]], [[-3.7670462041456352, 4.8050117877490326], [0.5633165318004183, 2.8702086935696514]]])+(1.-msk_arg0)*numarray.array([[[-0.2936164944911237, 4.3957149920680987], [-2.0616284256566866, 2.4742508432386927]], [[1.8711305488163923, 0.12358735660955222], [1.2737073828140684, 3.28123084953776]], [[1.0906335246896006, -2.794054677233798], [1.4393455405054318, -4.9956240139537709]], [[-4.2063765875342227, 1.1161961734723356], [-3.0317919198335863, -1.6728193408844261]], [[4.0716375368357678, 2.7141676077356047], [2.0499235034099268, -0.024506696142401196]], [[-0.76312345231665279, -4.8145170445426686], [4.7609303949493409, 4.3072486927384102]]])
6068        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 6074  class Test_util_overloaded_binary_no_tag Line 6074  class Test_util_overloaded_binary_no_tag
6074        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6075        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6076     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6077     def test_div_overloaded_expandedData_rank3_expandedData_rank3(self):     def test_quotient_overloaded_expandedData_rank3_expandedData_rank3(self):
6078        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6079        arg0=msk_arg0*numarray.array([[[-1.4794767507221529, -4.6259085944934162], [-4.714539904649647, -0.60729029544023039]], [[-0.41013362064693748, 0.23166217875705275], [0.23963351942977518, -2.0866210934145135]], [[-1.4345570955142106, 2.9423035343361557], [-3.9731424252799452, -0.067318376357377474]], [[4.8958897780869055, 0.38951748769881522], [-4.3741360961544764, -4.4419013591832632]], [[-4.1070673133833875, -2.2048166888896237], [-0.74250273171900805, 3.3075305424706851]], [[-2.5359068704175058, 2.7191573933612787], [0.31683580992296001, -3.8740638165389485]]])+(1.-msk_arg0)*numarray.array([[[-1.7348049813750488, 1.4265849763537686], [3.2440465059279493, -0.89205993029639252]], [[-0.39868691307929716, -3.7399398312288001], [-1.6603128099016731, -3.2218895772682821]], [[-1.2655351838140083, 4.088954192079699], [-2.5524229443856319, 1.748800612027658]], [[-4.2560490822723684, 0.59793531158506497], [0.96504303166002092, 3.8629561428073504]], [[4.0190342316555334, 4.5365625248117816], [-1.299979243920486, -3.5011542463884049]], [[4.1200666234849876, 2.5999865773923156], [-4.5429404912610272, 0.85946312806513347]]])        arg0=msk_arg0*numarray.array([[[-1.4794767507221529, -4.6259085944934162], [-4.714539904649647, -0.60729029544023039]], [[-0.41013362064693748, 0.23166217875705275], [0.23963351942977518, -2.0866210934145135]], [[-1.4345570955142106, 2.9423035343361557], [-3.9731424252799452, -0.067318376357377474]], [[4.8958897780869055, 0.38951748769881522], [-4.3741360961544764, -4.4419013591832632]], [[-4.1070673133833875, -2.2048166888896237], [-0.74250273171900805, 3.3075305424706851]], [[-2.5359068704175058, 2.7191573933612787], [0.31683580992296001, -3.8740638165389485]]])+(1.-msk_arg0)*numarray.array([[[-1.7348049813750488, 1.4265849763537686], [3.2440465059279493, -0.89205993029639252]], [[-0.39868691307929716, -3.7399398312288001], [-1.6603128099016731, -3.2218895772682821]], [[-1.2655351838140083, 4.088954192079699], [-2.5524229443856319, 1.748800612027658]], [[-4.2560490822723684, 0.59793531158506497], [0.96504303166002092, 3.8629561428073504]], [[4.0190342316555334, 4.5365625248117816], [-1.299979243920486, -3.5011542463884049]], [[4.1200666234849876, 2.5999865773923156], [-4.5429404912610272, 0.85946312806513347]]])
6080        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 6086  class Test_util_overloaded_binary_no_tag Line 6086  class Test_util_overloaded_binary_no_tag
6086        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6087        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6088     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6089     def test_div_overloaded_expandedData_rank4_float_rank0(self):     def test_quotient_overloaded_expandedData_rank4_float_rank0(self):
6090        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6091        arg0=msk_arg0*numarray.array([[[[2.4185387379138099, 1.2685311495071563, -4.7501512725206947, 0.17628918569836838], [-3.5054549087070139, -1.6083740488565255, 4.5221303013643954, -2.0211228577830909], [2.1459831270294751, -2.1645236298733419, -2.8203042164229419, -4.3470870611186072]], [[-2.249928788711709, -1.0141682903059088, -4.2748324811752738, -4.4784523748604208], [-0.38162030434898764, -1.6037004160376434, 3.1382813476108247, 1.9921570647651148], [-0.306563754538133, 2.8464098659381909, 1.624901967890402, -1.7839407950412198]]], [[[2.890536303458358, -2.7011236020822516, -0.082730425616652781, 2.337117009185647], [-0.22328143409960433, -2.8879466100907925, -2.6908495506392081, 2.5326672200999658], [-2.7653662614128418, -4.1055643611883808, -4.6029561663533682, -0.51950590414493103]], [[3.2115408240443006, -4.8776127386315506, -3.1205274819776352, 2.4936507153495615], [-1.2856411394585923, -2.7331345901782078, -4.2390421196319581, -4.0856833254920879], [0.30966211121511744, -1.18985642586214, 4.0651185250409085, 1.7118053143815093]]], [[[-0.097207692262607281, -2.2532705115550211, -1.9510996099010978, -3.3144535998672051], [-2.4395614903178786, 4.3902274968106738, -2.673872565544626, 0.59761798268035626], [-3.6552588962986499, 1.6796745368663206, 2.9062110504796523, -0.89079130202148171]], [[-3.9205950996743089, -3.8528670066430228, 2.7362312840214029, -3.8975086411827831], [4.3748865367724274, 1.258900970863098, 4.1803633196942087, -0.064324217625283175], [-0.34470130716176772, 0.937245766154847, 1.7198749192753846, -2.5213180909011932]]]])+(1.-msk_arg0)*numarray.array([[[[-4.3860797614854814, 2.4040746118035541, 4.5943911504560369, 3.7059504574433362], [1.9007301003120158, -1.0368736549257185, 0.68846282175746687, 3.6371373860569456], [2.8010135010980717, -1.9971046939894355, -3.4883428479687639, -2.2346305725175375]], [[-0.1818849783315768, 1.6034238580015483, -3.0263024805442598, 2.1255938225732729], [0.35178748702258478, 4.4675113098687351, 0.087260214312334661, 3.6638887189675042], [-3.2805868578994413, 1.9610536636700164, -0.18088454253811115, 4.1617143930926783]]], [[[-3.4377372276986708, -0.316774190723911, -1.8183213612026607, 1.7508577518530952], [0.30282095049522439, -3.6342230336175216, -1.8075628843730418, -4.0210748230225342], [-4.7863479091143768, -2.6513233246583203, -1.5719139196922862, 2.8156778647540506]], [[-0.54872406077354441, 1.2690466639162556, -2.3991255874489092, -2.7467086409972263], [0.74205627071120528, 4.197709455883242, -1.475738862141772, -1.5578459428213542], [-4.3801157065029219, 3.0459427212426444, -4.1481233542108198, 4.4063881655278454]]], [[[-3.2814108117364094, -0.79416059818488272, 2.990321353989053, -3.3141383402096238], [-2.1854020057976777, -0.95404511666949166, 2.7321308894570926, 2.3525180966587005], [1.8327521802742393, 0.77162693539527982, -3.7128459235700149, 0.4905617684002781]], [[0.56325925350634876, 1.2168012328050484, -1.3204229102324536, -1.854242796754547], [-2.1900879985795383, -3.0591256981621284, 4.6314628664803283, 3.6607751136727362], [-0.73451000015987944, -0.63506234891406965, 1.0431443044635502, 4.1923050416544534]]]])        arg0=msk_arg0*numarray.array([[[[2.4185387379138099, 1.2685311495071563, -4.7501512725206947, 0.17628918569836838], [-3.5054549087070139, -1.6083740488565255, 4.5221303013643954, -2.0211228577830909], [2.1459831270294751, -2.1645236298733419, -2.8203042164229419, -4.3470870611186072]], [[-2.249928788711709, -1.0141682903059088, -4.2748324811752738, -4.4784523748604208], [-0.38162030434898764, -1.6037004160376434, 3.1382813476108247, 1.9921570647651148], [-0.306563754538133, 2.8464098659381909, 1.624901967890402, -1.7839407950412198]]], [[[2.890536303458358, -2.7011236020822516, -0.082730425616652781, 2.337117009185647], [-0.22328143409960433, -2.8879466100907925, -2.6908495506392081, 2.5326672200999658], [-2.7653662614128418, -4.1055643611883808, -4.6029561663533682, -0.51950590414493103]], [[3.2115408240443006, -4.8776127386315506, -3.1205274819776352, 2.4936507153495615], [-1.2856411394585923, -2.7331345901782078, -4.2390421196319581, -4.0856833254920879], [0.30966211121511744, -1.18985642586214, 4.0651185250409085, 1.7118053143815093]]], [[[-0.097207692262607281, -2.2532705115550211, -1.9510996099010978, -3.3144535998672051], [-2.4395614903178786, 4.3902274968106738, -2.673872565544626, 0.59761798268035626], [-3.6552588962986499, 1.6796745368663206, 2.9062110504796523, -0.89079130202148171]], [[-3.9205950996743089, -3.8528670066430228, 2.7362312840214029, -3.8975086411827831], [4.3748865367724274, 1.258900970863098, 4.1803633196942087, -0.064324217625283175], [-0.34470130716176772, 0.937245766154847, 1.7198749192753846, -2.5213180909011932]]]])+(1.-msk_arg0)*numarray.array([[[[-4.3860797614854814, 2.4040746118035541, 4.5943911504560369, 3.7059504574433362], [1.9007301003120158, -1.0368736549257185, 0.68846282175746687, 3.6371373860569456], [2.8010135010980717, -1.9971046939894355, -3.4883428479687639, -2.2346305725175375]], [[-0.1818849783315768, 1.6034238580015483, -3.0263024805442598, 2.1255938225732729], [0.35178748702258478, 4.4675113098687351, 0.087260214312334661, 3.6638887189675042], [-3.2805868578994413, 1.9610536636700164, -0.18088454253811115, 4.1617143930926783]]], [[[-3.4377372276986708, -0.316774190723911, -1.8183213612026607, 1.7508577518530952], [0.30282095049522439, -3.6342230336175216, -1.8075628843730418, -4.0210748230225342], [-4.7863479091143768, -2.6513233246583203, -1.5719139196922862, 2.8156778647540506]], [[-0.54872406077354441, 1.2690466639162556, -2.3991255874489092, -2.7467086409972263], [0.74205627071120528, 4.197709455883242, -1.475738862141772, -1.5578459428213542], [-4.3801157065029219, 3.0459427212426444, -4.1481233542108198, 4.4063881655278454]]], [[[-3.2814108117364094, -0.79416059818488272, 2.990321353989053, -3.3141383402096238], [-2.1854020057976777, -0.95404511666949166, 2.7321308894570926, 2.3525180966587005], [1.8327521802742393, 0.77162693539527982, -3.7128459235700149, 0.4905617684002781]], [[0.56325925350634876, 1.2168012328050484, -1.3204229102324536, -1.854242796754547], [-2.1900879985795383, -3.0591256981621284, 4.6314628664803283, 3.6607751136727362], [-0.73451000015987944, -0.63506234891406965, 1.0431443044635502, 4.1923050416544534]]]])
6092        arg1=-0.992479481144        arg1=-0.992479481144
# Line 6097  class Test_util_overloaded_binary_no_tag Line 6097  class Test_util_overloaded_binary_no_tag
6097        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6098        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6099     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6100     def test_div_overloaded_expandedData_rank4_array_rank0(self):     def test_quotient_overloaded_expandedData_rank4_array_rank0(self):
6101        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6102        arg0=msk_arg0*numarray.array([[[[-4.2059102872332144, -0.71734981156018041, -0.84843643023961235, -0.71048410923699912], [4.7973431156782418, -3.3476380281973093, 4.3690523174717537, 4.5200028107663766], [-4.446953359503711, -3.0684536322605216, -3.9836098095740513, 4.5936827600883525]], [[-4.2025519589624807, 4.3503105189885751, -4.024979543315176, 4.2367393229172006], [2.825944314146839, 3.5103433547218312, -4.4383168064378964, -2.761115771683186], [2.1490229737022259, -4.9245377132839163, -4.6782497650435317, -2.6597782573883091]]], [[[2.0330340571428991, 4.1698521532898898, 1.432192410518228, 4.9449211293981605], [0.44631652198213967, -2.6843785916289633, 1.0207463820279656, -2.6431473283648046], [1.6899596087625577, -3.8196216736752331, 4.785285365765354, -1.0461173749142452]], [[-3.0189551976712026, 3.9131509939516462, -1.2633569088227636, -4.6816466457746007], [-3.1275606196218861, 1.8343881727716234, 3.0482340223892841, 0.45078480233680196], [2.6684955823633754, -0.53766295833425026, 2.756040796790769, -0.65752175719904304]]], [[[-3.9725523514167236, -3.7490951049543222, -2.3312596595991755, 4.1687700972037298], [-3.4904005594516097, -0.54337574073166017, -4.106720246603059, -3.121948677955694], [3.3835340016702311, 1.2456610615016626, -3.175765375128714, 0.69189596958275779]], [[3.4597693411436268, 4.2537109751910531, 1.5637399072750933, -4.389049186079836], [-1.8866612687801556, 0.91925776349873978, 0.19170832321077569, -2.5014727205642959], [-0.64459958292088793, 1.4093494933266388, 3.7079144402323614, -2.7971464916320476]]]])+(1.-msk_arg0)*numarray.array([[[[3.9925316225264993, -2.5169488075507584, -4.8805748944879346, 4.7982242699922146], [-4.4784912357670876, -1.5579844934712828, -1.7542855731691676, -0.10563296685459544], [3.7469132828194915, -1.4587774039976931, 4.4526728287806723, -3.4074439804714149]], [[-3.0300099737072839, -1.850468030414143, 4.3229931030301003, 2.4128481937562798], [-2.4259247098600922, -2.680601896125391, -4.6671594734101385, 3.830824182236972], [1.3300213574478104, 1.8646482980910806, 4.7365809196629751, -3.3846295680760208]]], [[[4.2245880702387755, -0.074543223867538977, 1.6067112318400421, 1.3394545706283321], [-2.1241620451546996, -1.3931043968900312, 1.635166150642914, -4.6051322273002349], [-1.6087229853537002, 4.3764208749412798, 2.3112308780550954, -2.6353122734798928]], [[1.625191395398204, 4.4742027826108437, 1.8104978536182141, 0.61796506344500823], [3.6759728598983941, 2.818147103030217, 2.4822978775132096, -0.26436192428962002], [4.7307336533963689, 3.2191537015637053, 0.93822435390806902, 3.3923676235748506]]], [[[-1.9768427504401274, 3.3144912024043034, -0.18567599276828606, -3.7254510422553491], [-1.2958838723965114, -4.4848964018822937, 3.8268440783323232, 1.0005196433062853], [-3.1570924735975581, 0.21142558194465888, 0.29260438324785376, -2.6579555214793213]], [[1.0390532909873906, 4.465268305535794, 2.7276130899470665, 3.8353379022479483], [0.97476899470072009, -2.2407360317396163, 2.7174240901398496, 1.5949633712418656], [-3.0859609209548711, 4.1306756585329616, 2.6124219437165417, -4.3881731546070366]]]])        arg0=msk_arg0*numarray.array([[[[-4.2059102872332144, -0.71734981156018041, -0.84843643023961235, -0.71048410923699912], [4.7973431156782418, -3.3476380281973093, 4.3690523174717537, 4.5200028107663766], [-4.446953359503711, -3.0684536322605216, -3.9836098095740513, 4.5936827600883525]], [[-4.2025519589624807, 4.3503105189885751, -4.024979543315176, 4.2367393229172006], [2.825944314146839, 3.5103433547218312, -4.4383168064378964, -2.761115771683186], [2.1490229737022259, -4.9245377132839163, -4.6782497650435317, -2.6597782573883091]]], [[[2.0330340571428991, 4.1698521532898898, 1.432192410518228, 4.9449211293981605], [0.44631652198213967, -2.6843785916289633, 1.0207463820279656, -2.6431473283648046], [1.6899596087625577, -3.8196216736752331, 4.785285365765354, -1.0461173749142452]], [[-3.0189551976712026, 3.9131509939516462, -1.2633569088227636, -4.6816466457746007], [-3.1275606196218861, 1.8343881727716234, 3.0482340223892841, 0.45078480233680196], [2.6684955823633754, -0.53766295833425026, 2.756040796790769, -0.65752175719904304]]], [[[-3.9725523514167236, -3.7490951049543222, -2.3312596595991755, 4.1687700972037298], [-3.4904005594516097, -0.54337574073166017, -4.106720246603059, -3.121948677955694], [3.3835340016702311, 1.2456610615016626, -3.175765375128714, 0.69189596958275779]], [[3.4597693411436268, 4.2537109751910531, 1.5637399072750933, -4.389049186079836], [-1.8866612687801556, 0.91925776349873978, 0.19170832321077569, -2.5014727205642959], [-0.64459958292088793, 1.4093494933266388, 3.7079144402323614, -2.7971464916320476]]]])+(1.-msk_arg0)*numarray.array([[[[3.9925316225264993, -2.5169488075507584, -4.8805748944879346, 4.7982242699922146], [-4.4784912357670876, -1.5579844934712828, -1.7542855731691676, -0.10563296685459544], [3.7469132828194915, -1.4587774039976931, 4.4526728287806723, -3.4074439804714149]], [[-3.0300099737072839, -1.850468030414143, 4.3229931030301003, 2.4128481937562798], [-2.4259247098600922, -2.680601896125391, -4.6671594734101385, 3.830824182236972], [1.3300213574478104, 1.8646482980910806, 4.7365809196629751, -3.3846295680760208]]], [[[4.2245880702387755, -0.074543223867538977, 1.6067112318400421, 1.3394545706283321], [-2.1241620451546996, -1.3931043968900312, 1.635166150642914, -4.6051322273002349], [-1.6087229853537002, 4.3764208749412798, 2.3112308780550954, -2.6353122734798928]], [[1.625191395398204, 4.4742027826108437, 1.8104978536182141, 0.61796506344500823], [3.6759728598983941, 2.818147103030217, 2.4822978775132096, -0.26436192428962002], [4.7307336533963689, 3.2191537015637053, 0.93822435390806902, 3.3923676235748506]]], [[[-1.9768427504401274, 3.3144912024043034, -0.18567599276828606, -3.7254510422553491], [-1.2958838723965114, -4.4848964018822937, 3.8268440783323232, 1.0005196433062853], [-3.1570924735975581, 0.21142558194465888, 0.29260438324785376, -2.6579555214793213]], [[1.0390532909873906, 4.465268305535794, 2.7276130899470665, 3.8353379022479483], [0.97476899470072009, -2.2407360317396163, 2.7174240901398496, 1.5949633712418656], [-3.0859609209548711, 4.1306756585329616, 2.6124219437165417, -4.3881731546070366]]]])
6103        arg1=numarray.array(-1.476925952)        arg1=numarray.array(-1.476925952)
# Line 6108  class Test_util_overloaded_binary_no_tag Line 6108  class Test_util_overloaded_binary_no_tag
6108        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6109        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6110     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6111     def test_div_overloaded_expandedData_rank4_array_rank4(self):     def test_quotient_overloaded_expandedData_rank4_array_rank4(self):
6112        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6113        arg0=msk_arg0*numarray.array([[[[3.3792000952713277, -4.5445885020409733, 1.7935186794947615, -4.2025730596973752], [-1.9109232593339454, 1.2501002877672782, -0.54422266784979634, 2.9275558402449606], [4.7399035604715909, 2.7186459336110929, -2.7234364893613794, 0.35800235248045542]], [[4.8049873205716924, 0.61426787565058039, 0.73139614145182819, -4.0637505927473425], [0.37154944454776917, -3.4440089976819266, 0.90467569274409687, 0.21054648717547675], [-2.7602327829182283, 3.851683380347998, -2.2717022344303919, 2.6661424595637087]]], [[[1.4930725592599758, 0.04028701897898479, 3.0348835730949428, -2.4359770998125221], [-3.7868322278366682, -1.7364201866216868, -2.6826504957662092, 4.2826261165974433], [1.9537533723665588, 3.1973248355086028, 4.4988710247063342, 3.5038224323967064]], [[-4.5943358065613786, 1.1907796548530714, 2.8545305191119326, 1.6459993070052379], [-1.3976336088222432, 1.0884902414247497, -0.37941579586446927, 2.2123805554991591], [1.4459617578099593, 2.1082754179799998, -0.3284052035859375, 1.1813543920410998]]], [[[2.610059886251511, -3.3037726703640704, -2.7784863549209904, -0.85553794516812509], [-2.966018907621085, -2.7438644107836008, 1.6325781914134492, -2.0202836177615477], [0.8091463870133575, 1.1051711756222833, 3.6531581288910431, -2.7355026914568192]], [[3.8519302543686038, -4.6786597285668732, -1.9147401776047532, 3.1203428459744647], [-2.9835884961231751, -3.4608878081333927, 0.69178613786853216, -0.89941302029266801], [-3.3449616569144713, 1.424554420259545, 4.6752896803041448, 2.2277709623165016]]]])+(1.-msk_arg0)*numarray.array([[[[-2.581327832508995, -2.0885571453455709, 4.2367002563295166, 0.64856111983822018], [0.20412431042582302, 0.74268852183423473, 3.7593362963191321, 0.55044211064954851], [-2.5436262130690359, -3.5557086482447122, 2.2496903771273002, -1.7930387795659652]], [[-1.0153346353332768, -0.65651188640657221, 3.6525015889751522, 1.0090649813408348], [2.1642900471036679, 0.0075294509616057326, -0.22132794012458579, 3.1230314534884496], [3.8650912404422062, -0.48640860483079784, -3.1787057933675023, -0.28069132716487832]]], [[[2.5922912439764279, 3.8385566080860389, -0.19176443344859706, -4.2339330577703898], [-3.2490225873694056, 3.3645742342682041, 0.14374287532059071, -0.039814977263720408], [0.019121734191891449, 1.5781909152238827, 4.0179247588537699, 2.1697426653454972]], [[-1.2165164189996815, 2.6751465246934627, -2.9684563070817682, -2.5568004486701312], [4.9881784941533507, -2.2428203299975147, -1.3661270914025225, -2.5803088489560611], [-3.4631517014792501, -3.1871230459494013, 2.428962927803509, 1.8233057844272214]]], [[[-0.21122833699425225, -0.7314523666208208, 0.33235470228426323, -3.1857707034195482], [-4.4325501033687456, 4.4166842378089637, 2.353618866580355, -0.16201358393804099], [4.2846064002175588, -2.4581931196297502, 0.076708823613843791, 2.3756003748097925]], [[-1.9997520805008948, -4.4975698400383344, 3.2607739354592393, -0.47097439867482116], [4.5175377533863159, 2.8665210868107867, -2.8720243238841539, -4.4607396928754781], [-2.0615505431459855, 4.9146906925065608, -4.6486117012407675, 3.7007749242174945]]]])        arg0=msk_arg0*numarray.array([[[[3.3792000952713277, -4.5445885020409733, 1.7935186794947615, -4.2025730596973752], [-1.9109232593339454, 1.2501002877672782, -0.54422266784979634, 2.9275558402449606], [4.7399035604715909, 2.7186459336110929, -2.7234364893613794, 0.35800235248045542]], [[4.8049873205716924, 0.61426787565058039, 0.73139614145182819, -4.0637505927473425], [0.37154944454776917, -3.4440089976819266, 0.90467569274409687, 0.21054648717547675], [-2.7602327829182283, 3.851683380347998, -2.2717022344303919, 2.6661424595637087]]], [[[1.4930725592599758, 0.04028701897898479, 3.0348835730949428, -2.4359770998125221], [-3.7868322278366682, -1.7364201866216868, -2.6826504957662092, 4.2826261165974433], [1.9537533723665588, 3.1973248355086028, 4.4988710247063342, 3.5038224323967064]], [[-4.5943358065613786, 1.1907796548530714, 2.8545305191119326, 1.6459993070052379], [-1.3976336088222432, 1.0884902414247497, -0.37941579586446927, 2.2123805554991591], [1.4459617578099593, 2.1082754179799998, -0.3284052035859375, 1.1813543920410998]]], [[[2.610059886251511, -3.3037726703640704, -2.7784863549209904, -0.85553794516812509], [-2.966018907621085, -2.7438644107836008, 1.6325781914134492, -2.0202836177615477], [0.8091463870133575, 1.1051711756222833, 3.6531581288910431, -2.7355026914568192]], [[3.8519302543686038, -4.6786597285668732, -1.9147401776047532, 3.1203428459744647], [-2.9835884961231751, -3.4608878081333927, 0.69178613786853216, -0.89941302029266801], [-3.3449616569144713, 1.424554420259545, 4.6752896803041448, 2.2277709623165016]]]])+(1.-msk_arg0)*numarray.array([[[[-2.581327832508995, -2.0885571453455709, 4.2367002563295166, 0.64856111983822018], [0.20412431042582302, 0.74268852183423473, 3.7593362963191321, 0.55044211064954851], [-2.5436262130690359, -3.5557086482447122, 2.2496903771273002, -1.7930387795659652]], [[-1.0153346353332768, -0.65651188640657221, 3.6525015889751522, 1.0090649813408348], [2.1642900471036679, 0.0075294509616057326, -0.22132794012458579, 3.1230314534884496], [3.8650912404422062, -0.48640860483079784, -3.1787057933675023, -0.28069132716487832]]], [[[2.5922912439764279, 3.8385566080860389, -0.19176443344859706, -4.2339330577703898], [-3.2490225873694056, 3.3645742342682041, 0.14374287532059071, -0.039814977263720408], [0.019121734191891449, 1.5781909152238827, 4.0179247588537699, 2.1697426653454972]], [[-1.2165164189996815, 2.6751465246934627, -2.9684563070817682, -2.5568004486701312], [4.9881784941533507, -2.2428203299975147, -1.3661270914025225, -2.5803088489560611], [-3.4631517014792501, -3.1871230459494013, 2.428962927803509, 1.8233057844272214]]], [[[-0.21122833699425225, -0.7314523666208208, 0.33235470228426323, -3.1857707034195482], [-4.4325501033687456, 4.4166842378089637, 2.353618866580355, -0.16201358393804099], [4.2846064002175588, -2.4581931196297502, 0.076708823613843791, 2.3756003748097925]], [[-1.9997520805008948, -4.4975698400383344, 3.2607739354592393, -0.47097439867482116], [4.5175377533863159, 2.8665210868107867, -2.8720243238841539, -4.4607396928754781], [-2.0615505431459855, 4.9146906925065608, -4.6486117012407675, 3.7007749242174945]]]])
6114        arg1=numarray.array([[[[-2.7744609249357142, 3.5478422153671687, -0.064940259202338702, 0.94298542826741194], [-0.30974626529347304, 0.30231145677814908, -1.2769602665344868, -1.1853628172878183], [0.84451145611182277, -0.50915278016492493, -4.7724275819044992, -2.5682972901729064]], [[-1.6365237004006392, 0.81940819097714357, 1.3731379975036138, 1.8614989361465977], [3.1904931615945191, -1.5976130686224232, -4.5548769931043047, -1.8656201055824315], [1.6718730312569265, 4.1265463986903583, -1.9604622114363268, -2.941039244290736]]], [[[-1.748289536679545, -1.0275252426263148, 2.4909950975917674, 4.77508418171778], [-2.2422989818060604, 3.8969487004067513, -0.10181703332621783, -4.2419628490715624], [2.2091118749627938, -1.2948003785424267, 2.8468007469624741, -2.7094255166235834]], [[-4.4023906662114163, -0.27975457704053674, -3.5778770506448954, -2.9113445762363996], [3.0665708428057297, -4.2195843812867455, -3.847939613615238, -0.6083003907233735], [-1.9220672367481582, -0.626300639784235, 3.3951740296326847, 4.985985210990604]]], [[[0.91496132760287008, -4.3672373048629325, -0.55062957851863903, -3.2228366728210647], [3.2396579196220614, 2.328724902597906, -3.0531334202518066, 3.8897723096312227], [2.4307898639185037, 3.0391813572211195, -2.6668202021775067, 3.4579661811379854]], [[-4.0223713879102743, -0.88214896673051246, -0.61185225845521529, 3.2645514180210888], [-2.1249634381493889, 3.2371004049270979, 4.0298159403119591, -4.095571663209375], [1.1403900544436141, -1.0795209014115859, 0.56139380772926195, 3.7726974334803938]]]])        arg1=numarray.array([[[[-2.7744609249357142, 3.5478422153671687, -0.064940259202338702, 0.94298542826741194], [-0.30974626529347304, 0.30231145677814908, -1.2769602665344868, -1.1853628172878183], [0.84451145611182277, -0.50915278016492493, -4.7724275819044992, -2.5682972901729064]], [[-1.6365237004006392, 0.81940819097714357, 1.3731379975036138, 1.8614989361465977], [3.1904931615945191, -1.5976130686224232, -4.5548769931043047, -1.8656201055824315], [1.6718730312569265, 4.1265463986903583, -1.9604622114363268, -2.941039244290736]]], [[[-1.748289536679545, -1.0275252426263148, 2.4909950975917674, 4.77508418171778], [-2.2422989818060604, 3.8969487004067513, -0.10181703332621783, -4.2419628490715624], [2.2091118749627938, -1.2948003785424267, 2.8468007469624741, -2.7094255166235834]], [[-4.4023906662114163, -0.27975457704053674, -3.5778770506448954, -2.9113445762363996], [3.0665708428057297, -4.2195843812867455, -3.847939613615238, -0.6083003907233735], [-1.9220672367481582, -0.626300639784235, 3.3951740296326847, 4.985985210990604]]], [[[0.91496132760287008, -4.3672373048629325, -0.55062957851863903, -3.2228366728210647], [3.2396579196220614, 2.328724902597906, -3.0531334202518066, 3.8897723096312227], [2.4307898639185037, 3.0391813572211195, -2.6668202021775067, 3.4579661811379854]], [[-4.0223713879102743, -0.88214896673051246, -0.61185225845521529, 3.2645514180210888], [-2.1249634381493889, 3.2371004049270979, 4.0298159403119591, -4.095571663209375], [1.1403900544436141, -1.0795209014115859, 0.56139380772926195, 3.7726974334803938]]]])
# Line 6119  class Test_util_overloaded_binary_no_tag Line 6119  class Test_util_overloaded_binary_no_tag
6119        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6120        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6121     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6122     def test_div_overloaded_expandedData_rank4_constData_rank0(self):     def test_quotient_overloaded_expandedData_rank4_constData_rank0(self):
6123        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6124        arg0=msk_arg0*numarray.array([[[[-4.5875330208559806, -4.6055899737507131, -3.2930471305979636, 2.4015916183060861], [0.65669353984742518, 1.5763779214874232, -1.5052567607100786, -4.1022082927050736], [-2.8992950704496545, 0.55729130669571081, 1.3433891553823587, 1.7842171752410865]], [[3.7763444085916689, -1.7394905036006914, -4.0404937602395377, -4.094288158896652], [-1.075670136670098, 2.0972460496029051, -2.990253090995024, -2.2958162339573693], [4.9323675337652624, 2.5308002267177852, -2.0959515903747072, 2.8434569073551073]]], [[[3.6074951802702735, -3.7887488392008031, -4.3310741686734033, -1.0679935356894199], [2.9229191193537174, 3.4506785544639911, 0.18537294248145653, -2.4471303110276321], [0.17401061576460286, 4.8527410554411183, 0.24824971703591814, -2.409306034171419]], [[-0.27793264573433873, -3.7692515185245332, 2.8606541013164737, -3.4090729847536885], [-3.9374360637694563, -2.2330671432015636, 0.41848143651316416, 1.6868561694868758], [-0.88402841147285649, 2.9588540220284463, -1.8424718164857157, 3.9146513622767412]]], [[[0.57757744342594641, 1.8236907949632206, -4.2635331341559599, 0.17321638916328119], [1.7925241982029503, 3.8324301746936786, 4.3836339342806845, -4.7114573810914093], [0.55346416108290342, 0.85869826975652952, 1.4450014745073734, 1.9945262904299819]], [[-4.1847960139738483, 4.6535730912455779, -4.1489897896382768, -2.7617343195454058], [-2.2770942487021251, 1.9511791465535833, -3.020685591999912, 3.3752461023617286], [-2.3087696268227544, -4.9218301094154882, 3.9690490825967029, -4.1622633977484371]]]])+(1.-msk_arg0)*numarray.array([[[[4.6187119792047078, -0.031439626842652224, -0.45269370328937697, 4.0919720207087824], [1.6245484160056485, 2.344290265834057, -2.9485539433091956, 0.41915953092474467], [-1.3992838553068365, 2.9640685295547424, 1.3475012955024335, -1.5677010609640787]], [[2.5174506029482639, -3.7440402004138971, -0.18941277014536162, -0.55133582291501426], [-0.819750651699791, -2.882187702052883, -2.5000610289102267, 4.080250473178392], [2.4976931512143263, -0.41337333557102252, -3.0934450971498153, 1.0946452318588964]]], [[[1.3054257672423928, 3.2420044962083754, -4.3179001470272933, 1.2893412620515914], [-1.0098669694974127, -2.9499745058105109, -1.3569725632975773, 1.0488097864020318], [1.6747702233964459, -4.0794978405737794, -3.5980332960710983, -2.7501291370791572]], [[-1.1621213811632214, 2.3068403078212008, -1.2054512154081722, -4.4290663655960429], [4.440364537417766, 1.7654316997296702, 0.16480279185141278, -1.4436256083700885], [-4.4556918726946915, 3.0456634999165573, -0.45637337592914484, -2.4189445144769071]]], [[[1.2928885896566014, 3.1625725809117284, 4.2782205317343074, -4.2005661078806922], [-0.076045925362638656, -2.4932070619143287, 4.1724265207496565, 2.8268008962115498], [2.9687672545317305, 1.7398903719563039, 0.13298114867756361, -4.3920278719040509]], [[2.8626928973001, 2.5599335659173246, -3.8529076297440779, 1.8576423550881982], [4.4738890391641313, 1.3720837313104255, -1.5441903555059566, -0.45752289796504453], [4.9812315599359085, 4.7429136721842227, -1.3422538959085442, 4.9999869992612069]]]])        arg0=msk_arg0*numarray.array([[[[-4.5875330208559806, -4.6055899737507131, -3.2930471305979636, 2.4015916183060861], [0.65669353984742518, 1.5763779214874232, -1.5052567607100786, -4.1022082927050736], [-2.8992950704496545, 0.55729130669571081, 1.3433891553823587, 1.7842171752410865]], [[3.7763444085916689, -1.7394905036006914, -4.0404937602395377, -4.094288158896652], [-1.075670136670098, 2.0972460496029051, -2.990253090995024, -2.2958162339573693], [4.9323675337652624, 2.5308002267177852, -2.0959515903747072, 2.8434569073551073]]], [[[3.6074951802702735, -3.7887488392008031, -4.3310741686734033, -1.0679935356894199], [2.9229191193537174, 3.4506785544639911, 0.18537294248145653, -2.4471303110276321], [0.17401061576460286, 4.8527410554411183, 0.24824971703591814, -2.409306034171419]], [[-0.27793264573433873, -3.7692515185245332, 2.8606541013164737, -3.4090729847536885], [-3.9374360637694563, -2.2330671432015636, 0.41848143651316416, 1.6868561694868758], [-0.88402841147285649, 2.9588540220284463, -1.8424718164857157, 3.9146513622767412]]], [[[0.57757744342594641, 1.8236907949632206, -4.2635331341559599, 0.17321638916328119], [1.7925241982029503, 3.8324301746936786, 4.3836339342806845, -4.7114573810914093], [0.55346416108290342, 0.85869826975652952, 1.4450014745073734, 1.9945262904299819]], [[-4.1847960139738483, 4.6535730912455779, -4.1489897896382768, -2.7617343195454058], [-2.2770942487021251, 1.9511791465535833, -3.020685591999912, 3.3752461023617286], [-2.3087696268227544, -4.9218301094154882, 3.9690490825967029, -4.1622633977484371]]]])+(1.-msk_arg0)*numarray.array([[[[4.6187119792047078, -0.031439626842652224, -0.45269370328937697, 4.0919720207087824], [1.6245484160056485, 2.344290265834057, -2.9485539433091956, 0.41915953092474467], [-1.3992838553068365, 2.9640685295547424, 1.3475012955024335, -1.5677010609640787]], [[2.5174506029482639, -3.7440402004138971, -0.18941277014536162, -0.55133582291501426], [-0.819750651699791, -2.882187702052883, -2.5000610289102267, 4.080250473178392], [2.4976931512143263, -0.41337333557102252, -3.0934450971498153, 1.0946452318588964]]], [[[1.3054257672423928, 3.2420044962083754, -4.3179001470272933, 1.2893412620515914], [-1.0098669694974127, -2.9499745058105109, -1.3569725632975773, 1.0488097864020318], [1.6747702233964459, -4.0794978405737794, -3.5980332960710983, -2.7501291370791572]], [[-1.1621213811632214, 2.3068403078212008, -1.2054512154081722, -4.4290663655960429], [4.440364537417766, 1.7654316997296702, 0.16480279185141278, -1.4436256083700885], [-4.4556918726946915, 3.0456634999165573, -0.45637337592914484, -2.4189445144769071]]], [[[1.2928885896566014, 3.1625725809117284, 4.2782205317343074, -4.2005661078806922], [-0.076045925362638656, -2.4932070619143287, 4.1724265207496565, 2.8268008962115498], [2.9687672545317305, 1.7398903719563039, 0.13298114867756361, -4.3920278719040509]], [[2.8626928973001, 2.5599335659173246, -3.8529076297440779, 1.8576423550881982], [4.4738890391641313, 1.3720837313104255, -1.5441903555059566, -0.45752289796504453], [4.9812315599359085, 4.7429136721842227, -1.3422538959085442, 4.9999869992612069]]]])
6125        arg1=Data(-2.18905449681,self.functionspace)        arg1=Data(-2.18905449681,self.functionspace)
# Line 6130  class Test_util_overloaded_binary_no_tag Line 6130  class Test_util_overloaded_binary_no_tag
6130        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6131        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6132     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6133     def test_div_overloaded_expandedData_rank4_constData_rank4(self):     def test_quotient_overloaded_expandedData_rank4_constData_rank4(self):
6134        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6135        arg0=msk_arg0*numarray.array([[[[1.0377322137304326, -1.609678202034861, 1.9422025900625792, -1.8130191803779558], [3.7559725236374977, -2.5730646055414885, -0.60495128618710226, 2.5925724572893314], [-4.8565109305778575, 2.9535892996820037, 3.3429234498548954, 4.3025968794898581]], [[4.6298309197702956, 4.4253098591787179, 2.8991661867199889, -3.8266220997427269], [4.2602370964200063, 0.46938855997947471, 3.4644861757716328, 4.0153162375007714], [4.6911209792299164, 2.7859464332534962, 4.742130413630683, 0.41860012138133307]]], [[[-0.56478548748022828, -0.91411155398952992, -0.87704710291543453, -0.96762506806391446], [-1.5483375569132507, 1.4026464899442637, -2.973878214149658, 3.3258746439473015], [-1.6898558925415252, -2.2665542934311644, 4.8066753484176488, -4.1168441986072546]], [[2.4783665733626155, -1.031566679533793, -0.7278666475873008, -0.5094265547431851], [3.8784271011746085, 0.0017778261546261831, 3.2434067700996447, 2.3882440939070797], [-1.8041339247396793, -0.50632322565062449, -2.0418371310694328, 4.7396662799925053]]], [[[0.81867670783924495, -3.3370439222198467, 1.0759187214669543, -0.78962926810881928], [-2.6764223184027038, -0.27448846396117332, -4.9442046006331042, -4.958882087228913], [3.633600362707373, 4.7310974322007873, -4.7959769532293341, -4.9985114855717079]], [[-4.6999456589679074, -3.2074975853782348, -3.3652982228133901, 4.9636709061761994], [-2.3824794877642397, -1.9058926014444233, 4.0631589675910575, -4.4439471442173222], [1.7873780001465223, -4.9780382950606157, -0.43499888569910272, 0.45253773666197628]]]])+(1.-msk_arg0)*numarray.array([[[[-0.55288334969735953, -3.7992287138064174, 2.1844152624109743, 3.0035641337493963], [4.2995973060574038, -4.147257186028682, -1.6104121775603577, 1.3696327647559414], [2.5427733971343356, -0.034500640283451567, 2.0444604093521761, -0.87309089681268226]], [[-2.5121451610530308, 2.3555904893582564, -3.3938010049826772, 0.87453175471058131], [2.8899427420587065, -4.0516676930740481, -0.42327240409374589, -4.4891219351505587], [1.7989284507829915, 3.4343454392519028, 3.8009505100499119, -4.0388076129814152]]], [[[-0.29043233187892703, -1.5985388181787306, 1.9264380068291906, 3.2326512583502325], [-1.3256399791794848, 0.79840066746719884, -1.5993296114905196, -1.760739549771313], [3.6207712977086928, -3.3183602422919489, 1.9833009136435091, -2.1169565906827814]], [[-3.8276918074449529, 0.18315946530662153, 0.14550966551996503, 4.7165408758616572], [-1.0546542854928709, -4.5707090242950841, 1.2779161734011808, 0.091913897793411081], [3.6118770513808656, 1.606743391963291, -4.8173211112770247, -2.0274455285439528]]], [[[0.046982107151698926, -4.2881047339292246, 1.888933061110766, -4.5764919931275454], [-2.8473401101144002, 1.8376452445014841, 3.0916033335492425, -4.9147795554064588], [-4.6912016107548036, -3.5597721351812437, -0.20716462281744263, 1.9323095507706931]], [[3.0004965104152266, 1.2004760571734083, 1.754596165983596, -3.0872188149516666], [3.5389142776557847, -2.6344277089439827, -3.1289295012552918, -0.79080815872370991], [-1.3333673982871721, -1.8118651042528056, -4.4452310286201193, 1.4105953001168174]]]])        arg0=msk_arg0*numarray.array([[[[1.0377322137304326, -1.609678202034861, 1.9422025900625792, -1.8130191803779558], [3.7559725236374977, -2.5730646055414885, -0.60495128618710226, 2.5925724572893314], [-4.8565109305778575, 2.9535892996820037, 3.3429234498548954, 4.3025968794898581]], [[4.6298309197702956, 4.4253098591787179, 2.8991661867199889, -3.8266220997427269], [4.2602370964200063, 0.46938855997947471, 3.4644861757716328, 4.0153162375007714], [4.6911209792299164, 2.7859464332534962, 4.742130413630683, 0.41860012138133307]]], [[[-0.56478548748022828, -0.91411155398952992, -0.87704710291543453, -0.96762506806391446], [-1.5483375569132507, 1.4026464899442637, -2.973878214149658, 3.3258746439473015], [-1.6898558925415252, -2.2665542934311644, 4.8066753484176488, -4.1168441986072546]], [[2.4783665733626155, -1.031566679533793, -0.7278666475873008, -0.5094265547431851], [3.8784271011746085, 0.0017778261546261831, 3.2434067700996447, 2.3882440939070797], [-1.8041339247396793, -0.50632322565062449, -2.0418371310694328, 4.7396662799925053]]], [[[0.81867670783924495, -3.3370439222198467, 1.0759187214669543, -0.78962926810881928], [-2.6764223184027038, -0.27448846396117332, -4.9442046006331042, -4.958882087228913], [3.633600362707373, 4.7310974322007873, -4.7959769532293341, -4.9985114855717079]], [[-4.6999456589679074, -3.2074975853782348, -3.3652982228133901, 4.9636709061761994], [-2.3824794877642397, -1.9058926014444233, 4.0631589675910575, -4.4439471442173222], [1.7873780001465223, -4.9780382950606157, -0.43499888569910272, 0.45253773666197628]]]])+(1.-msk_arg0)*numarray.array([[[[-0.55288334969735953, -3.7992287138064174, 2.1844152624109743, 3.0035641337493963], [4.2995973060574038, -4.147257186028682, -1.6104121775603577, 1.3696327647559414], [2.5427733971343356, -0.034500640283451567, 2.0444604093521761, -0.87309089681268226]], [[-2.5121451610530308, 2.3555904893582564, -3.3938010049826772, 0.87453175471058131], [2.8899427420587065, -4.0516676930740481, -0.42327240409374589, -4.4891219351505587], [1.7989284507829915, 3.4343454392519028, 3.8009505100499119, -4.0388076129814152]]], [[[-0.29043233187892703, -1.5985388181787306, 1.9264380068291906, 3.2326512583502325], [-1.3256399791794848, 0.79840066746719884, -1.5993296114905196, -1.760739549771313], [3.6207712977086928, -3.3183602422919489, 1.9833009136435091, -2.1169565906827814]], [[-3.8276918074449529, 0.18315946530662153, 0.14550966551996503, 4.7165408758616572], [-1.0546542854928709, -4.5707090242950841, 1.2779161734011808, 0.091913897793411081], [3.6118770513808656, 1.606743391963291, -4.8173211112770247, -2.0274455285439528]]], [[[0.046982107151698926, -4.2881047339292246, 1.888933061110766, -4.5764919931275454], [-2.8473401101144002, 1.8376452445014841, 3.0916033335492425, -4.9147795554064588], [-4.6912016107548036, -3.5597721351812437, -0.20716462281744263, 1.9323095507706931]], [[3.0004965104152266, 1.2004760571734083, 1.754596165983596, -3.0872188149516666], [3.5389142776557847, -2.6344277089439827, -3.1289295012552918, -0.79080815872370991], [-1.3333673982871721, -1.8118651042528056, -4.4452310286201193, 1.4105953001168174]]]])
6136        arg1=Data(numarray.array([[[[-4.4565731616124351, 2.2089305711292484, -3.5722807441285589, -0.58300582305028037], [2.2804592767642609, 2.4432051930631706, -1.7506399706747313, -4.7525791262050525], [-2.9337861379783661, -0.44414297579310613, 3.9902014071470902, 4.6446391384642762]], [[-4.0963813181379418, -0.20159878931745734, 4.0552914578678347, -3.8463822222942468], [2.7055223074693204, -4.5078664578052798, 1.4261042579792811, 4.0980526415524992], [-0.53501664574801122, -2.5185048066601046, 2.6174082032088233, -3.2978442128966101]]], [[[-0.96122832591535712, 2.8631064697220179, 0.15803033702082736, -4.8504600319128963], [2.9661632129663005, -4.6783236722874353, 0.47340430365890551, 2.0051599394971529], [-0.60516180541016418, -0.5680719407265391, -1.2367913811771789, 3.6604783550306088]], [[-0.061251612739617656, -4.5771711782257327, 4.7061308296742599, -4.5160997044613591], [-3.7340961670463244, -4.2737724609781473, -3.3383608656230201, 2.2657993514349926], [4.0073723808009074, -0.34751762974561728, 0.0049953602295573774, -4.7511117605728961]]], [[[-2.3499156052338366, 0.39861688236522586, 1.7519686786593276, -1.0045596641386991], [1.1506553497256089, 2.1268876237964349, -1.8981830986848158, -3.6877934311652574], [-4.3957296686175642, 1.6053745441265574, -4.2602126673504941, -0.46228488994530892]], [[-4.01119988174203, -2.7145886039549536, -4.1941101705293917, 1.6934869130834258], [-0.34799528639547184, -0.80946922474999372, 2.4246740218939937, -0.83617784943294549], [0.018284300512841689, 3.0083202863304788, -4.6906579813556961, 1.3175478875547251]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-4.4565731616124351, 2.2089305711292484, -3.5722807441285589, -0.58300582305028037], [2.2804592767642609, 2.4432051930631706, -1.7506399706747313, -4.7525791262050525], [-2.9337861379783661, -0.44414297579310613, 3.9902014071470902, 4.6446391384642762]], [[-4.0963813181379418, -0.20159878931745734, 4.0552914578678347, -3.8463822222942468], [2.7055223074693204, -4.5078664578052798, 1.4261042579792811, 4.0980526415524992], [-0.53501664574801122, -2.5185048066601046, 2.6174082032088233, -3.2978442128966101]]], [[[-0.96122832591535712, 2.8631064697220179, 0.15803033702082736, -4.8504600319128963], [2.9661632129663005, -4.6783236722874353, 0.47340430365890551, 2.0051599394971529], [-0.60516180541016418, -0.5680719407265391, -1.2367913811771789, 3.6604783550306088]], [[-0.061251612739617656, -4.5771711782257327, 4.7061308296742599, -4.5160997044613591], [-3.7340961670463244, -4.2737724609781473, -3.3383608656230201, 2.2657993514349926], [4.0073723808009074, -0.34751762974561728, 0.0049953602295573774, -4.7511117605728961]]], [[[-2.3499156052338366, 0.39861688236522586, 1.7519686786593276, -1.0045596641386991], [1.1506553497256089, 2.1268876237964349, -1.8981830986848158, -3.6877934311652574], [-4.3957296686175642, 1.6053745441265574, -4.2602126673504941, -0.46228488994530892]], [[-4.01119988174203, -2.7145886039549536, -4.1941101705293917, 1.6934869130834258], [-0.34799528639547184, -0.80946922474999372, 2.4246740218939937, -0.83617784943294549], [0.018284300512841689, 3.0083202863304788, -4.6906579813556961, 1.3175478875547251]]]]),self.functionspace)
# Line 6141  class Test_util_overloaded_binary_no_tag Line 6141  class Test_util_overloaded_binary_no_tag
6141        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6142        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6143     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6144     def test_div_overloaded_expandedData_rank4_expandedData_rank0(self):     def test_quotient_overloaded_expandedData_rank4_expandedData_rank0(self):
6145        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6146        arg0=msk_arg0*numarray.array([[[[-3.5029548965084203, -1.6855962091683132, 0.87497327960221405, 2.4967172632515711], [3.3933541198276433, 2.038275744473582, 0.28467243562026567, -3.5617428761798662], [-4.0791574717723922, -3.2664107450510258, -2.255823991707989, -3.6439883936956607]], [[-1.3019674130197667, -4.5207190704103404, 2.4066256229043326, 3.8453630843114066], [1.3881924320781511, 2.0436762218614559, -1.7912658255056293, 1.720926792337151], [-3.8079353687578954, 1.5536039125776266, -3.7712533527508043, -1.7105606782730556]]], [[[4.4221670011676597, -3.6537171294196344, -0.5072624415784226, 0.26531466946333104], [-1.8883590342521552, 0.86867804759302381, -0.054632442777271528, -2.975805007074773], [0.98984553655062157, -0.18574976488629691, 2.1084190828676146, -0.42363702512359769]], [[-3.0508456800195907, 3.80878362439082, -3.4055035183645033, -0.064860862959637444], [4.4937630355348386, -3.1290134500027689, -1.5525291623878967, 0.74805124682546698], [-0.8174936521159708, -4.9589552443010554, 0.50516443837682168, -0.072761314833631019]]], [[[3.2935022057766741, -0.98823449085644022, -4.9889935707280006, -3.7495357437344854], [-3.8646450752152148, 0.10638396139388018, 1.0961759040371346, -4.1959281860156139], [-4.0802106257421613, -2.3544506280535837, 0.54760324143895645, 4.1962744982583171]], [[0.019563851472780058, -0.3412316514675231, 4.4613825193511634, -3.2304476424183273], [-2.7050699622795671, -1.3952874897518042, 0.715151971315934, 4.5758992406696581], [0.46778747101657725, 0.86830540255481203, 2.7375293122193263, -2.6939533724117948]]]])+(1.-msk_arg0)*numarray.array([[[[-2.696476475302545, 3.9631603843312764, 1.2241494562328228, -0.99547358075971015], [4.2934217608494691, 4.5823470043762757, 2.604119380276229, -3.238314291460175], [-2.0421032520954485, -4.5992289367699399, -1.5238455009432572, 3.0342069560142892]], [[1.6269453937782856, 0.79411080950932611, -4.7384117269900008, 3.992361385844001], [-3.9103068590461798, 0.52327404818654344, 4.4502447293193157, -1.8463352164281943], [-3.2266551401268084, -2.5508016470859616, -4.2698080681126847, -3.4322589835670358]]], [[[0.32896849650567805, 2.5227980572455122, -2.1078393795944139, -2.4202922540552771], [0.79972331351475923, 3.7270012669353036, 2.7980434760528192, -3.1848259797967793], [-4.5084295401943733, -1.0889031164008012, -0.20007923081749013, -3.0444400268285623]], [[-1.3931657864992406, -1.9243087827663343, -2.2085482490507768, -2.0586355733552155], [2.082179599647108, -1.0009144640976952, -2.0999629352407889, 2.6742186953751892], [3.8437318670642355, 0.43507497686430519, 4.4463437730909945, 0.91418485714109998]]], [[[0.10003564451685154, -0.084297064975952019, 0.091123741151923454, 0.63336553210606894], [1.2852603040686352, -1.1339130976834033, 2.4849604338515343, -0.61993815909937222], [-2.9221277578303706, -0.89050052992205142, -3.2166808657324788, -2.9394937855602024]], [[-3.4846017891887957, -3.4399955301176832, 2.621486312290128, -0.65105824905728049], [-2.1126144308401216, 1.3081205046416979, -1.6137123520436614, -2.0404353579982306], [-3.8248821200531804, -1.7435708063689903, 1.5118787223242407, -4.0266129310982537]]]])        arg0=msk_arg0*numarray.array([[[[-3.5029548965084203, -1.6855962091683132, 0.87497327960221405, 2.4967172632515711], [3.3933541198276433, 2.038275744473582, 0.28467243562026567, -3.5617428761798662], [-4.0791574717723922, -3.2664107450510258, -2.255823991707989, -3.6439883936956607]], [[-1.3019674130197667, -4.5207190704103404, 2.4066256229043326, 3.8453630843114066], [1.3881924320781511, 2.0436762218614559, -1.7912658255056293, 1.720926792337151], [-3.8079353687578954, 1.5536039125776266, -3.7712533527508043, -1.7105606782730556]]], [[[4.4221670011676597, -3.6537171294196344, -0.5072624415784226, 0.26531466946333104], [-1.8883590342521552, 0.86867804759302381, -0.054632442777271528, -2.975805007074773], [0.98984553655062157, -0.18574976488629691, 2.1084190828676146, -0.42363702512359769]], [[-3.0508456800195907, 3.80878362439082, -3.4055035183645033, -0.064860862959637444], [4.4937630355348386, -3.1290134500027689, -1.5525291623878967, 0.74805124682546698], [-0.8174936521159708, -4.9589552443010554, 0.50516443837682168, -0.072761314833631019]]], [[[3.2935022057766741, -0.98823449085644022, -4.9889935707280006, -3.7495357437344854], [-3.8646450752152148, 0.10638396139388018, 1.0961759040371346, -4.1959281860156139], [-4.0802106257421613, -2.3544506280535837, 0.54760324143895645, 4.1962744982583171]], [[0.019563851472780058, -0.3412316514675231, 4.4613825193511634, -3.2304476424183273], [-2.7050699622795671, -1.3952874897518042, 0.715151971315934, 4.5758992406696581], [0.46778747101657725, 0.86830540255481203, 2.7375293122193263, -2.6939533724117948]]]])+(1.-msk_arg0)*numarray.array([[[[-2.696476475302545, 3.9631603843312764, 1.2241494562328228, -0.99547358075971015], [4.2934217608494691, 4.5823470043762757, 2.604119380276229, -3.238314291460175], [-2.0421032520954485, -4.5992289367699399, -1.5238455009432572, 3.0342069560142892]], [[1.6269453937782856, 0.79411080950932611, -4.7384117269900008, 3.992361385844001], [-3.9103068590461798, 0.52327404818654344, 4.4502447293193157, -1.8463352164281943], [-3.2266551401268084, -2.5508016470859616, -4.2698080681126847, -3.4322589835670358]]], [[[0.32896849650567805, 2.5227980572455122, -2.1078393795944139, -2.4202922540552771], [0.79972331351475923, 3.7270012669353036, 2.7980434760528192, -3.1848259797967793], [-4.5084295401943733, -1.0889031164008012, -0.20007923081749013, -3.0444400268285623]], [[-1.3931657864992406, -1.9243087827663343, -2.2085482490507768, -2.0586355733552155], [2.082179599647108, -1.0009144640976952, -2.0999629352407889, 2.6742186953751892], [3.8437318670642355, 0.43507497686430519, 4.4463437730909945, 0.91418485714109998]]], [[[0.10003564451685154, -0.084297064975952019, 0.091123741151923454, 0.63336553210606894], [1.2852603040686352, -1.1339130976834033, 2.4849604338515343, -0.61993815909937222], [-2.9221277578303706, -0.89050052992205142, -3.2166808657324788, -2.9394937855602024]], [[-3.4846017891887957, -3.4399955301176832, 2.621486312290128, -0.65105824905728049], [-2.1126144308401216, 1.3081205046416979, -1.6137123520436614, -2.0404353579982306], [-3.8248821200531804, -1.7435708063689903, 1.5118787223242407, -4.0266129310982537]]]])
6147        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 6153  class Test_util_overloaded_binary_no_tag Line 6153  class Test_util_overloaded_binary_no_tag
6153        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6154        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6155     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6156     def test_div_overloaded_expandedData_rank4_expandedData_rank4(self):     def test_quotient_overloaded_expandedData_rank4_expandedData_rank4(self):
6157        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg0=whereNegative(self.functionspace.getX()[0]-0.5)
6158        arg0=msk_arg0*numarray.array([[[[3.6191965741311645, 3.5492355784370062, -2.8903080510126431, -4.838636822006289], [3.3498441523061491, -4.3396470193107737, 4.9220598282140458, -4.2904577746237571], [-1.3679431904750383, -0.20980143265635753, -2.756430518927405, -4.2966223021957042]], [[0.085588622185870378, -0.36846832693207787, 2.4862177172519493, 4.6925221939230504], [1.6607162207566448, 0.94983516559056991, 3.9321883857589039, -0.017039434470115467], [3.085230067757788, -2.0370617748460038, 1.104425612129905, 0.64623997648643972]]], [[[-2.1654577474796879, -0.31226204964637816, 2.5955142098034178, 0.85467304434968394], [2.0837940087341478, -2.691641756975296, 0.9111886822932993, -1.2186972005053089], [3.8668491340453173, 2.3762188834506714, -1.2091580334537855, 0.032278991245596522]], [[3.0382952152855633, -0.43864678946469748, 2.2076519941124619, -2.1274782296179016], [1.7141588554261133, 2.8432461375116249, 0.39710687180329529, -1.940418980061811], [-2.5496451452177791, -2.2218450491885711, 1.5856509928622113, 1.3196065048145664]]], [[[-4.884113896273039, -1.1217059432804657, -0.48071731376890359, -2.3188055691914156], [-4.6705698748319024, 3.4486857250406064, -0.97008079669843461, 3.2084974048173684], [-0.058024642643647262, -3.2327608556749619, 1.3492041699410686, -0.89433430534941216]], [[-2.9958100017586431, 3.2100225025585054, -3.6662767959563212, 4.8291198678007596], [3.0713688512805088, 2.3963945505412996, 3.1102519957774923, 2.8648342290312536], [-2.6659654484283513, 0.86091593135659039, 4.8946816523812782, -0.46566876474847874]]]])+(1.-msk_arg0)*numarray.array([[[[-0.74530912632481261, 3.4567658017463128, 0.74317942138318305, -3.6809676669023119], [3.3257608061564206, -1.8868520671546154, -1.7732551259194573, -1.3831970246013725], [-2.0736432476487532, 3.0453094775224834, -3.7692900650290584, 3.0569678319374454]], [[-3.2301745328094364, -2.5583007616557643, 0.96647981346438883, 0.17877366990911003], [3.8316169726246763, -4.8606910362443472, -2.527901159767004, -3.889275167086196], [0.19803313922231691, 1.0989502831723676, 2.2963157302162687, 1.347336881504285]]], [[[-1.5456101988084194, 4.084965780390462, 4.1748117436173864, 3.4952602165304398], [-3.8972728332438269, 2.9427181800675397, 2.7715976507601408, -1.280883877176259], [0.43234110096085665, 3.2113132138793663, -3.3103519655714884, -2.7791302902187729]], [[-3.6197348913009963, 3.5320334739474823, 0.34351708473935183, -2.373843503965384], [0.5556131184588331, -4.157856876542473, 1.362434438116388, 4.8711856582449951], [3.0017662573399519, -0.94571602131206234, -3.2372827729115485, 0.0059300841215348399]]], [[[1.0546191242539793, -4.61431067290206, 0.50700583760312501, 2.9783765518766812], [4.5485683367522771, 0.32274039855635195, 2.7969925040868144, -4.7594567137140267], [0.86087915423929573, 4.8846659592247335, -2.9990832953185595, -2.4506544191089406]], [[-4.6628302142893352, 4.2241313947670776, 1.1917972218456683, 3.8589741764414214], [0.060701607053042395, 3.2969498043048322, 3.993484007169851, -0.15548066627168922], [0.94278963725869769, 1.794736039846728, -3.5867960669259324, 3.7001291215499172]]]])        arg0=msk_arg0*numarray.array([[[[3.6191965741311645, 3.5492355784370062, -2.8903080510126431, -4.838636822006289], [3.3498441523061491, -4.3396470193107737, 4.9220598282140458, -4.2904577746237571], [-1.3679431904750383, -0.20980143265635753, -2.756430518927405, -4.2966223021957042]], [[0.085588622185870378, -0.36846832693207787, 2.4862177172519493, 4.6925221939230504], [1.6607162207566448, 0.94983516559056991, 3.9321883857589039, -0.017039434470115467], [3.085230067757788, -2.0370617748460038, 1.104425612129905, 0.64623997648643972]]], [[[-2.1654577474796879, -0.31226204964637816, 2.5955142098034178, 0.85467304434968394], [2.0837940087341478, -2.691641756975296, 0.9111886822932993, -1.2186972005053089], [3.8668491340453173, 2.3762188834506714, -1.2091580334537855, 0.032278991245596522]], [[3.0382952152855633, -0.43864678946469748, 2.2076519941124619, -2.1274782296179016], [1.7141588554261133, 2.8432461375116249, 0.39710687180329529, -1.940418980061811], [-2.5496451452177791, -2.2218450491885711, 1.5856509928622113, 1.3196065048145664]]], [[[-4.884113896273039, -1.1217059432804657, -0.48071731376890359, -2.3188055691914156], [-4.6705698748319024, 3.4486857250406064, -0.97008079669843461, 3.2084974048173684], [-0.058024642643647262, -3.2327608556749619, 1.3492041699410686, -0.89433430534941216]], [[-2.9958100017586431, 3.2100225025585054, -3.6662767959563212, 4.8291198678007596], [3.0713688512805088, 2.3963945505412996, 3.1102519957774923, 2.8648342290312536], [-2.6659654484283513, 0.86091593135659039, 4.8946816523812782, -0.46566876474847874]]]])+(1.-msk_arg0)*numarray.array([[[[-0.74530912632481261, 3.4567658017463128, 0.74317942138318305, -3.6809676669023119], [3.3257608061564206, -1.8868520671546154, -1.7732551259194573, -1.3831970246013725], [-2.0736432476487532, 3.0453094775224834, -3.7692900650290584, 3.0569678319374454]], [[-3.2301745328094364, -2.5583007616557643, 0.96647981346438883, 0.17877366990911003], [3.8316169726246763, -4.8606910362443472, -2.527901159767004, -3.889275167086196], [0.19803313922231691, 1.0989502831723676, 2.2963157302162687, 1.347336881504285]]], [[[-1.5456101988084194, 4.084965780390462, 4.1748117436173864, 3.4952602165304398], [-3.8972728332438269, 2.9427181800675397, 2.7715976507601408, -1.280883877176259], [0.43234110096085665, 3.2113132138793663, -3.3103519655714884, -2.7791302902187729]], [[-3.6197348913009963, 3.5320334739474823, 0.34351708473935183, -2.373843503965384], [0.5556131184588331, -4.157856876542473, 1.362434438116388, 4.8711856582449951], [3.0017662573399519, -0.94571602131206234, -3.2372827729115485, 0.0059300841215348399]]], [[[1.0546191242539793, -4.61431067290206, 0.50700583760312501, 2.9783765518766812], [4.5485683367522771, 0.32274039855635195, 2.7969925040868144, -4.7594567137140267], [0.86087915423929573, 4.8846659592247335, -2.9990832953185595, -2.4506544191089406]], [[-4.6628302142893352, 4.2241313947670776, 1.1917972218456683, 3.8589741764414214], [0.060701607053042395, 3.2969498043048322, 3.993484007169851, -0.15548066627168922], [0.94278963725869769, 1.794736039846728, -3.5867960669259324, 3.7001291215499172]]]])
6159        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
# Line 6165  class Test_util_overloaded_binary_no_tag Line 6165  class Test_util_overloaded_binary_no_tag
6165        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6166        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6167     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6168     def test_div_overloaded_Symbol_rank0_float_rank0(self):     def test_quotient_overloaded_Symbol_rank0_float_rank0(self):
6169        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6170        arg1=-4.7890228975        arg1=-4.7890228975
6171        res=arg0/arg1        res=arg0/arg1
# Line 6176  class Test_util_overloaded_binary_no_tag Line 6176  class Test_util_overloaded_binary_no_tag
6176        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
6177        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6178     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6179     def test_div_overloaded_Symbol_rank0_array_rank0(self):     def test_quotient_overloaded_Symbol_rank0_array_rank0(self):
6180        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6181        arg1=numarray.array(-0.441661137576)        arg1=numarray.array(-0.441661137576)
6182        res=arg0/arg1        res=arg0/arg1
# Line 6187  class Test_util_overloaded_binary_no_tag Line 6187  class Test_util_overloaded_binary_no_tag
6187        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
6188        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6189     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6190     def test_div_overloaded_Symbol_rank0_array_rank1(self):     def test_quotient_overloaded_Symbol_rank0_array_rank1(self):
6191        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6192        arg1=numarray.array([0.71668747646409603, -4.4687260962833451])        arg1=numarray.array([0.71668747646409603, -4.4687260962833451])
6193        res=arg0/arg1        res=arg0/arg1
# Line 6198  class Test_util_overloaded_binary_no_tag Line 6198  class Test_util_overloaded_binary_no_tag
6198        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6199        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6200     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6201     def test_div_overloaded_Symbol_rank0_array_rank2(self):     def test_quotient_overloaded_Symbol_rank0_array_rank2(self):
6202        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6203        arg1=numarray.array([[2.8008892800163787, -1.1724808508473128, -2.0236816531813382, -2.9536806982374744, 2.2166531647971262], [-1.7361168401429761, 3.4384227908066549, -0.63656619747821797, -4.2963682974141451, 2.4669545631904546], [-1.0713033500856985, 3.2990992359587583, 0.13293213405751558, 0.3542384532680849, 1.7007319862644446], [3.7532936908350027, 0.6994076662446771, 2.9608295402310683, 2.8320710521156442, -2.2090801005966423]])        arg1=numarray.array([[2.8008892800163787, -1.1724808508473128, -2.0236816531813382, -2.9536806982374744, 2.2166531647971262], [-1.7361168401429761, 3.4384227908066549, -0.63656619747821797, -4.2963682974141451, 2.4669545631904546], [-1.0713033500856985, 3.2990992359587583, 0.13293213405751558, 0.3542384532680849, 1.7007319862644446], [3.7532936908350027, 0.6994076662446771, 2.9608295402310683, 2.8320710521156442, -2.2090801005966423]])
6204        res=arg0/arg1        res=arg0/arg1
# Line 6209  class Test_util_overloaded_binary_no_tag Line 6209  class Test_util_overloaded_binary_no_tag
6209        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6210        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6211     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6212     def test_div_overloaded_Symbol_rank0_array_rank3(self):     def test_quotient_overloaded_Symbol_rank0_array_rank3(self):
6213        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6214        arg1=numarray.array([[[-1.0220679144772884, 0.71751559412406785], [1.3527603507918577, 2.0770461591302416]], [[-0.80135370978844556, 2.3025426882086864], [4.8631455301546147, -2.8692491573636714]], [[0.99825288356842634, 2.9159724038958235], [2.1435062189637506, -0.75473287438000103]], [[-3.2569479763004896, -4.4738194023176794], [-3.2903205363326538, -2.7404886556408692]], [[0.76910671370102524, -3.1243409037183909], [-4.1169728377454904, -4.7592115397326227]], [[4.7730432324519949, -2.1087498510456171], [-1.7211602990876207, 1.8994555696744397]]])        arg1=numarray.array([[[-1.0220679144772884, 0.71751559412406785], [1.3527603507918577, 2.0770461591302416]], [[-0.80135370978844556, 2.3025426882086864], [4.8631455301546147, -2.8692491573636714]], [[0.99825288356842634, 2.9159724038958235], [2.1435062189637506, -0.75473287438000103]], [[-3.2569479763004896, -4.4738194023176794], [-3.2903205363326538, -2.7404886556408692]], [[0.76910671370102524, -3.1243409037183909], [-4.1169728377454904, -4.7592115397326227]], [[4.7730432324519949, -2.1087498510456171], [-1.7211602990876207, 1.8994555696744397]]])
6215        res=arg0/arg1        res=arg0/arg1
# Line 6220  class Test_util_overloaded_binary_no_tag Line 6220  class Test_util_overloaded_binary_no_tag
6220        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6221        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6222     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6223     def test_div_overloaded_Symbol_rank0_array_rank4(self):     def test_quotient_overloaded_Symbol_rank0_array_rank4(self):
6224        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6225        arg1=numarray.array([[[[1.7450551814990529, 4.5522109899804093, -0.82165366406344376, -2.8505315559512545], [2.8646429363346968, 1.7762693161877756, -2.1529530945869748, 4.482468402841107], [-0.81712829238560758, 1.9317236294178564, -4.6025589995732661, -0.28744782002330993]], [[-1.0690168655744037, 4.3683195656856189, -4.1423481155585442, -2.1018815894299161], [4.3199217626797228, -4.2065039537376467, 0.81869101563374791, -3.7691044119706927], [-4.4448928041530404, -1.0872350994395532, -4.1108008411737273, 3.6599530324597325]]], [[[-1.4847955394565595, 4.6915279968683574, -4.9462204875009332, 0.38311944040291657], [-2.1605058439124027, 4.921789830223247, 0.86876008503447455, 4.0080906317995542], [0.52810821807423114, -4.0083470980521003, -2.7283309652979471, 4.3855921458049316]], [[0.17355427248093136, -4.9979674375438075, -1.4890615846442481, 1.1926145054254835], [4.7492189465882806, -2.8039225223287634, 4.9182457207009573, -1.9797797943087216], [-0.1814442070193909, -0.60423151788723573, 1.955888981947421, 3.1763572948313463]]], [[[4.9633340244177369, -2.9593256257789857, 0.74622472068483603, -3.619627942514545], [-2.1097947112692559, -3.8882515457067459, -2.3822756291961298, 2.4446772210916539], [-4.1926297861519677, 4.9629186883932537, -1.6878019802614377, -3.0302163999127196]], [[4.8901305002202893, -4.3579851683387396, -4.5823886992556027, -3.9919614682494253], [-2.5955574182194718, 2.0062397543385879, 1.9559609862688969, 4.667203774386584], [1.6774343241567058, -0.55274037802019826, -3.8910159204710846, -0.62677331418122506]]]])        arg1=numarray.array([[[[1.7450551814990529, 4.5522109899804093, -0.82165366406344376, -2.8505315559512545], [2.8646429363346968, 1.7762693161877756, -2.1529530945869748, 4.482468402841107], [-0.81712829238560758, 1.9317236294178564, -4.6025589995732661, -0.28744782002330993]], [[-1.0690168655744037, 4.3683195656856189, -4.1423481155585442, -2.1018815894299161], [4.3199217626797228, -4.2065039537376467, 0.81869101563374791, -3.7691044119706927], [-4.4448928041530404, -1.0872350994395532, -4.1108008411737273, 3.6599530324597325]]], [[[-1.4847955394565595, 4.6915279968683574, -4.9462204875009332, 0.38311944040291657], [-2.1605058439124027, 4.921789830223247, 0.86876008503447455, 4.0080906317995542], [0.52810821807423114, -4.0083470980521003, -2.7283309652979471, 4.3855921458049316]], [[0.17355427248093136, -4.9979674375438075, -1.4890615846442481, 1.1926145054254835], [4.7492189465882806, -2.8039225223287634, 4.9182457207009573, -1.9797797943087216], [-0.1814442070193909, -0.60423151788723573, 1.955888981947421, 3.1763572948313463]]], [[[4.9633340244177369, -2.9593256257789857, 0.74622472068483603, -3.619627942514545], [-2.1097947112692559, -3.8882515457067459, -2.3822756291961298, 2.4446772210916539], [-4.1926297861519677, 4.9629186883932537, -1.6878019802614377, -3.0302163999127196]], [[4.8901305002202893, -4.3579851683387396, -4.5823886992556027, -3.9919614682494253], [-2.5955574182194718, 2.0062397543385879, 1.9559609862688969, 4.667203774386584], [1.6774343241567058, -0.55274037802019826, -3.8910159204710846, -0.62677331418122506]]]])
6226        res=arg0/arg1        res=arg0/arg1
# Line 6231  class Test_util_overloaded_binary_no_tag Line 6231  class Test_util_overloaded_binary_no_tag
6231        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6232        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6233     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6234     def test_div_overloaded_Symbol_rank0_constData_rank0(self):     def test_quotient_overloaded_Symbol_rank0_constData_rank0(self):
6235        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6236        arg1=Data(-3.22684796483,self.functionspace)        arg1=Data(-3.22684796483,self.functionspace)
6237        res=arg0/arg1        res=arg0/arg1
# Line 6242  class Test_util_overloaded_binary_no_tag Line 6242  class Test_util_overloaded_binary_no_tag
6242        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
6243        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6244     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6245     def test_div_overloaded_Symbol_rank0_constData_rank1(self):     def test_quotient_overloaded_Symbol_rank0_constData_rank1(self):
6246        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6247        arg1=Data(numarray.array([2.4730638665602358, -1.5074203039263478]),self.functionspace)        arg1=Data(numarray.array([2.4730638665602358, -1.5074203039263478]),self.functionspace)
6248        res=arg0/arg1        res=arg0/arg1
# Line 6253  class Test_util_overloaded_binary_no_tag Line 6253  class Test_util_overloaded_binary_no_tag
6253        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6254        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6255     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6256     def test_div_overloaded_Symbol_rank0_constData_rank2(self):     def test_quotient_overloaded_Symbol_rank0_constData_rank2(self):
6257        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6258        arg1=Data(numarray.array([[3.2859915102953288, 2.4795448435755159, -3.3945252528690117, 0.2176569929619685, 4.7435531525741776], [-0.69448919513540375, 2.0551060198251614, 2.566869926254479, -2.2481445081249407, 4.2260017282466649], [3.501980230937118, 4.1555384461874496, -3.8274980306313222, -1.7332147962840261, -1.0693866670085308], [4.8075166222787562, -4.3582052192826453, 2.120997896569734, 0.026944412090264436, 4.7479424625405677]]),self.functionspace)        arg1=Data(numarray.array([[3.2859915102953288, 2.4795448435755159, -3.3945252528690117, 0.2176569929619685, 4.7435531525741776], [-0.69448919513540375, 2.0551060198251614, 2.566869926254479, -2.2481445081249407, 4.2260017282466649], [3.501980230937118, 4.1555384461874496, -3.8274980306313222, -1.7332147962840261, -1.0693866670085308], [4.8075166222787562, -4.3582052192826453, 2.120997896569734, 0.026944412090264436, 4.7479424625405677]]),self.functionspace)
6259        res=arg0/arg1        res=arg0/arg1
# Line 6264  class Test_util_overloaded_binary_no_tag Line 6264  class Test_util_overloaded_binary_no_tag
6264        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6265        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6266     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6267     def test_div_overloaded_Symbol_rank0_constData_rank3(self):     def test_quotient_overloaded_Symbol_rank0_constData_rank3(self):
6268        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6269        arg1=Data(numarray.array([[[-4.0846598373483847, 4.8129282784933309], [1.8490372238113375, 1.5059684757189196]], [[-1.7801194133764806, 0.47758151262816462], [2.2151654089230313, -3.6940435833758887]], [[-0.15669470414838926, 1.3457128441986015], [1.8288665061204048, 1.6141884239453921]], [[-0.35794691426768743, 2.1605710237263729], [2.945768466443849, -3.1417027197716649]], [[-3.4019159748366068, -3.9064878694324143], [3.2612931901414814, -1.3872832234363699]], [[-2.735224978455455, -4.638954524592469], [2.3140587213509134, 0.079607084072507384]]]),self.functionspace)        arg1=Data(numarray.array([[[-4.0846598373483847, 4.8129282784933309], [1.8490372238113375, 1.5059684757189196]], [[-1.7801194133764806, 0.47758151262816462], [2.2151654089230313, -3.6940435833758887]], [[-0.15669470414838926, 1.3457128441986015], [1.8288665061204048, 1.6141884239453921]], [[-0.35794691426768743, 2.1605710237263729], [2.945768466443849, -3.1417027197716649]], [[-3.4019159748366068, -3.9064878694324143], [3.2612931901414814, -1.3872832234363699]], [[-2.735224978455455, -4.638954524592469], [2.3140587213509134, 0.079607084072507384]]]),self.functionspace)
6270        res=arg0/arg1        res=arg0/arg1
# Line 6275  class Test_util_overloaded_binary_no_tag Line 6275  class Test_util_overloaded_binary_no_tag
6275        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6276        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6277     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6278     def test_div_overloaded_Symbol_rank0_constData_rank4(self):     def test_quotient_overloaded_Symbol_rank0_constData_rank4(self):
6279        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6280        arg1=Data(numarray.array([[[[3.5642743286862668, 3.3985262213595231, -3.1236958713349661, -0.12652691595332932], [-1.9087712791073761, -2.9584563048972368, 0.5244515237460492, 0.20591344806057243], [4.0707378546171142, 3.3932882775187831, 0.098641720781542652, -4.9166133917477826]], [[2.5788600466459322, 4.3580510247404121, -0.92675390701559923, 4.9427443806894757], [-4.7029199071959731, -0.99574742544777717, 4.654850137810163, -0.70432003795335696], [3.9305972324146108, 2.3700035353041251, 4.5386859107846522, 3.7011575937888246]]], [[[0.027604280800233916, 0.76800937715682416, -2.2990235827481631, 0.71290184097906906], [2.3618229526745953, 2.5713892532869176, -0.053783976134731404, -3.2844177374726637], [-2.1982527031275891, -1.2569220931631255, 2.5681384114851813, 2.6730810266816629]], [[4.2774812134616944, -0.99739556511140659, 4.5522684271263998, -4.0507605959337099], [-0.54541697043551363, -3.8556367417220039, -2.8191293583680066, 2.4793321331829388], [-0.84019134679291252, 0.81320154099700748, -0.40292599323561262, 1.1819303417127545]]], [[[3.6378069075430837, 1.0180462589209807, 1.8572065937073763, 3.0476476217429003], [-4.2907866013685423, 4.8175693418627059, -0.07299146617172525, -3.3873077060599499], [0.26639651954577381, -2.6392407917156699, -3.7635915230668893, -4.4639834809555055]], [[-2.1405474023181004, -4.7659823586961831, -3.0046597688054613, -4.3435262197749971], [2.9464554346517282, -2.3558940524048646, 4.0170019076782957, 0.76110492785930006], [1.8698058807759477, 1.797999068975189, -3.3748722377281357, 4.2746000071845351]]]]),self.functionspace)        arg1=Data(numarray.array([[[[3.5642743286862668, 3.3985262213595231, -3.1236958713349661, -0.12652691595332932], [-1.9087712791073761, -2.9584563048972368, 0.5244515237460492, 0.20591344806057243], [4.0707378546171142, 3.3932882775187831, 0.098641720781542652, -4.9166133917477826]], [[2.5788600466459322, 4.3580510247404121, -0.92675390701559923, 4.9427443806894757], [-4.7029199071959731, -0.99574742544777717, 4.654850137810163, -0.70432003795335696], [3.9305972324146108, 2.3700035353041251, 4.5386859107846522, 3.7011575937888246]]], [[[0.027604280800233916, 0.76800937715682416, -2.2990235827481631, 0.71290184097906906], [2.3618229526745953, 2.5713892532869176, -0.053783976134731404, -3.2844177374726637], [-2.1982527031275891, -1.2569220931631255, 2.5681384114851813, 2.6730810266816629]], [[4.2774812134616944, -0.99739556511140659, 4.5522684271263998, -4.0507605959337099], [-0.54541697043551363, -3.8556367417220039, -2.8191293583680066, 2.4793321331829388], [-0.84019134679291252, 0.81320154099700748, -0.40292599323561262, 1.1819303417127545]]], [[[3.6378069075430837, 1.0180462589209807, 1.8572065937073763, 3.0476476217429003], [-4.2907866013685423, 4.8175693418627059, -0.07299146617172525, -3.3873077060599499], [0.26639651954577381, -2.6392407917156699, -3.7635915230668893, -4.4639834809555055]], [[-2.1405474023181004, -4.7659823586961831, -3.0046597688054613, -4.3435262197749971], [2.9464554346517282, -2.3558940524048646, 4.0170019076782957, 0.76110492785930006], [1.8698058807759477, 1.797999068975189, -3.3748722377281357, 4.2746000071845351]]]]),self.functionspace)
6281        res=arg0/arg1        res=arg0/arg1
# Line 6286  class Test_util_overloaded_binary_no_tag Line 6286  class Test_util_overloaded_binary_no_tag
6286        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6287        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6288     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6289     def test_div_overloaded_Symbol_rank0_expandedData_rank0(self):     def test_quotient_overloaded_Symbol_rank0_expandedData_rank0(self):
6290        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6291        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6292        arg1=msk_arg1*(-2.24305121942)+(1.-msk_arg1)*(0.887986195932)        arg1=msk_arg1*(-2.24305121942)+(1.-msk_arg1)*(0.887986195932)
# Line 6299  class Test_util_overloaded_binary_no_tag Line 6299  class Test_util_overloaded_binary_no_tag
6299        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
6300        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6301     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6302     def test_div_overloaded_Symbol_rank0_expandedData_rank1(self):     def test_quotient_overloaded_Symbol_rank0_expandedData_rank1(self):
6303        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6304        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6305        arg1=msk_arg1*numarray.array([1.2776447073931969, -1.5715069234809134])+(1.-msk_arg1)*numarray.array([-1.723411354547717, -3.9839396851542705])        arg1=msk_arg1*numarray.array([1.2776447073931969, -1.5715069234809134])+(1.-msk_arg1)*numarray.array([-1.723411354547717, -3.9839396851542705])
# Line 6312  class Test_util_overloaded_binary_no_tag Line 6312  class Test_util_overloaded_binary_no_tag
6312        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6313        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6314     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6315     def test_div_overloaded_Symbol_rank0_expandedData_rank2(self):     def test_quotient_overloaded_Symbol_rank0_expandedData_rank2(self):
6316        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6317        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6318        arg1=msk_arg1*numarray.array([[-2.6393442498487873, 4.7705452192639584, 3.8297424567273701, 1.0723244677415114, -2.146471225103781], [-0.13344771525756638, -3.7178834725818577, 1.3665966404513652, -3.3064432398259616, -2.5353311118420407], [-2.3639632959155064, 1.0157340105612249, 4.9331685276087001, 4.908508010976556, -1.519044973432353], [-2.0823253267151731, 4.581272117722623, -4.2190415400175585, 2.0991604926092853, 2.2921722871510646]])+(1.-msk_arg1)*numarray.array([[0.38685955037830766, -4.8242765295085004, -1.6844246622648162, 0.32494600795168793, 1.5332506934017349], [-3.7921811148924798, 1.4906670633992221, -2.164672021679217, 2.7543259553940347, -4.2154852083671805], [0.73297388308072087, 2.6849749176949578, -3.1831223657091865, 2.464394339508039, 4.8470926265240806], [-4.7306307422582785, -2.7964023267268101, -3.9303851774316634, -2.2617975139049751, 0.6476905050656514]])        arg1=msk_arg1*numarray.array([[-2.6393442498487873, 4.7705452192639584, 3.8297424567273701, 1.0723244677415114, -2.146471225103781], [-0.13344771525756638, -3.7178834725818577, 1.3665966404513652, -3.3064432398259616, -2.5353311118420407], [-2.3639632959155064, 1.0157340105612249, 4.9331685276087001, 4.908508010976556, -1.519044973432353], [-2.0823253267151731, 4.581272117722623, -4.2190415400175585, 2.0991604926092853, 2.2921722871510646]])+(1.-msk_arg1)*numarray.array([[0.38685955037830766, -4.8242765295085004, -1.6844246622648162, 0.32494600795168793, 1.5332506934017349], [-3.7921811148924798, 1.4906670633992221, -2.164672021679217, 2.7543259553940347, -4.2154852083671805], [0.73297388308072087, 2.6849749176949578, -3.1831223657091865, 2.464394339508039, 4.8470926265240806], [-4.7306307422582785, -2.7964023267268101, -3.9303851774316634, -2.2617975139049751, 0.6476905050656514]])
# Line 6325  class Test_util_overloaded_binary_no_tag Line 6325  class Test_util_overloaded_binary_no_tag
6325        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6326        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6327     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6328     def test_div_overloaded_Symbol_rank0_expandedData_rank3(self):     def test_quotient_overloaded_Symbol_rank0_expandedData_rank3(self):
6329        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6330        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6331        arg1=msk_arg1*numarray.array([[[0.25361929255679794, 4.6979337641309282], [-1.7116737278380842, 0.025339543945705145]], [[0.054527040975695051, -1.1649142005766624], [3.401085474785992, 1.2266278123878651]], [[-1.378764078666519, 3.8524819853574286], [0.7430957776670768, -2.6487962024480485]], [[3.6745948242463395, -0.52879315952560901], [2.8123554867380873, -4.5928034915110558]], [[1.1308118572068224, 0.78665940688850711], [-3.7950676162021955, -2.3698842366961115]], [[0.48730612496882042, -4.7728542642079752], [4.062020957681046, 2.9209232801565843]]])+(1.-msk_arg1)*numarray.array([[[-4.377206551932888, 2.7528113954709896], [-4.6967530033111391, -4.2886865814356536]], [[2.049743309027753, -0.12862715426957472], [-1.6830407667662728, -0.94468396157668622]], [[-3.8806000920297778, -3.9420054850643127], [0.33724294842999925, 4.3610309191107604]], [[1.2593296851410249, -0.54170932780752956], [-4.9820478737709673, -2.1754149816359014]], [[-1.6849404731662618, -2.5837372783570856], [0.64964466089223905, -1.88057151872954]], [[-2.5839416236624189, 4.9121674265636059], [3.4445625306216172, -0.95352077642177768]]])        arg1=msk_arg1*numarray.array([[[0.25361929255679794, 4.6979337641309282], [-1.7116737278380842, 0.025339543945705145]], [[0.054527040975695051, -1.1649142005766624], [3.401085474785992, 1.2266278123878651]], [[-1.378764078666519, 3.8524819853574286], [0.7430957776670768, -2.6487962024480485]], [[3.6745948242463395, -0.52879315952560901], [2.8123554867380873, -4.5928034915110558]], [[1.1308118572068224, 0.78665940688850711], [-3.7950676162021955, -2.3698842366961115]], [[0.48730612496882042, -4.7728542642079752], [4.062020957681046, 2.9209232801565843]]])+(1.-msk_arg1)*numarray.array([[[-4.377206551932888, 2.7528113954709896], [-4.6967530033111391, -4.2886865814356536]], [[2.049743309027753, -0.12862715426957472], [-1.6830407667662728, -0.94468396157668622]], [[-3.8806000920297778, -3.9420054850643127], [0.33724294842999925, 4.3610309191107604]], [[1.2593296851410249, -0.54170932780752956], [-4.9820478737709673, -2.1754149816359014]], [[-1.6849404731662618, -2.5837372783570856], [0.64964466089223905, -1.88057151872954]], [[-2.5839416236624189, 4.9121674265636059], [3.4445625306216172, -0.95352077642177768]]])
# Line 6338  class Test_util_overloaded_binary_no_tag Line 6338  class Test_util_overloaded_binary_no_tag
6338        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6339        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6340     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6341     def test_div_overloaded_Symbol_rank0_expandedData_rank4(self):     def test_quotient_overloaded_Symbol_rank0_expandedData_rank4(self):
6342        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6343        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6344        arg1=msk_arg1*numarray.array([[[[-1.9218548523454606, 4.8049506470567405, -0.69037247529377677, 2.0116218795060181], [3.3569393839163837, 3.053015064776023, 4.3760374224907768, -1.6302955824912613], [-2.475881380204441, 3.9357192467974151, 3.8291908455350914, -1.5295583075475716]], [[0.81999785047861184, -4.9183238425622751, -4.498143495882724, -4.011335234830149], [-4.4155746631227935, 0.17738911818936565, 2.1013815503083864, 1.0342995976408043], [-3.5157615459815359, -4.416358741608537, 1.7633917697077583, -4.6567596125334845]]], [[[-4.4153661164448952, -3.7883707809528486, 0.61242697643119737, 1.0639880670701363], [4.2560645611324599, -1.5275323899062654, -1.8863580473592556, -2.0370178170350215], [4.7451670493741123, -3.8993028200612279, 1.1261669560743295, 0.10700593134448955]], [[-4.6742861811776582, 0.1248976674323039, -0.30310228858153465, 0.46472397894032014], [-4.4333471257878241, 0.61263143944596887, 2.9190945035942493, -2.3660053852685783], [1.3066376718910169, -1.2874398502853222, 1.6724759610401811, 1.9758214205261551]]], [[[2.7858676714998021, -1.3134639459292705, 4.6216329974630668, -3.1206523832686606], [4.9240105452803657, -0.75755976660862245, -1.3066142401730776, -0.7310987343478681], [-3.581614511043151, 1.199749845602625, -1.3345486714076427, -1.766892681430293]], [[1.1355441056054243, 4.9659988326980571, 4.0519878268280003, 0.75442809464434646], [-4.3942700482087558, -1.1583919847309576, -2.521709416650074, 4.3500829790485334], [-4.1117601199769886, -0.84361285996259472, 1.5452987513122638, -3.4677179476292341]]]])+(1.-msk_arg1)*numarray.array([[[[1.1419547964093937, -0.14604579034430554, -1.6087039885204546, -3.982809594767537], [-4.6472374938936465, 2.6681623597837625, 2.409596432688943, 0.23451015329997205], [3.6209678953089259, 3.4778621364355633, -0.3448424949352944, -3.6131889212886192]], [[3.2619727528997053, -2.0225509445644283, -4.7894142532264903, -1.7462717275800435], [0.3541935802690972, -2.1149488724967638, -2.3714311485631425, 4.5130949636467648], [0.26148367262553762, -4.3747859425548574, -4.6100240060251991, -2.6777575642537998]]], [[[0.047226159017216496, -2.8105894777930605, -4.5434009768706209, 1.0852051086248604], [-3.8777476574321623, -1.4547184533083923, -2.0418858679245258, -1.9051019416216572], [1.5376781546019549, 1.629644864826397, -0.30025050045655099, 4.6849023917389498]], [[4.8480900309568948, -1.5018443924628788, -0.081262965104784257, -2.919831613945314], [-3.5170993940367179, -4.2696467138474956, -1.2058726054684579, -1.5420027054467624], [4.2312161935663433, -0.40640431652962761, 4.5167061578898267, 1.1250083690074275]]], [[[2.132313363967075, -3.1339232587830823, -0.55690010715516181, -1.2706816370831753], [-2.720421176025678, -4.6316800442988306, 4.6386898556038414, 0.60325130684192185], [-1.1912830583247458, -4.7830477147313868, 1.5341704608876423, -0.73120055498447112]], [[1.0263504441609994, -4.1372119047533467, -1.9611705914831146, -0.012435178352796505], [-1.771732137627493, -0.7593409651550882, 1.9726289221577362, 1.1710292717153878], [3.5961298618902742, 0.92133584998993534, 4.4853963984503515, -0.906012375725882]]]])        arg1=msk_arg1*numarray.array([[[[-1.9218548523454606, 4.8049506470567405, -0.69037247529377677, 2.0116218795060181], [3.3569393839163837, 3.053015064776023, 4.3760374224907768, -1.6302955824912613], [-2.475881380204441, 3.9357192467974151, 3.8291908455350914, -1.5295583075475716]], [[0.81999785047861184, -4.9183238425622751, -4.498143495882724, -4.011335234830149], [-4.4155746631227935, 0.17738911818936565, 2.1013815503083864, 1.0342995976408043], [-3.5157615459815359, -4.416358741608537, 1.7633917697077583, -4.6567596125334845]]], [[[-4.4153661164448952, -3.7883707809528486, 0.61242697643119737, 1.0639880670701363], [4.2560645611324599, -1.5275323899062654, -1.8863580473592556, -2.0370178170350215], [4.7451670493741123, -3.8993028200612279, 1.1261669560743295, 0.10700593134448955]], [[-4.6742861811776582, 0.1248976674323039, -0.30310228858153465, 0.46472397894032014], [-4.4333471257878241, 0.61263143944596887, 2.9190945035942493, -2.3660053852685783], [1.3066376718910169, -1.2874398502853222, 1.6724759610401811, 1.9758214205261551]]], [[[2.7858676714998021, -1.3134639459292705, 4.6216329974630668, -3.1206523832686606], [4.9240105452803657, -0.75755976660862245, -1.3066142401730776, -0.7310987343478681], [-3.581614511043151, 1.199749845602625, -1.3345486714076427, -1.766892681430293]], [[1.1355441056054243, 4.9659988326980571, 4.0519878268280003, 0.75442809464434646], [-4.3942700482087558, -1.1583919847309576, -2.521709416650074, 4.3500829790485334], [-4.1117601199769886, -0.84361285996259472, 1.5452987513122638, -3.4677179476292341]]]])+(1.-msk_arg1)*numarray.array([[[[1.1419547964093937, -0.14604579034430554, -1.6087039885204546, -3.982809594767537], [-4.6472374938936465, 2.6681623597837625, 2.409596432688943, 0.23451015329997205], [3.6209678953089259, 3.4778621364355633, -0.3448424949352944, -3.6131889212886192]], [[3.2619727528997053, -2.0225509445644283, -4.7894142532264903, -1.7462717275800435], [0.3541935802690972, -2.1149488724967638, -2.3714311485631425, 4.5130949636467648], [0.26148367262553762, -4.3747859425548574, -4.6100240060251991, -2.6777575642537998]]], [[[0.047226159017216496, -2.8105894777930605, -4.5434009768706209, 1.0852051086248604], [-3.8777476574321623, -1.4547184533083923, -2.0418858679245258, -1.9051019416216572], [1.5376781546019549, 1.629644864826397, -0.30025050045655099, 4.6849023917389498]], [[4.8480900309568948, -1.5018443924628788, -0.081262965104784257, -2.919831613945314], [-3.5170993940367179, -4.2696467138474956, -1.2058726054684579, -1.5420027054467624], [4.2312161935663433, -0.40640431652962761, 4.5167061578898267, 1.1250083690074275]]], [[[2.132313363967075, -3.1339232587830823, -0.55690010715516181, -1.2706816370831753], [-2.720421176025678, -4.6316800442988306, 4.6386898556038414, 0.60325130684192185], [-1.1912830583247458, -4.7830477147313868, 1.5341704608876423, -0.73120055498447112]], [[1.0263504441609994, -4.1372119047533467, -1.9611705914831146, -0.012435178352796505], [-1.771732137627493, -0.7593409651550882, 1.9726289221577362, 1.1710292717153878], [3.5961298618902742, 0.92133584998993534, 4.4853963984503515, -0.906012375725882]]]])
# Line 6351  class Test_util_overloaded_binary_no_tag Line 6351  class Test_util_overloaded_binary_no_tag
6351        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6352        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6353     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6354     def test_div_overloaded_Symbol_rank0_Symbol_rank0(self):     def test_quotient_overloaded_Symbol_rank0_Symbol_rank0(self):
6355        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6356        arg1=Symbol(shape=())        arg1=Symbol(shape=())
6357        res=arg0/arg1        res=arg0/arg1
# Line 6363  class Test_util_overloaded_binary_no_tag Line 6363  class Test_util_overloaded_binary_no_tag
6363        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
6364        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6365     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6366     def test_div_overloaded_Symbol_rank0_Symbol_rank1(self):     def test_quotient_overloaded_Symbol_rank0_Symbol_rank1(self):
6367        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6368        arg1=Symbol(shape=(2,))        arg1=Symbol(shape=(2,))
6369        res=arg0/arg1        res=arg0/arg1
# Line 6375  class Test_util_overloaded_binary_no_tag Line 6375  class Test_util_overloaded_binary_no_tag
6375        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6376        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6377     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6378     def test_div_overloaded_Symbol_rank0_Symbol_rank2(self):     def test_quotient_overloaded_Symbol_rank0_Symbol_rank2(self):
6379        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6380        arg1=Symbol(shape=(4, 5))        arg1=Symbol(shape=(4, 5))
6381        res=arg0/arg1        res=arg0/arg1
# Line 6387  class Test_util_overloaded_binary_no_tag Line 6387  class Test_util_overloaded_binary_no_tag
6387        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6388        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6389     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6390     def test_div_overloaded_Symbol_rank0_Symbol_rank3(self):     def test_quotient_overloaded_Symbol_rank0_Symbol_rank3(self):
6391        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6392        arg1=Symbol(shape=(6, 2, 2))        arg1=Symbol(shape=(6, 2, 2))
6393        res=arg0/arg1        res=arg0/arg1
# Line 6399  class Test_util_overloaded_binary_no_tag Line 6399  class Test_util_overloaded_binary_no_tag
6399        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6400        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6401     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6402     def test_div_overloaded_Symbol_rank0_Symbol_rank4(self):     def test_quotient_overloaded_Symbol_rank0_Symbol_rank4(self):
6403        arg0=Symbol(shape=())        arg0=Symbol(shape=())
6404        arg1=Symbol(shape=(3, 2, 3, 4))        arg1=Symbol(shape=(3, 2, 3, 4))
6405        res=arg0/arg1        res=arg0/arg1
# Line 6411  class Test_util_overloaded_binary_no_tag Line 6411  class Test_util_overloaded_binary_no_tag
6411        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6412        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6413     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6414     def test_div_overloaded_Symbol_rank1_float_rank0(self):     def test_quotient_overloaded_Symbol_rank1_float_rank0(self):
6415        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6416        arg1=0.250579789999        arg1=0.250579789999
6417        res=arg0/arg1        res=arg0/arg1
# Line 6422  class Test_util_overloaded_binary_no_tag Line 6422  class Test_util_overloaded_binary_no_tag
6422        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6423        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6424     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6425     def test_div_overloaded_Symbol_rank1_array_rank0(self):     def test_quotient_overloaded_Symbol_rank1_array_rank0(self):
6426        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6427        arg1=numarray.array(-1.83922816262)        arg1=numarray.array(-1.83922816262)
6428        res=arg0/arg1        res=arg0/arg1
# Line 6433  class Test_util_overloaded_binary_no_tag Line 6433  class Test_util_overloaded_binary_no_tag
6433        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6434        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6435     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6436     def test_div_overloaded_Symbol_rank1_array_rank1(self):     def test_quotient_overloaded_Symbol_rank1_array_rank1(self):
6437        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6438        arg1=numarray.array([0.52815694592065032, 0.33949980125469281])        arg1=numarray.array([0.52815694592065032, 0.33949980125469281])
6439        res=arg0/arg1        res=arg0/arg1
# Line 6444  class Test_util_overloaded_binary_no_tag Line 6444  class Test_util_overloaded_binary_no_tag
6444        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6445        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6446     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6447     def test_div_overloaded_Symbol_rank1_constData_rank0(self):     def test_quotient_overloaded_Symbol_rank1_constData_rank0(self):
6448        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6449        arg1=Data(-0.237789555411,self.functionspace)        arg1=Data(-0.237789555411,self.functionspace)
6450        res=arg0/arg1        res=arg0/arg1
# Line 6455  class Test_util_overloaded_binary_no_tag Line 6455  class Test_util_overloaded_binary_no_tag
6455        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6456        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6457     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6458     def test_div_overloaded_Symbol_rank1_constData_rank1(self):     def test_quotient_overloaded_Symbol_rank1_constData_rank1(self):
6459        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6460        arg1=Data(numarray.array([-1.0535278251483007, -1.4908682127893949]),self.functionspace)        arg1=Data(numarray.array([-1.0535278251483007, -1.4908682127893949]),self.functionspace)
6461        res=arg0/arg1        res=arg0/arg1
# Line 6466  class Test_util_overloaded_binary_no_tag Line 6466  class Test_util_overloaded_binary_no_tag
6466        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6467        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6468     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6469     def test_div_overloaded_Symbol_rank1_expandedData_rank0(self):     def test_quotient_overloaded_Symbol_rank1_expandedData_rank0(self):
6470        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6471        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6472        arg1=msk_arg1*(-2.46042867527)+(1.-msk_arg1)*(0.905188745543)        arg1=msk_arg1*(-2.46042867527)+(1.-msk_arg1)*(0.905188745543)
# Line 6479  class Test_util_overloaded_binary_no_tag Line 6479  class Test_util_overloaded_binary_no_tag
6479        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6480        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6481     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6482     def test_div_overloaded_Symbol_rank1_expandedData_rank1(self):     def test_quotient_overloaded_Symbol_rank1_expandedData_rank1(self):
6483        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6484        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6485        arg1=msk_arg1*numarray.array([-3.7476436001557212, -1.3759840886481376])+(1.-msk_arg1)*numarray.array([-0.85538783864736523, 2.4154956612046732])        arg1=msk_arg1*numarray.array([-3.7476436001557212, -1.3759840886481376])+(1.-msk_arg1)*numarray.array([-0.85538783864736523, 2.4154956612046732])
# Line 6492  class Test_util_overloaded_binary_no_tag Line 6492  class Test_util_overloaded_binary_no_tag
6492        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6493        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6494     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6495     def test_div_overloaded_Symbol_rank1_Symbol_rank0(self):     def test_quotient_overloaded_Symbol_rank1_Symbol_rank0(self):
6496        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6497        arg1=Symbol(shape=())        arg1=Symbol(shape=())
6498        res=arg0/arg1        res=arg0/arg1
# Line 6504  class Test_util_overloaded_binary_no_tag Line 6504  class Test_util_overloaded_binary_no_tag
6504        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6505        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6506     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6507     def test_div_overloaded_Symbol_rank1_Symbol_rank1(self):     def test_quotient_overloaded_Symbol_rank1_Symbol_rank1(self):
6508        arg0=Symbol(shape=(2,))        arg0=Symbol(shape=(2,))
6509        arg1=Symbol(shape=(2,))        arg1=Symbol(shape=(2,))
6510        res=arg0/arg1        res=arg0/arg1
# Line 6516  class Test_util_overloaded_binary_no_tag Line 6516  class Test_util_overloaded_binary_no_tag
6516        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
6517        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6518     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6519     def test_div_overloaded_Symbol_rank2_float_rank0(self):     def test_quotient_overloaded_Symbol_rank2_float_rank0(self):
6520        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6521        arg1=3.84217553729        arg1=3.84217553729
6522        res=arg0/arg1        res=arg0/arg1
# Line 6527  class Test_util_overloaded_binary_no_tag Line 6527  class Test_util_overloaded_binary_no_tag
6527        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6528        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6529     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6530     def test_div_overloaded_Symbol_rank2_array_rank0(self):     def test_quotient_overloaded_Symbol_rank2_array_rank0(self):
6531        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6532        arg1=numarray.array(-4.63257727746)        arg1=numarray.array(-4.63257727746)
6533        res=arg0/arg1        res=arg0/arg1
# Line 6538  class Test_util_overloaded_binary_no_tag Line 6538  class Test_util_overloaded_binary_no_tag
6538        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6539        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6540     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6541     def test_div_overloaded_Symbol_rank2_array_rank2(self):     def test_quotient_overloaded_Symbol_rank2_array_rank2(self):
6542        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6543        arg1=numarray.array([[4.802917856698329, -3.9225242412760442, -3.5705591721489292, 2.6448047966927204, 4.5327944493473034], [-1.415482016265055, 0.42611453399021482, 4.080278329078439, 0.84966506980636147, -1.6149914786019162], [-0.98468445983360908, -4.1376028647082546, -2.5515707271226407, -2.5097439665160937, 0.47848120897668345], [-3.3603885239252138, -4.913173298107159, 4.2579084643805576, -3.5864988244677587, -0.31262332324325737]])        arg1=numarray.array([[4.802917856698329, -3.9225242412760442, -3.5705591721489292, 2.6448047966927204, 4.5327944493473034], [-1.415482016265055, 0.42611453399021482, 4.080278329078439, 0.84966506980636147, -1.6149914786019162], [-0.98468445983360908, -4.1376028647082546, -2.5515707271226407, -2.5097439665160937, 0.47848120897668345], [-3.3603885239252138, -4.913173298107159, 4.2579084643805576, -3.5864988244677587, -0.31262332324325737]])
6544        res=arg0/arg1        res=arg0/arg1
# Line 6549  class Test_util_overloaded_binary_no_tag Line 6549  class Test_util_overloaded_binary_no_tag
6549        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6550        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6551     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6552     def test_div_overloaded_Symbol_rank2_constData_rank0(self):     def test_quotient_overloaded_Symbol_rank2_constData_rank0(self):
6553        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6554        arg1=Data(-3.7591290551,self.functionspace)        arg1=Data(-3.7591290551,self.functionspace)
6555        res=arg0/arg1        res=arg0/arg1
# Line 6560  class Test_util_overloaded_binary_no_tag Line 6560  class Test_util_overloaded_binary_no_tag
6560        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6561        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6562     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6563     def test_div_overloaded_Symbol_rank2_constData_rank2(self):     def test_quotient_overloaded_Symbol_rank2_constData_rank2(self):
6564        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6565        arg1=Data(numarray.array([[4.6593190286526394, -2.2563646223555036, 1.2957050024388455, -1.2806413271211001, -0.50274644149954284], [-1.3515174181976897, -3.0192215147593959, -4.3372668393659817, -0.41270382952712303, -2.4250755068099714], [-1.9923062738763475, 3.8939089572798835, -1.4523322255050877, 4.3246840380068186, 0.15013064111686436], [-4.3252042285107581, 0.29845172545702248, -4.2663963698627425, -3.8495753555604129, -2.7832985460320758]]),self.functionspace)        arg1=Data(numarray.array([[4.6593190286526394, -2.2563646223555036, 1.2957050024388455, -1.2806413271211001, -0.50274644149954284], [-1.3515174181976897, -3.0192215147593959, -4.3372668393659817, -0.41270382952712303, -2.4250755068099714], [-1.9923062738763475, 3.8939089572798835, -1.4523322255050877, 4.3246840380068186, 0.15013064111686436], [-4.3252042285107581, 0.29845172545702248, -4.2663963698627425, -3.8495753555604129, -2.7832985460320758]]),self.functionspace)
6566        res=arg0/arg1        res=arg0/arg1
# Line 6571  class Test_util_overloaded_binary_no_tag Line 6571  class Test_util_overloaded_binary_no_tag
6571        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6572        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6573     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6574     def test_div_overloaded_Symbol_rank2_expandedData_rank0(self):     def test_quotient_overloaded_Symbol_rank2_expandedData_rank0(self):
6575        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6576        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6577        arg1=msk_arg1*(0.835967454073)+(1.-msk_arg1)*(-1.06653482743)        arg1=msk_arg1*(0.835967454073)+(1.-msk_arg1)*(-1.06653482743)
# Line 6584  class Test_util_overloaded_binary_no_tag Line 6584  class Test_util_overloaded_binary_no_tag
6584        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6585        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6586     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6587     def test_div_overloaded_Symbol_rank2_expandedData_rank2(self):     def test_quotient_overloaded_Symbol_rank2_expandedData_rank2(self):
6588        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6589        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6590        arg1=msk_arg1*numarray.array([[-2.1839175205691275, -4.2007488324810645, 2.2458259090040658, 0.99064130655618321, -0.49309020203387366], [2.7937860435087059, 1.1198202516992586, 1.9493749682414645, 0.12007162205864841, 3.0544074383360709], [3.6516814549311807, 4.627156426129762, -3.6298502116198037, -3.4472182673273846, 3.8907748338656116], [3.9925127326601135, -1.3254125552525906, -3.5219278020998459, -4.6012167569495652, -0.69185800276755227]])+(1.-msk_arg1)*numarray.array([[-2.7291180936639092, 1.765768464449545, -3.6079136180523852, -3.9674261251403555, 4.635166494670953], [-1.2679254334611012, -0.44031739374268852, -2.9882872151661166, -0.88858512897545427, -4.8809222394930103], [-2.2915333941538076, -1.8888526739041955, -3.1163084775995111, -4.7914928523250104, 3.1434562487691444], [3.6296447844742588, -4.6866746521540517, 4.9390511146654141, -3.7067786752720533, 4.2554868400298815]])        arg1=msk_arg1*numarray.array([[-2.1839175205691275, -4.2007488324810645, 2.2458259090040658, 0.99064130655618321, -0.49309020203387366], [2.7937860435087059, 1.1198202516992586, 1.9493749682414645, 0.12007162205864841, 3.0544074383360709], [3.6516814549311807, 4.627156426129762, -3.6298502116198037, -3.4472182673273846, 3.8907748338656116], [3.9925127326601135, -1.3254125552525906, -3.5219278020998459, -4.6012167569495652, -0.69185800276755227]])+(1.-msk_arg1)*numarray.array([[-2.7291180936639092, 1.765768464449545, -3.6079136180523852, -3.9674261251403555, 4.635166494670953], [-1.2679254334611012, -0.44031739374268852, -2.9882872151661166, -0.88858512897545427, -4.8809222394930103], [-2.2915333941538076, -1.8888526739041955, -3.1163084775995111, -4.7914928523250104, 3.1434562487691444], [3.6296447844742588, -4.6866746521540517, 4.9390511146654141, -3.7067786752720533, 4.2554868400298815]])
# Line 6597  class Test_util_overloaded_binary_no_tag Line 6597  class Test_util_overloaded_binary_no_tag
6597        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6598        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6599     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6600     def test_div_overloaded_Symbol_rank2_Symbol_rank0(self):     def test_quotient_overloaded_Symbol_rank2_Symbol_rank0(self):
6601        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6602        arg1=Symbol(shape=())        arg1=Symbol(shape=())
6603        res=arg0/arg1        res=arg0/arg1
# Line 6609  class Test_util_overloaded_binary_no_tag Line 6609  class Test_util_overloaded_binary_no_tag
6609        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6610        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6611     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6612     def test_div_overloaded_Symbol_rank2_Symbol_rank2(self):     def test_quotient_overloaded_Symbol_rank2_Symbol_rank2(self):
6613        arg0=Symbol(shape=(4, 5))        arg0=Symbol(shape=(4, 5))
6614        arg1=Symbol(shape=(4, 5))        arg1=Symbol(shape=(4, 5))
6615        res=arg0/arg1        res=arg0/arg1
# Line 6621  class Test_util_overloaded_binary_no_tag Line 6621  class Test_util_overloaded_binary_no_tag
6621        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")
6622        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6623     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6624     def test_div_overloaded_Symbol_rank3_float_rank0(self):     def test_quotient_overloaded_Symbol_rank3_float_rank0(self):
6625        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6626        arg1=-0.58370956364        arg1=-0.58370956364
6627        res=arg0/arg1        res=arg0/arg1
# Line 6632  class Test_util_overloaded_binary_no_tag Line 6632  class Test_util_overloaded_binary_no_tag
6632        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6633        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6634     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6635     def test_div_overloaded_Symbol_rank3_array_rank0(self):     def test_quotient_overloaded_Symbol_rank3_array_rank0(self):
6636        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6637        arg1=numarray.array(3.89226644376)        arg1=numarray.array(3.89226644376)
6638        res=arg0/arg1        res=arg0/arg1
# Line 6643  class Test_util_overloaded_binary_no_tag Line 6643  class Test_util_overloaded_binary_no_tag
6643        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6644        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6645     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6646     def test_div_overloaded_Symbol_rank3_array_rank3(self):     def test_quotient_overloaded_Symbol_rank3_array_rank3(self):
6647        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6648        arg1=numarray.array([[[-1.017553102578943, 0.96193106062414824], [-0.62794048091135046, -3.0558954901641497]], [[1.8360779261924431, 2.8614721321425698], [-1.6509249120893332, 2.5054709054441684]], [[2.5302640719994232, 4.3290261206851408], [-2.2301358666200954, 4.1718168788611383]], [[-1.9315946055743813, -1.3112139632837638], [-3.782113392179264, 2.8359511681657246]], [[-0.65070211247534182, -1.4191275732866693], [-2.9812636334619969, -0.65272098130150891]], [[2.0531304670113535, -4.7422968227910367], [3.7109709127961459, 2.4072790103906483]]])        arg1=numarray.array([[[-1.017553102578943, 0.96193106062414824], [-0.62794048091135046, -3.0558954901641497]], [[1.8360779261924431, 2.8614721321425698], [-1.6509249120893332, 2.5054709054441684]], [[2.5302640719994232, 4.3290261206851408], [-2.2301358666200954, 4.1718168788611383]], [[-1.9315946055743813, -1.3112139632837638], [-3.782113392179264, 2.8359511681657246]], [[-0.65070211247534182, -1.4191275732866693], [-2.9812636334619969, -0.65272098130150891]], [[2.0531304670113535, -4.7422968227910367], [3.7109709127961459, 2.4072790103906483]]])
6649        res=arg0/arg1        res=arg0/arg1
# Line 6654  class Test_util_overloaded_binary_no_tag Line 6654  class Test_util_overloaded_binary_no_tag
6654        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6655        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6656     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6657     def test_div_overloaded_Symbol_rank3_constData_rank0(self):     def test_quotient_overloaded_Symbol_rank3_constData_rank0(self):
6658        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6659        arg1=Data(0.481307018833,self.functionspace)        arg1=Data(0.481307018833,self.functionspace)
6660        res=arg0/arg1        res=arg0/arg1
# Line 6665  class Test_util_overloaded_binary_no_tag Line 6665  class Test_util_overloaded_binary_no_tag
6665        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6666        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6667     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6668     def test_div_overloaded_Symbol_rank3_constData_rank3(self):     def test_quotient_overloaded_Symbol_rank3_constData_rank3(self):
6669        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6670        arg1=Data(numarray.array([[[1.0934762742660595, -3.9863941676371519], [1.1769382460543278, 4.8475623577700624]], [[-1.2914398749109179, -4.0939229739924254], [4.5952176801962459, 1.9542489546580768]], [[-1.606325803607056, 2.9929930604580761], [1.7014988536569859, 3.0238306150893912]], [[0.519093132670152, -2.2222008211898636], [2.8817773125148518, -2.0669649899584441]], [[-4.8662820979454029, 1.723624784484171], [1.7318218413813629, -0.3396969185950347]], [[-0.87663117415045644, -4.1452571226603041], [-4.1500392156391435, -4.742403156568634]]]),self.functionspace)        arg1=Data(numarray.array([[[1.0934762742660595, -3.9863941676371519], [1.1769382460543278, 4.8475623577700624]], [[-1.2914398749109179, -4.0939229739924254], [4.5952176801962459, 1.9542489546580768]], [[-1.606325803607056, 2.9929930604580761], [1.7014988536569859, 3.0238306150893912]], [[0.519093132670152, -2.2222008211898636], [2.8817773125148518, -2.0669649899584441]], [[-4.8662820979454029, 1.723624784484171], [1.7318218413813629, -0.3396969185950347]], [[-0.87663117415045644, -4.1452571226603041], [-4.1500392156391435, -4.742403156568634]]]),self.functionspace)
6671        res=arg0/arg1        res=arg0/arg1
# Line 6676  class Test_util_overloaded_binary_no_tag Line 6676  class Test_util_overloaded_binary_no_tag
6676        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6677        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6678     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6679     def test_div_overloaded_Symbol_rank3_expandedData_rank0(self):     def test_quotient_overloaded_Symbol_rank3_expandedData_rank0(self):
6680        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6681        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6682        arg1=msk_arg1*(0.264228413595)+(1.-msk_arg1)*(3.69068505919)        arg1=msk_arg1*(0.264228413595)+(1.-msk_arg1)*(3.69068505919)
# Line 6689  class Test_util_overloaded_binary_no_tag Line 6689  class Test_util_overloaded_binary_no_tag
6689        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6690        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6691     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6692     def test_div_overloaded_Symbol_rank3_expandedData_rank3(self):     def test_quotient_overloaded_Symbol_rank3_expandedData_rank3(self):
6693        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6694        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6695        arg1=msk_arg1*numarray.array([[[2.0358230085352425, 3.1580474339245157], [-0.71050908958133263, -4.5682212248371474]], [[-3.7626788869693959, 4.5221700976091004], [0.28596263069047723, 3.1947138017562331]], [[-4.258054781436349, 3.203663289226073], [0.86246630848964045, 4.1442565438249659]], [[0.36177956287775626, -1.564955248260941], [-3.2981602109502726, 4.562042318919433]], [[-3.8670190023565612, 4.0328438320380187], [0.86619544071279186, 4.6779383230768516]], [[4.1372426959449182, 4.6703421259592908], [-1.4104724817125458, -4.4941550413711964]]])+(1.-msk_arg1)*numarray.array([[[-3.8063249490102988, -4.6335397937937417], [4.6855877849627543, 2.4790051273719804]], [[-2.3225046518438086, 2.7192147691239832], [-3.8670891923081729, 0.85017500224662079]], [[-2.0513028045774684, 2.6955808867842155], [1.3677135472129969, 4.6661985123970862]], [[3.168939941587654, 2.5745180099514355], [4.2210703327235972, -4.2438382220083604]], [[-3.1001710006552443, 3.9847770584240561], [1.202716755383852, -1.9798123193048522]], [[2.0219433216643967, -4.9923793259716884], [-0.60866137483297411, -3.5901957674698002]]])        arg1=msk_arg1*numarray.array([[[2.0358230085352425, 3.1580474339245157], [-0.71050908958133263, -4.5682212248371474]], [[-3.7626788869693959, 4.5221700976091004], [0.28596263069047723, 3.1947138017562331]], [[-4.258054781436349, 3.203663289226073], [0.86246630848964045, 4.1442565438249659]], [[0.36177956287775626, -1.564955248260941], [-3.2981602109502726, 4.562042318919433]], [[-3.8670190023565612, 4.0328438320380187], [0.86619544071279186, 4.6779383230768516]], [[4.1372426959449182, 4.6703421259592908], [-1.4104724817125458, -4.4941550413711964]]])+(1.-msk_arg1)*numarray.array([[[-3.8063249490102988, -4.6335397937937417], [4.6855877849627543, 2.4790051273719804]], [[-2.3225046518438086, 2.7192147691239832], [-3.8670891923081729, 0.85017500224662079]], [[-2.0513028045774684, 2.6955808867842155], [1.3677135472129969, 4.6661985123970862]], [[3.168939941587654, 2.5745180099514355], [4.2210703327235972, -4.2438382220083604]], [[-3.1001710006552443, 3.9847770584240561], [1.202716755383852, -1.9798123193048522]], [[2.0219433216643967, -4.9923793259716884], [-0.60866137483297411, -3.5901957674698002]]])
# Line 6702  class Test_util_overloaded_binary_no_tag Line 6702  class Test_util_overloaded_binary_no_tag
6702        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6703        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6704     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6705     def test_div_overloaded_Symbol_rank3_Symbol_rank0(self):     def test_quotient_overloaded_Symbol_rank3_Symbol_rank0(self):
6706        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6707        arg1=Symbol(shape=())        arg1=Symbol(shape=())
6708        res=arg0/arg1        res=arg0/arg1
# Line 6714  class Test_util_overloaded_binary_no_tag Line 6714  class Test_util_overloaded_binary_no_tag
6714        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6715        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6716     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6717     def test_div_overloaded_Symbol_rank3_Symbol_rank3(self):     def test_quotient_overloaded_Symbol_rank3_Symbol_rank3(self):
6718        arg0=Symbol(shape=(6, 2, 2))        arg0=Symbol(shape=(6, 2, 2))
6719        arg1=Symbol(shape=(6, 2, 2))        arg1=Symbol(shape=(6, 2, 2))
6720        res=arg0/arg1        res=arg0/arg1
# Line 6726  class Test_util_overloaded_binary_no_tag Line 6726  class Test_util_overloaded_binary_no_tag
6726        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")
6727        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6728     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6729     def test_div_overloaded_Symbol_rank4_float_rank0(self):     def test_quotient_overloaded_Symbol_rank4_float_rank0(self):
6730        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6731        arg1=-3.71619728349        arg1=-3.71619728349
6732        res=arg0/arg1        res=arg0/arg1
# Line 6737  class Test_util_overloaded_binary_no_tag Line 6737  class Test_util_overloaded_binary_no_tag
6737        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6738        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6739     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6740     def test_div_overloaded_Symbol_rank4_array_rank0(self):     def test_quotient_overloaded_Symbol_rank4_array_rank0(self):
6741        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6742        arg1=numarray.array(-3.42758815335)        arg1=numarray.array(-3.42758815335)
6743        res=arg0/arg1        res=arg0/arg1
# Line 6748  class Test_util_overloaded_binary_no_tag Line 6748  class Test_util_overloaded_binary_no_tag
6748        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6749        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6750     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6751     def test_div_overloaded_Symbol_rank4_array_rank4(self):     def test_quotient_overloaded_Symbol_rank4_array_rank4(self):
6752        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6753        arg1=numarray.array([[[[2.6088318312845349, -3.8555118588727257, -2.666375938101504, 2.5954389555040294], [-0.28669236149270461, 4.6428561770952665, -0.48532622824660265, 1.0661514102815186], [2.3698821906871812, 3.4340649178306784, -1.4928658890977653, 0.50504110628694754]], [[-1.9919884165108459, -3.7769329506080052, -3.3752193942655238, -0.018872838935369174], [1.3082165149355234, 4.1010372745976742, -0.18546655074581686, -4.5704865012382347], [-2.3301269377493372, -1.5103330683661707, -0.9221732361477164, 4.0964006002504281]]], [[[-1.6269497668668298, 3.8022708687403544, 1.9570932065807822, -2.3469691763113509], [-4.3085167368769159, -1.0313727244860149, 3.6935607395965562, 1.776600985149174], [-4.1889234590043394, -4.4986065369257915, -2.2975334720530514, 4.2992482748544205]], [[3.0229599088238217, -1.9190732403470867, -1.819267332412128, -3.6489912761988919], [1.1090439772933696, 0.21113602817269506, 1.0963998921952456, -3.1308830148033917], [0.50092949167332623, -2.9053102706720049, 2.2746922158309264, -0.67767770297447072]]], [[[0.97572647372002308, -2.4136798663563352, 2.2608577070584222, -0.542850867724324], [-2.7668419236487263, -2.7379563607552138, 4.3404093611300283, -4.9806970685211018], [0.38475028289221314, 3.6145520581353043, 4.1846701146499932, -3.2451986406576658]], [[-1.6569108904697547, -4.898687525899291, 1.9676643147393893, 1.7469414314863911], [3.1722608816839752, -0.84682627919871756, -2.3572119052528584, -3.9270878706470933], [2.2429501579067637, 3.5601308913773089, 3.567587249397473, -2.6399682875000652]]]])        arg1=numarray.array([[[[2.6088318312845349, -3.8555118588727257, -2.666375938101504, 2.5954389555040294], [-0.28669236149270461, 4.6428561770952665, -0.48532622824660265, 1.0661514102815186], [2.3698821906871812, 3.4340649178306784, -1.4928658890977653, 0.50504110628694754]], [[-1.9919884165108459, -3.7769329506080052, -3.3752193942655238, -0.018872838935369174], [1.3082165149355234, 4.1010372745976742, -0.18546655074581686, -4.5704865012382347], [-2.3301269377493372, -1.5103330683661707, -0.9221732361477164, 4.0964006002504281]]], [[[-1.6269497668668298, 3.8022708687403544, 1.9570932065807822, -2.3469691763113509], [-4.3085167368769159, -1.0313727244860149, 3.6935607395965562, 1.776600985149174], [-4.1889234590043394, -4.4986065369257915, -2.2975334720530514, 4.2992482748544205]], [[3.0229599088238217, -1.9190732403470867, -1.819267332412128, -3.6489912761988919], [1.1090439772933696, 0.21113602817269506, 1.0963998921952456, -3.1308830148033917], [0.50092949167332623, -2.9053102706720049, 2.2746922158309264, -0.67767770297447072]]], [[[0.97572647372002308, -2.4136798663563352, 2.2608577070584222, -0.542850867724324], [-2.7668419236487263, -2.7379563607552138, 4.3404093611300283, -4.9806970685211018], [0.38475028289221314, 3.6145520581353043, 4.1846701146499932, -3.2451986406576658]], [[-1.6569108904697547, -4.898687525899291, 1.9676643147393893, 1.7469414314863911], [3.1722608816839752, -0.84682627919871756, -2.3572119052528584, -3.9270878706470933], [2.2429501579067637, 3.5601308913773089, 3.567587249397473, -2.6399682875000652]]]])
6754        res=arg0/arg1        res=arg0/arg1
# Line 6759  class Test_util_overloaded_binary_no_tag Line 6759  class Test_util_overloaded_binary_no_tag
6759        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6760        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6761     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6762     def test_div_overloaded_Symbol_rank4_constData_rank0(self):     def test_quotient_overloaded_Symbol_rank4_constData_rank0(self):
6763        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6764        arg1=Data(-4.04111708221,self.functionspace)        arg1=Data(-4.04111708221,self.functionspace)
6765        res=arg0/arg1        res=arg0/arg1
# Line 6770  class Test_util_overloaded_binary_no_tag Line 6770  class Test_util_overloaded_binary_no_tag
6770        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6771        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6772     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6773     def test_div_overloaded_Symbol_rank4_constData_rank4(self):     def test_quotient_overloaded_Symbol_rank4_constData_rank4(self):
6774        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6775        arg1=Data(numarray.array([[[[-4.0792610526149549, 0.12535299261993949, -1.3501512171276131, 0.84952612322295895], [-0.073861710505221723, 3.6205506819674795, 3.0260767268167612, 2.5885205168110161], [4.6161275499839842, 3.4536810991367091, -3.1347372821860686, 0.6022917738749376]], [[0.67796085624115676, -2.7924971486147743, -0.11847612528569673, -4.868281946201888], [1.340614466676266, -1.7797122354966266, -2.3531080310924244, 3.2955380064758995], [1.8720738958930596, 2.5506171551483696, -3.4737918495065645, 2.9752788288947674]]], [[[1.3166642309901446, 1.4918719185378135, -1.6990552524782245, -3.158145057688817], [-4.8177863171279061, 4.4905934294762915, -1.7851443690509439, -1.4730149241694059], [3.9340144125177385, -0.60089959424441908, 1.0208971169612973, -4.4449813485963858]], [[4.5822242033093943, 2.9065651948738802, 4.3691310369781018, -2.8137577716233997], [0.99789292284098607, 1.2503978000412355, -1.8014256639911408, 0.28517475709550588], [3.8679268681260712, 0.24184578963827974, -4.1017137989614403, -3.3332083942381785]]], [[[1.0921691085713707, 4.9194406375856268, 3.3206743355523862, -3.6331081413682407], [-4.9167768377489471, -4.1867997816916507, 1.121934932728637, 1.1502854226564549], [0.75329954254751552, 0.26905732829576934, 4.9137516103808778, -4.5251954004105297]], [[1.0041645596930131, -3.1149636648451229, -4.430917844297678, -3.8847590467581448], [4.3408305818149699, 2.7122090772051806, -3.5735278196684828, -3.2526285658220289], [0.80959944644830628, 3.0209451211314935, -1.4917142020211607, -2.208089126718523]]]]),self.functionspace)        arg1=Data(numarray.array([[[[-4.0792610526149549, 0.12535299261993949, -1.3501512171276131, 0.84952612322295895], [-0.073861710505221723, 3.6205506819674795, 3.0260767268167612, 2.5885205168110161], [4.6161275499839842, 3.4536810991367091, -3.1347372821860686, 0.6022917738749376]], [[0.67796085624115676, -2.7924971486147743, -0.11847612528569673, -4.868281946201888], [1.340614466676266, -1.7797122354966266, -2.3531080310924244, 3.2955380064758995], [1.8720738958930596, 2.5506171551483696, -3.4737918495065645, 2.9752788288947674]]], [[[1.3166642309901446, 1.4918719185378135, -1.6990552524782245, -3.158145057688817], [-4.8177863171279061, 4.4905934294762915, -1.7851443690509439, -1.4730149241694059], [3.9340144125177385, -0.60089959424441908, 1.0208971169612973, -4.4449813485963858]], [[4.5822242033093943, 2.9065651948738802, 4.3691310369781018, -2.8137577716233997], [0.99789292284098607, 1.2503978000412355, -1.8014256639911408, 0.28517475709550588], [3.8679268681260712, 0.24184578963827974, -4.1017137989614403, -3.3332083942381785]]], [[[1.0921691085713707, 4.9194406375856268, 3.3206743355523862, -3.6331081413682407], [-4.9167768377489471, -4.1867997816916507, 1.121934932728637, 1.1502854226564549], [0.75329954254751552, 0.26905732829576934, 4.9137516103808778, -4.5251954004105297]], [[1.0041645596930131, -3.1149636648451229, -4.430917844297678, -3.8847590467581448], [4.3408305818149699, 2.7122090772051806, -3.5735278196684828, -3.2526285658220289], [0.80959944644830628, 3.0209451211314935, -1.4917142020211607, -2.208089126718523]]]]),self.functionspace)
6776        res=arg0/arg1        res=arg0/arg1
# Line 6781  class Test_util_overloaded_binary_no_tag Line 6781  class Test_util_overloaded_binary_no_tag
6781        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6782        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6783     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6784     def test_div_overloaded_Symbol_rank4_expandedData_rank0(self):     def test_quotient_overloaded_Symbol_rank4_expandedData_rank0(self):
6785        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6786        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6787        arg1=msk_arg1*(-4.96856646121)+(1.-msk_arg1)*(2.66740615716)        arg1=msk_arg1*(-4.96856646121)+(1.-msk_arg1)*(2.66740615716)
# Line 6794  class Test_util_overloaded_binary_no_tag Line 6794  class Test_util_overloaded_binary_no_tag
6794        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6795        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6796     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6797     def test_div_overloaded_Symbol_rank4_expandedData_rank4(self):     def test_quotient_overloaded_Symbol_rank4_expandedData_rank4(self):
6798        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6799        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)        msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)
6800        arg1=msk_arg1*numarray.array([[[[2.3160749392833146, -4.1082167444071427, -1.8507068979627972, -4.5095532905758553], [4.7514663127987529, 3.0568746546166832, 0.20878523885059064, 1.5215698798884203], [-3.529352116664084, -1.6506304315879095, 2.476471407122216, 3.9976407334037471]], [[3.3857545269712315, -4.0988669717852444, -3.8913301704295944, -4.553531293887481], [0.21111500760259716, -4.2651784583207437, -2.197709292342239, -1.1957550040589462], [0.69004614918223428, -4.3478988409148212, -3.9274127806240555, 3.5185579114648071]]], [[[3.5495186417315558, -3.467459279516957, 2.0236975099720675, 4.8670361677902392], [4.6944334107638177, -4.0340566540381442, 4.9971786745252729, -2.7776293517414565], [2.1321602055900488, -0.96868518657274372, -4.9622729937429373, -3.6564733291875227]], [[-3.1396081527685329, 1.9698368095212837, 1.1809845225485809, 1.7521001419909785], [3.9339719970744689, -2.4542582939082989, 0.3626651720757792, 0.79777721563240256], [0.45258755377689219, 0.0087160507261421216, 4.6056331315159067, -4.4236185297521633]]], [[[-3.3380204502363275, -3.2779869879702672, -4.3398753796512457, -2.4412570049691418], [-3.4486178755649757, 2.6818407829953319, -0.94514647664915241, 1.2680497486404194], [4.5603770192677828, 0.85756834204332666, -0.69086713726633064, -4.2242739375724758]], [[4.0503444072632782, 1.5492294893256382, -3.8536107825536026, -3.744331596499638], [1.0963392078769267, 3.4671176404740116, -0.42964752811371909, -4.4672624750670273], [3.8206133555167057, -2.8698412984449462, -4.2381675243236554, 0.60922957090934915]]]])+(1.-msk_arg1)*numarray.array([[[[0.63252823440169248, -4.4525508541057848, 2.7769151453437937, -4.6251900596437672], [3.6226993448933538, -0.056122209687133662, -4.8119267375959165, 0.43721425160748506], [2.4763254933476713, 4.0084829090910095, 3.4186559385225124, -1.0106832902771834]], [[2.3729043665434455, -0.014909565288815152, -1.931704732268904, 2.1495261115995952], [0.23992392812824193, 0.65658926401294693, -4.8589360414561336, -3.182921435071544], [1.2819312296007652, -4.1406694590900051, 1.3262628368912868, 2.9638388580673229]]], [[[1.8872507789712198, 2.2189886821834426, 3.6361917910149391, 2.335714859928931], [-2.2341255894844823, 1.5815736360033128, -0.48116773530751011, 4.0169082213111196], [3.96496738764254, -2.9459286239820468, -2.4150305816714956, 4.2852117090534243]], [[-0.78470419942831171, -4.074279987297853, 2.5476908578048443, 1.275167619154514], [1.7229703600928161, -3.7476309096977811, 0.88456709325854899, 3.0870583772123847], [-3.3241360176457069, 2.8546396483032641, 0.50007505175749678, 3.450827505824785]]], [[[3.2116561118905729, -0.85846516041034437, 0.20999626035701802, -3.7734151950481487], [-1.1352948501016691, -0.2781957856871724, -2.2983594846545596, -4.1039694480554703], [-1.6540176659186456, 4.034272633484937, -1.679271979012368, -0.5770651958429962]], [[-3.6252602516845203, -2.1549220004894662, 3.0484330753756872, -2.9368357996101602], [-0.95414657650842294, -4.6291859878224439, 3.9017776794543231, 0.8910541651444035], [2.0784602841300392, 3.8700189312205797, 4.5216189513825729, 3.1991357533518485]]]])        arg1=msk_arg1*numarray.array([[[[2.3160749392833146, -4.1082167444071427, -1.8507068979627972, -4.5095532905758553], [4.7514663127987529, 3.0568746546166832, 0.20878523885059064, 1.5215698798884203], [-3.529352116664084, -1.6506304315879095, 2.476471407122216, 3.9976407334037471]], [[3.3857545269712315, -4.0988669717852444, -3.8913301704295944, -4.553531293887481], [0.21111500760259716, -4.2651784583207437, -2.197709292342239, -1.1957550040589462], [0.69004614918223428, -4.3478988409148212, -3.9274127806240555, 3.5185579114648071]]], [[[3.5495186417315558, -3.467459279516957, 2.0236975099720675, 4.8670361677902392], [4.6944334107638177, -4.0340566540381442, 4.9971786745252729, -2.7776293517414565], [2.1321602055900488, -0.96868518657274372, -4.9622729937429373, -3.6564733291875227]], [[-3.1396081527685329, 1.9698368095212837, 1.1809845225485809, 1.7521001419909785], [3.9339719970744689, -2.4542582939082989, 0.3626651720757792, 0.79777721563240256], [0.45258755377689219, 0.0087160507261421216, 4.6056331315159067, -4.4236185297521633]]], [[[-3.3380204502363275, -3.2779869879702672, -4.3398753796512457, -2.4412570049691418], [-3.4486178755649757, 2.6818407829953319, -0.94514647664915241, 1.2680497486404194], [4.5603770192677828, 0.85756834204332666, -0.69086713726633064, -4.2242739375724758]], [[4.0503444072632782, 1.5492294893256382, -3.8536107825536026, -3.744331596499638], [1.0963392078769267, 3.4671176404740116, -0.42964752811371909, -4.4672624750670273], [3.8206133555167057, -2.8698412984449462, -4.2381675243236554, 0.60922957090934915]]]])+(1.-msk_arg1)*numarray.array([[[[0.63252823440169248, -4.4525508541057848, 2.7769151453437937, -4.6251900596437672], [3.6226993448933538, -0.056122209687133662, -4.8119267375959165, 0.43721425160748506], [2.4763254933476713, 4.0084829090910095, 3.4186559385225124, -1.0106832902771834]], [[2.3729043665434455, -0.014909565288815152, -1.931704732268904, 2.1495261115995952], [0.23992392812824193, 0.65658926401294693, -4.8589360414561336, -3.182921435071544], [1.2819312296007652, -4.1406694590900051, 1.3262628368912868, 2.9638388580673229]]], [[[1.8872507789712198, 2.2189886821834426, 3.6361917910149391, 2.335714859928931], [-2.2341255894844823, 1.5815736360033128, -0.48116773530751011, 4.0169082213111196], [3.96496738764254, -2.9459286239820468, -2.4150305816714956, 4.2852117090534243]], [[-0.78470419942831171, -4.074279987297853, 2.5476908578048443, 1.275167619154514], [1.7229703600928161, -3.7476309096977811, 0.88456709325854899, 3.0870583772123847], [-3.3241360176457069, 2.8546396483032641, 0.50007505175749678, 3.450827505824785]]], [[[3.2116561118905729, -0.85846516041034437, 0.20999626035701802, -3.7734151950481487], [-1.1352948501016691, -0.2781957856871724, -2.2983594846545596, -4.1039694480554703], [-1.6540176659186456, 4.034272633484937, -1.679271979012368, -0.5770651958429962]], [[-3.6252602516845203, -2.1549220004894662, 3.0484330753756872, -2.9368357996101602], [-0.95414657650842294, -4.6291859878224439, 3.9017776794543231, 0.8910541651444035], [2.0784602841300392, 3.8700189312205797, 4.5216189513825729, 3.1991357533518485]]]])
# Line 6807  class Test_util_overloaded_binary_no_tag Line 6807  class Test_util_overloaded_binary_no_tag
6807        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6808        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6809     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6810     def test_div_overloaded_Symbol_rank4_Symbol_rank0(self):     def test_quotient_overloaded_Symbol_rank4_Symbol_rank0(self):
6811        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6812        arg1=Symbol(shape=())        arg1=Symbol(shape=())
6813        res=arg0/arg1        res=arg0/arg1
# Line 6819  class Test_util_overloaded_binary_no_tag Line 6819  class Test_util_overloaded_binary_no_tag
6819        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
6820        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
6821     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6822     def test_div_overloaded_Symbol_rank4_Symbol_rank4(self):     def test_quotient_overloaded_Symbol_rank4_Symbol_rank4(self):
6823        arg0=Symbol(shape=(3, 2, 3, 4))        arg0=Symbol(shape=(3, 2, 3, 4))
6824        arg1=Symbol(shape=(3, 2, 3, 4))        arg1=Symbol(shape=(3, 2, 3, 4))
6825        res=arg0/arg1        res=arg0/arg1
# Line 8470  class Test_util_overloaded_binary_no_tag Line 8470  class Test_util_overloaded_binary_no_tag
8470        self.failUnless(isinstance(res,Symbol),"wrong type of result.")        self.failUnless(isinstance(res,Symbol),"wrong type of result.")
8471        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")
8472        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_float_rank0_offset0(self):  
       arg0=-0.816058209277  
       arg1=-0.334851342127  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=0.27325818663014179  
       self.failUnless(isinstance(res,float),"wrong type of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_array_rank0_offset0(self):  
       arg0=-0.0378781468644  
       arg1=numarray.array(-0.223764515469)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array(0.008475785179988933)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_array_rank1_offset0(self):  
       arg0=0.543146680723  
       arg1=numarray.array([-0.92731085296922822, -0.36581780458574942])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([-0.50366581178893521, -0.19869272631023729])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_array_rank2_offset0(self):  
       arg0=-0.559404776535  
       arg1=numarray.array([[-0.73633376974850639, -0.068583989340989415, -0.58700884536720088, 0.41828463778594793, -0.13130077394080808], [0.21022430355207389, -0.89023705295881594, -0.98599053548811422, -0.011942717529535241, -0.49444669262957119], [0.32064546170075658, 0.68151799398521828, 0.58093384094003797, -0.84765413248022803, -0.53426528691691533], [-0.97631867410054096, -0.76752519044492384, -0.38935877053278678, -0.1817765419702333, -0.63370674570498831]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[0.41190862792168437, 0.038366211231207328, 0.32837555196698404, -0.23399042432886874, 0.073450280105292171], [-0.11760047955087297, 0.49800285967402291, 0.55156781517081821, 0.0066808132308359171, 0.27659584159914813], [-0.17937060284982476, -0.38124442113020368, -0.32497716547295497, 0.47418177055947069, 0.29887055343841645], [0.54615732971262076, 0.42935725764618765, 0.21780915602201942, 0.10168666584024907, 0.35449858047011973]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_array_rank3_offset0(self):  
       arg0=-0.959498524214  
       arg1=numarray.array([[[0.027563264138124266, -0.86134683154644165], [-0.8117329937722968, -0.82085247002658135]], [[0.16560117669229291, -0.13409471539984441], [0.84610060594912695, 0.27635482631912045]], [[-0.30630109192629895, 0.65944726866182668], [-0.79975424716626953, -0.52724052564802748]], [[-0.71815840628111416, -0.060534894755772006], [-0.32528952507958842, -0.4407791883975869]], [[-0.11672438023008391, 0.98658294864906182], [-0.7586019012956271, -0.70780594519726536]], [[-0.27061897876441532, 0.50264763097728116], [-0.13069146868469272, -0.93327923188153727]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[[-0.026446911263045492, 0.82646101370504654], [0.77885660958017144, 0.78760673358776034]], [[-0.15889408464432439, 0.12866368153102073], [-0.81183228274459229, -0.2651620480125581]], [[0.29389544566836046, -0.63273868107784637], [0.76736301988975719, 0.50588650626499243]], [[0.68907193097846631, 0.058083142181601162], [0.31211481925607415, 0.42292698077164276]], [[0.11199687057053639, -0.94662488324327765], [0.72787740475893981, 0.67913875984653249]], [[0.25965851074870316, -0.48228966012226587], [0.12539827133029721, 0.89548004566972728]]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_array_rank4_offset0(self):  
       arg0=-0.9304595906  
       arg1=numarray.array([[[[-0.71233817194649296, 0.99590387266544389, -0.54947329367573428, 0.13512463808082553], [-0.0096671503124188263, -0.71547424252371372, -0.87762902434985546, -0.51167011163989562], [-0.53976710827994245, -0.81722257339839532, 0.66609455953777674, -0.3012912274862769]], [[-0.3835829449196122, 0.40197040371247073, -0.35580710017866091, -0.22359872548955528], [0.89475596756920872, -0.038969787629618002, 0.42318904869360141, -0.62860155992094824], [0.18493393151046011, 0.30831212239060291, -0.97294385206858314, 0.34374933089323689]]], [[[0.75135090873481869, 0.84105513930538378, 0.96419194632206584, 0.4852944932936063], [0.91295235140726794, -0.31225039241780017, 0.72482670566986074, -0.86549920269175828], [0.79904918654713297, 0.20271226330974756, 0.86916793104369861, 0.97625696820391017]], [[0.84237487359749474, 0.19875587560825458, -0.1370588278661049, 0.48021237433557817], [0.93576386199601491, -0.29835765385660262, -0.28932131971598651, -0.35577113589894438], [-0.54706437371089223, 0.9747796823610706, -0.69765793608042537, 0.73540906219094726]]], [[[-0.57475948602306959, 0.31447138930161533, 0.55698363425662079, 0.7023790406039192], [-0.49766651685862384, 0.72614255431525354, 0.9196332538458043, 0.21160591767894599], [0.66872133503379083, -0.17608099285829648, -0.43372494211856294, -0.14815693304419097]], [[-0.86705044864551706, 0.55419517665074491, -0.16633978403913985, -0.56691172352847152], [-0.60732289573658971, 0.11286145485281507, -0.2159763164709434, 0.13593235955593097], [-0.43283967020676672, 0.24820403897102916, -0.90853794595044901, -0.50887126866884214]]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[[[0.66280188383834704, -0.92664830963760803, 0.51126269587935846, -0.12572801542870757], [0.0089948927219654223, 0.66571987078372175, 0.81659834269556519, 0.47608836259890092], [0.50223148258969874, 0.7603925810736486, -0.61977407116865091, 0.280339312178363]], [[0.35690842989118515, -0.3740172172717694, 0.33106412876494029, 0.20804957857777526], [-0.83253427127168034, 0.036259812643637576, -0.39376030899400677, 0.584888350094797], [-0.17207355020133885, -0.28687197117669033, 0.90528493827287704, -0.31984486169207099]]], [[[-0.69910165893861242, -0.78256782059042129, -0.8971416436349996, -0.45154691555058102], [-0.84946527112804804, 0.29053637229387003, -0.67442195981379072, 0.80531203380151672], [-0.7434829789842009, -0.18861556952886133, -0.80872563728188707, -0.90836765895576488]], [[-0.78379578001956007, -0.18493431064787386, 0.12752770086446202, -0.4468182092255118], [-0.87069045993142946, 0.27760974045990022, 0.26920179669489441, 0.33103066545595899], [0.50902129319508249, -0.9069931041752366, 0.64914251758448893, -0.68426841492998791]]], [[[0.53479047605870211, -0.29260292014510936, -0.5182507643015194, -0.65353531456660052], [0.46305858353178531, -0.67564630380567492, -0.85568158087584967, -0.19689075553216687], [-0.62221817962127124, 0.16383624852743653, 0.40356353207680556, 0.13785403926490378]], [[0.80675540547657154, -0.51565621717914967, 0.15477244735761136, 0.52748845018084956], [0.56508941292929604, -0.10501302307691202, 0.20095723500292909, -0.1264795676217533], [0.40273982233618566, -0.2309438284863411, 0.8453578452339523, 0.47348415231389973]]]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_Symbol_rank0_offset0(self):  
       arg0=0.562491357932  
       arg1=Symbol(shape=())  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array(0.00324768537641)  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(0.0018267949575127625)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_Symbol_rank1_offset0(self):  
       arg0=0.91409519904  
       arg1=Symbol(shape=(2,))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([0.25097568619682953, 0.66141307495224799])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([0.22941566982832673, 0.60459451639622652])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_Symbol_rank2_offset0(self):  
       arg0=-0.311325649398  
       arg1=Symbol(shape=(4, 5))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[-0.53341277380602681, 0.052789259508221553, -0.46627917301069455, 0.40862339417134952, 0.15143180032582815], [0.54096274036698166, -0.82847910456928209, 0.55799114401979533, 0.065333685515621687, -0.4530989159792318], [-0.39265311994330632, 0.24478822309545256, -0.80333346366189651, -0.95364825169535239, 0.96393006642570644], [-0.67841811398166496, -0.080815522855093525, 0.67452861057759494, 0.63833330100743257, -0.60552157272965412]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[0.16606507820234179, -0.01643465049763583, 0.14516466633830988, -0.12721494354960419, -0.047144603575944445], [-0.16841557644486413, 0.25792679524269291, -0.17371695527028735, -0.02034005207071465, 0.1410613142587574], [0.12224298755449474, -0.076208852520170609, 0.25009831225767254, 0.29689516125630866, -0.30009615390422589], [0.21120895989869806, 0.025159945134299692, -0.2099980577255903, -0.19872952946849839, 0.18851439685454879]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_Symbol_rank3_offset0(self):  
       arg0=0.948217578168  
       arg1=Symbol(shape=(6, 2, 2))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[[0.98956741355064559, -0.066566677430423216], [0.18490642626135512, 0.084333580416641851]], [[-0.38416624166659097, 0.8916666431591378], [0.92443095579442658, -0.95236048247261551]], [[0.090214611115947196, 0.32155545842962718], [-0.89091389581014746, -0.13578318477225881]], [[-0.80325400851047579, -0.68882946382410637], [0.67724602964181235, 0.26516640136299263]], [[-0.25182151850795664, 0.60267348542466626], [-0.32739949654327516, 0.9846936281180958]], [[-0.32951069619917894, -0.19958050878192046], [0.22979437488771959, 0.40330955678907743]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[[0.93832521631142629, -0.063119693659797402], [0.17533152369732824, 0.079966583380943729]], [[-0.36427318328717662, 0.84549398490996364], [0.87656168208735175, -0.90304495023353559]], [[0.085543080067773447, 0.30490453803899203], [-0.84478021664173131, -0.12875200262075262]], [[-0.76165957060391598, -0.65316020595837732], [0.64217659005116867, 0.25143544291206438]], [[-0.23878159041032027, 0.57146559277572551], [-0.31044595770583955, 0.93370380729206115]], [[-0.3124478343305907, -0.18924574668682295], [0.21789506563277009, 0.38242521119073652]]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_Symbol_rank4_offset0(self):  
       arg0=-0.830323568577  
       arg1=Symbol(shape=(3, 2, 3, 4))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[[[0.92676883544399891, -0.95357774937706141, 0.44347735429402935, -0.53674237545550874], [-0.53618249287540465, 0.054049986177377995, 0.72613620912428045, -0.28868935976044963], [0.20433401785227878, 0.27989385328052796, -0.3658661214474892, -0.75219187171324098]], [[-0.63438082192292056, -0.27326168466178813, -0.57030787945284733, 0.91431123438277839], [-0.53016547615535026, 0.29706122745133667, -0.8448922838417019, 0.98820530445796062], [0.65022989699942624, -0.18844283546637386, -0.47823095324118414, -0.51899670756954275]]], [[[-0.3559753902541265, -0.69420800259668458, -0.33725718940187477, -0.72032568863041679], [-0.075850351806678207, 0.99922387833838888, 0.30593283824914952, -0.83367628611194378], [-0.4885046491104339, -0.59346613300382312, 0.33205663307371358, -0.1422627978413098]], [[0.21495156425639994, -0.65773972125079339, -0.76226004103345057, 0.84364839691041404], [-0.55673769626116831, -0.13335088242311155, 0.67181611603927371, -0.21087210630906528], [-0.69602070926428317, -0.81184445666761773, -0.40347003250595415, 0.1046531171453815]]], [[[0.94481376866460276, 0.43015674438105722, 0.95064531378740225, -0.6933804604356999], [-0.30034452340652074, 0.48851034708096575, 0.35779832302502368, -0.39943794345218087], [-0.53735828002736974, -0.96196465128721043, -0.32324088295403741, -0.64525597145923785]], [[0.39078335151136634, -0.76954000771915809, 0.53002063914038744, 0.98370783019272001], [0.61744183260742247, -0.72158480396307612, -0.32831391466301851, -0.54773198963454428], [0.13277046692417094, -0.39115875964425006, 0.28530880796795333, -0.29975932254106996]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[[[-0.7695180066917473, 0.7917780797783196, -0.36822969940047423, 0.44566984459467673], [0.44520496089278067, -0.044878977404334268, -0.60292800843299688, 0.23970557940648587], [-0.16966335088476636, -0.2324024630786358, 0.3037872635816799, 0.62456263917549903]], [[0.52674134789580573, 0.22689561716371981, 0.47354007365483014, -0.75917416692268691], [0.440208890097598, -0.24665693846323711, 0.70153397618255486, -0.82053015488418601], [-0.53990120847197365, 0.15646852761719493, 0.39708643169916724, 0.43093519830882043]]], [[[0.29557475636137182, 0.57641726605074217, 0.28003259303239042, 0.59810339632124265], [0.062980334789936684, -0.82967913646921176, -0.25402324599990272, 0.69222106892243129], [0.40561692351579676, 0.49276891738528572, -0.27571444854340627, 0.1181241539793348]], [[-0.1784793499045674, 0.54613679254375436, 0.63292247745449226, -0.70050114754686177], [0.46227243072087254, 0.11072438056644067, -0.55782475489722305, 0.17509207982387695], [0.57792239911976584, 0.67409358638965566, 0.33501067720419403, -0.086895949690852722]]], [[[-0.78450114003821148, -0.35716928304191398, -0.78934320939489178, 0.57573013829048558], [0.24938313647743976, -0.40562165467502242, -0.29708838040497898, 0.33166273863224499], [0.44618124467668718, 0.79874192210165917, 0.26839452344435427, 0.53577124086760841]], [[-0.32447662696737073, 0.63896720537209006, -0.44008862851047204, -0.81679579600268848], [-0.51267650583927482, 0.59914886945750623, 0.27260678123645937, 0.45479478025709713], [-0.11024244789810295, 0.32478833718793959, -0.2368986275783812, 0.24889723040650436]]]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_constData_rank0_offset0(self):  
       arg0=0.492353721328  
       arg1=Data(-0.437214319534,self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(-0.21526409724074577,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_constData_rank1_offset0(self):  
       arg0=0.979385563268  
       arg1=Data(numarray.array([0.22021089255261517, 0.058911120671208295]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([0.21567136904043174, 0.057696701101331072]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_constData_rank2_offset0(self):  
       arg0=0.893109236094  
       arg1=Data(numarray.array([[0.24257610887747383, -0.65008541717841628, 0.48802129697853314, 0.30692856887415387, -0.19693437626450594], [0.13995561961849101, -0.84910283958592947, 0.75493100427342497, -0.49757304316066131, -0.19063332091428498], [-0.79406208009322277, 0.19120266450540702, -0.45800904239997786, 0.97077527365053884, -0.093067565850555312], [-0.48333222905652629, 0.33404120334791765, -0.95795583626960612, -0.73075610350636455, -0.21982935302054085]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.21664696329411298, -0.58059729033178953, 0.43585632774189431, 0.27412073968249034, -0.17588391034615794], [0.12499565652447372, -0.75834158842747634, 0.67423585252999541, -0.44438708047797454, -0.17025637961573875], [-0.70918417776293485, 0.17076486563548052, -0.40905210598179487, 0.86700836306856577, -0.083119502641878118], [-0.4316684778720799, 0.29833528394583791, -0.85555920514213146, -0.65264502537328806, -0.19633162554712047]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_constData_rank3_offset0(self):  
       arg0=-0.924871621274  
       arg1=Data(numarray.array([[[-0.49196475442088961, -0.89958484497998437], [0.03667241962030432, -0.91332100267882388]], [[-0.068836761067621488, -0.8937589667158885], [0.352093300296908, -0.81959241996961585]], [[-0.80055182544351133, -0.3773665122896539], [-0.69441106223348092, -0.63654140604730358]], [[0.42481016174814346, -0.45547410821063816], [0.74132831354824424, 0.31652739609917768]], [[0.38927838785348512, 0.61511029145913154], [0.067559642866422021, -0.36889709018737538]], [[-0.71710685925061046, -0.93229262781841427], [-0.14607137297036554, 0.76869118084057808]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[0.45500424003079537, 0.83200049404994214], [-0.033917280190262501, 0.84470467649093994]], [[0.063665166811845531, 0.82661230457448431], [-0.32564110148523012, 0.75801777024098305]], [[0.74040766471160846, 0.3490155780357565], [0.64224108495831334, 0.58871908221884839]], [[-0.39289486302957366, 0.42125507690899289], [-0.68563351924750693, -0.29274720600780807]], [[-0.36003253370088834, -0.56889805252398207], [-0.062483996430543948, 0.34118244988477031]], [[0.66323178354164614, 0.86225099419199092], [0.13509726754078608, -0.71094065868286649]]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_constData_rank4_offset0(self):  
       arg0=-0.654494887933  
       arg1=Data(numarray.array([[[[-0.31265817991493638, -0.56344925108921839, -0.57407369384449813, 0.028201611177590236], [-0.38160761903964802, -0.94776552441561646, 0.12952381532000024, 0.99370451175785579], [-0.45670830806395868, -0.4269561068126726, -0.3197087826645344, -0.56291971481992209]], [[0.0099674773600433308, -0.79509036110792475, 0.12830933951956824, -0.71959824965957853], [-0.057384362906059749, -0.12489982212229056, 0.75546275888631653, 0.60256192749401727], [0.94843178641124792, -0.32002343091073437, 0.36892162742911272, 0.42888548418981642]]], [[[-0.2571586475956773, -0.6554762697408425, -0.80029997202655712, 0.63741645520041756], [-0.96452873606684619, 0.22876390981988015, 0.19455884399440571, -0.030775884405276566], [-0.65171657793426574, -0.91060004615194057, 0.23746336000046475, -0.97272499257481537]], [[0.66919098226677409, -0.79235908747095452, -0.12370863164652168, -0.64863084247180791], [0.07763296595450031, 0.025873684646505968, -0.55172752736832331, 0.30779290739216703], [-0.45176445022090106, -0.36574516631567411, 0.61968281176274198, -0.7996747868985763]]], [[[-0.21325609084379304, -0.92770142734538341, -0.80644823451720549, -0.021573294263919518], [-0.56304400996409343, 0.88063022592481244, 0.53014487801115928, 0.65994018859582404], [-0.23765598450411773, 0.45571357522494549, 0.86787085427924882, 0.33054855747647127]], [[-0.14130841318382781, -0.097733741841565136, -0.90093713704584788, -0.59209444992807092], [-0.9823260800621505, -0.89018187293512185, -0.87797797897766827, -0.66633877208399461], [0.45851185562387342, -0.82922164076306015, 0.27949294872833819, 0.82705868854527842]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.20463318042481957, 0.36877465444767443, 0.37572829791814377, -0.018457810347212149], [0.2497602358578036, 0.62030769068933422, -0.084772674992541971, -0.65037452306165711], [0.29891325290447474, 0.27944058928074866, 0.20924776388127911, 0.36842807566644481]], [[-0.0065236629777381087, 0.52038257679008604, -0.083977806789640674, 0.47097337576786119], [0.037557772169318736, 0.081746295082803178, -0.49444651371499376, -0.39437370120800019], [-0.62074375575949925, 0.20945369954991414, -0.24145731920034499, -0.28070335691098325]]], [[[0.16830902023918198, 0.4290058677068942, 0.52379224050445183, -0.41718581141316469], [0.63127912702040612, -0.14972480952071948, -0.12733776879652839, 0.020142659014876111], [0.42654516863928543, 0.59598307515816651, -0.1554185551917415, 0.63664353500506099]], [[-0.43798207694458963, 0.51859497215714234, 0.080966667005857751, 0.42452557055359263], [-0.05081037935231137, -0.016934194333133468, 0.36110284619458349, -0.20144888443026523], [0.29567752321952512, 0.23937834163988086, -0.40557923243877619, 0.52338306003417645]]], [[[0.13957502127787724, 0.60717584172587158, 0.52781624687425255, 0.014119610811613606], [0.36850942620289984, -0.57636798102723463, -0.34697711252226521, -0.43192747977762819], [0.15554462694467305, -0.29826220534648129, -0.56801703751197363, -0.2163423410820387]], [[0.092485634050765445, 0.063966234413885908, 0.58965875054566586, 0.387522790651533], [0.6429273976841211, 0.58261948516682438, 0.57463209895879241, 0.43611531996064951], [-0.30009366556258327, 0.54272132484298996, -0.18292670615606885, -0.5413056836736081]]]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_expandedData_rank0_offset0(self):  
       arg0=0.817315288431  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*(-0.107441089832)+(1.-msk_arg1)*(-0.984717408273)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(-0.087813245324982178)+(1.-msk_ref)*numarray.array(-0.80482459256581285)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_expandedData_rank1_offset0(self):  
       arg0=-0.731273459059  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([0.32690953465836348, -0.45530172275332514])+(1.-msk_arg1)*numarray.array([-0.88987813857334852, -0.4432112304820599])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([-0.23906026620885493, 0.33295006571315844])+(1.-msk_ref)*numarray.array([0.65074426453515033, 0.32410860960822918])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_expandedData_rank2_offset0(self):  
       arg0=0.360959926398  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[0.21279479867851991, -0.79951867079866279, -0.51299350043200365, 0.43341112620605893, 0.43115383961180132], [0.095600939708326615, -0.62487659659900729, -0.8972300314905306, 0.70070531945488557, -0.043889499904746776], [0.036459699641055776, 0.36036292372913703, 0.76467901872563138, -0.94350337048486743, 0.64310715960498266], [-0.52886376314585903, -0.55067938504224667, -0.62817382273271871, -0.28542028247487106, -0.93139070440443028]])+(1.-msk_arg1)*numarray.array([[-0.41945831254126453, 0.74812933596756603, 0.024606024120077175, 0.30230913992714581, -0.83094099057447934], [-0.93950985371619633, 0.1289378703502706, -0.091682152683265628, 0.83274570145517623, -0.78477292031180745], [-0.31532918040306912, -0.73226858806142991, -0.018223951762351032, -0.71913243020658002, 0.99376692794750765], [-0.46929748118089498, 0.49015272355041128, 0.49943394318132239, 0.70263478992839801, 0.64512615939951812]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([[0.07681039486886862, -0.28859420056528523, -0.18517009615857116, 0.15644404821539876, 0.15562925821247639], [0.034508108160693995, -0.22555541031618939, -0.32386408612886697, 0.25292654053709901, -0.015842350655260948], [0.013160490498927454, 0.13007657442582526, 0.27601848231727305, -0.34056690716645094, 0.23213591299701974], [-0.1908986250196808, -0.19877319029372675, -0.22674557681873131, -0.10302528415461623, -0.33619472010957319]])+(1.-msk_ref)*numarray.array([[-0.15140764162191003, 0.27004471004701208, 0.0088817886553296428, 0.10912148489753506, -0.29993639879881734], [-0.33912540764756238, 0.046541404191544206, -0.033093583084558675, 0.30058782710548326, -0.28327157555486715], [-0.11382119774942288, -0.26431961565019652, -0.0065781162868183175, -0.25957798907775781, 0.35871003716866551], [-0.16939758426580687, 0.17692549101651922, 0.18027563937137625, 0.25362300205720512, 0.23286469101425278]])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_expandedData_rank3_offset0(self):  
       arg0=0.460701578466  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[0.54899887614412735, 0.61695096532471561], [0.42902761477167273, 0.53516312400600285]], [[0.34321063427267418, 0.74380368798820795], [0.31540686527488004, -0.80432967300638936]], [[0.8394622964445968, 0.28392277440231517], [-0.33424678334360336, -0.066072706587715802]], [[-0.73373584571143158, -0.54187213946866164], [0.20402337375362967, -0.36147631706777439]], [[0.025149006205081648, 0.24833725969162024], [0.11408358615465741, 0.88899127442537362]], [[-0.090389209416217309, 0.26603033945702514], [-0.86492517119016843, -0.76494342510693047]]])+(1.-msk_arg1)*numarray.array([[[0.38159118801718828, -0.17804225869194479], [0.44387615914706902, -0.46254001770783448]], [[0.33391775245439814, 0.90997515595679168], [-0.099210191102322209, 0.63824730355994697]], [[0.94948895681219558, 0.47237233803777778], [0.10390798726523331, 0.51199456724475523]], [[-0.45550582497404379, 0.15986250058221763], [0.3438598995629607, -0.77259614029062695]], [[0.67624092130153546, 0.43614859456114963], [-0.98236612768868814, 0.55899862257148825]], [[-0.74765636708258953, 0.093812196029846584], [-0.20196712295659558, -0.58464411474345512]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([[[0.25292464881576143, 0.28423028356133345], [0.19765369933089225, 0.24655049596646056]], [[0.15811768095580175, 0.34267153312513765], [0.1453084406912088, -0.37055594996123453]], [[0.38674160503487481, 0.13080367032964532], [-0.15398802068364323, -0.030439800218493813]], [[-0.33803326229647818, -0.24964134998006152], [0.093993890332293745, -0.16653270985126706]], [[0.011586186855537013, 0.1144093675318965], [0.052558488218533754, 0.40955968337043563]], [[-0.041642451454361927, 0.12256059730774667], [-0.39847239162244641, -0.35241064338409334]]])+(1.-msk_ref)*numarray.array([[[0.17579966264830565, -0.082024349613063929], [0.20449444716256251, -0.21309291626177682]], [[0.15383643563362226, 0.41922699071430736], [-0.045706291640771765, 0.2940415402018543]], [[0.43743106113959046, 0.21762268175776686], [0.047870573748337301, 0.23587670529577037]], [[-0.20985225256608406, 0.073648906355779184], [0.15841679849988005, -0.35593626134877443]], [[0.31154525986704501, 0.20093434596013007], [-0.45257762565789311, 0.25753154777910819]], [[-0.34444646846524291, 0.043219426790329557], [-0.093046572344377784, -0.26934646650327554]]])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_float_rank0_expandedData_rank4_offset0(self):  
       arg0=0.784374548175  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[[-0.90066927489131876, -0.1878533156916542, -0.59694523049679371, 0.72172638004705458], [0.43240312937102132, -0.13129148954521397, -0.56659689512004441, 0.73070004905350916], [-0.69413612468093455, -0.42386294361359211, -0.16373619790315486, 0.29396503282525854]], [[0.63129930928189593, 0.46134620780199342, -0.54540114997909495, -0.99570985746853435], [-0.42410817885551055, -0.3197610798525401, -0.52261060185934016, 0.3800995849889357], [0.23309633169638544, -0.14220779059692501, 0.67437183748558427, 0.66400661133603367]]], [[[0.95301604528523898, 0.44783390626244168, 0.66854797756177331, -0.73974685438936039], [-0.039463004415484448, -0.51600084748783526, -0.016360924329686499, 0.41712475114362069], [0.53457162281142012, 0.61051584302119832, -0.41824942120758601, 0.93056070139777969]], [[0.24214706167067845, 0.44711603020288027, 0.12713667042831944, -0.45911885553102172], [-0.90454927042871036, 0.92137663178187656, 0.043620737006642374, 0.14858975911746897], [0.091386022828089386, 0.52565798890642301, 0.88050542742087501, 0.17773357292037728]]], [[[0.69079441729603985, -0.2366215804326115, -0.75270404082148401, -0.3064845139073471], [0.030604832318570807, 0.8076694815171781, -0.41126928764355308, -0.60305476385054346], [0.87808093962682476, -0.67989393718579905, -0.30799513849552373, -0.013741421259001019]], [[-0.02352341183500406, 0.94502612799375796, -0.34204026680763322, 0.68878510202234078], [0.69059482886993284, 0.53344010160184108, 0.034253916177040766, 0.33325848459854823], [0.13793314057353512, -0.50974887540980696, -0.37881088325214796, 0.94047672177021813]]]])+(1.-msk_arg1)*numarray.array([[[[0.58649064480268387, 0.1553497755096267, 0.91854259329782217, 0.2567973933780654], [-0.22563953102189838, 0.12872158640774867, -0.88923251502378253, -0.046050599461417541], [0.08360342295121681, -0.094708790395032105, -0.55305030205236494, -0.57352186464112576]], [[-0.86421349852991436, -0.57959800013126106, -0.56765879912871453, -0.5793629140992389], [0.44733466091869878, 0.17296098727803111, -0.38704753152222282, -0.063316911212001559], [-0.80300394716403201, 0.18272341166141337, -0.48077928437016659, 0.8426094766450376]]], [[[-0.42353165706394535, -0.99814635688525977, 0.44639643837548326, 0.17533350802389069], [0.3903526484974027, -0.68762456688689766, 0.059015447607134952, -0.56039875901037384], [0.43364147648970786, -0.34938403943126994, 0.70459617381735562, 0.2564937912679659]], [[0.83741112510024718, -0.23562155256082784, -0.20672187238999595, -0.85959771540048013], [-0.47722342901549109, -0.028854042984841843, 0.44566963226943268, -0.25216641587477873], [0.47805932138545626, -0.35957607104467737, -0.13669450407909722, -0.44083080747298431]]], [[[0.25404535302439712, 0.71750765779505032, -0.78968487605459647, -0.25599841278627555], [0.95030212417116089, 0.16916124879325034, -0.96299006099109752, 0.051273810341706305], [-0.099801382561338636, -0.24966458030138017, -0.58025100729329537, 0.1602631091128075]], [[-0.63613006417582807, -0.56605379211879847, 0.7966572261877094, -0.12946642218948567], [0.097043582654898097, -0.010020676619000302, 0.071892565137961162, 0.78315181813034029], [0.068437370712741918, 0.22446399438934228, 0.49297329176941385, 0.9618124192862052]]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([[[[-0.70646205554816099, -0.14734735961885401, -0.46822864545626175, 0.56610380325552934], [0.33916600922993634, -0.10298170279127589, -0.44442418360725466, 0.57314252082794093], [-0.54446270916869066, -0.33246730488512055, -0.12843050625021182, 0.2305786898016193]], [[0.49517511048130142, 0.36186822329702939, -0.42779878058908577, -0.78100946956547201], [-0.33265966116719697, -0.25081245253334944, -0.409922454704988, 0.29814044023727654], [0.18283482985564831, -0.11154417149645617, 0.52896010532983295, 0.52082988575204547]]], [[[0.74752152992432297, 0.35126951788213651, 0.52439201783345812, -0.58023860467567823], [-0.030953776258031442, -0.40473793160628979, -0.012833092628826445, 0.32718203821096919], [0.4193043751099898, 0.47887308852355231, -0.3280642007842382, 0.7299081297084784]], [[0.18993399208989012, 0.35070643417227221, 0.099722768423712069, -0.360121144865859], [-0.70950542529472427, 0.72270437925309483, 0.034214995880654235, 0.11655002517122616], [0.0716808703653109, 0.41231274754315855, 0.69064604679905806, 0.13940969095498446]]], [[[0.54184155894853014, -0.18559994524033083, -0.59040189192899695, -0.24039865211877043], [0.024005651521856661, 0.63351538463993262, -0.32258916167374729, -0.47302080792017048], [0.68874434028104359, -0.53329149978716728, -0.24158354759758383, -0.010778421091313979]], [[-0.018451165529620405, 0.74125444215886038, -0.26828767973496132, 0.54026550318858091], [0.54168500686698151, 0.41841683867247559, 0.026867900024597442, 0.26139947328253732], [0.10819124481575262, -0.39983404383238241, -0.29712961539475108, 0.7376860037078059]]]])+(1.-msk_ref)*numarray.array([[[[0.46002833452608544, 0.12185240997448181, 0.72048143159765354, 0.20142533940348853], [-0.17698590519576501, 0.10096593617897251, -0.697491352194474, -0.036120918145746382], [0.065576397103260631, -0.074287164674322795, -0.43379858079048028, -0.44985595344647983]], [[-0.67786707243630839, -0.454621919476206, -0.44525711408426072, -0.4544375239760563], [0.35087792254120959, 0.13566619624814175, -0.30359023266006907, -0.049664173623762825], [-0.62985585823968782, 0.14332359346295173, -0.37711103394984424, 0.66092142753159111]]], [[[-0.33220745214742486, -0.7829205976945951, 0.35014200465778711, 0.13752714113621164], [0.30618268229414197, -0.53935520896607625, 0.046290215052203522, -0.43956252339670343], [0.34013733719164019, -0.27404794806852778, 0.55266730548396126, 0.2011872016355542]], [[0.65684397288739027, -0.1848155488302379, -0.16214737525383394, -0.67424656962968366], [-0.37432191151264432, -0.022632376929263051, 0.34957191644674274, -0.19779291851673853], [0.37497756421265882, -0.28204231826028153, -0.10721968987507459, -0.34577646543332957]]], [[[0.19926670899452006, 0.56279474489523684, -0.61940871785611107, -0.20079863936280262], [0.74539279927668478, 0.13268577809095791, -0.75534489398709803, 0.040217871819996656], [-0.078281664353810038, -0.19583054236924541, -0.45513412167388184, 0.12570630379951078]], [[-0.49896423166857456, -0.44399818743603975, 0.62487765184149069, -0.10155016640873719], [0.07611851629823814, -0.0078599636954381283, 0.056390698297244246, 0.61428435349857013], [0.053680531731105444, 0.17606384418074045, 0.38667570299407383, 0.75442118180691087]]]])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_float_rank0_offset0(self):  
       arg0=numarray.array(0.429129135575)  
       arg1=-0.799328581784  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array(-0.34301518334135217)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_array_rank0_offset0(self):  
       arg0=numarray.array(0.546867720148)  
       arg1=numarray.array(-0.945901917593)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array(-0.51728322515706049)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_array_rank1_offset1(self):  
       arg0=numarray.array([0.84720838597731163, 0.96761384931609951, -0.34350404065584983])  
       arg1=numarray.array([0.14254722554740384, 0.38587156635226205, -0.9756326729326732])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=numarray.array(0.82927564188954528)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_array_rank2_offset2(self):  
       arg0=numarray.array([[-0.75781563843283184, -0.75850235491912232, -0.81113786053232517], [-0.03044399430833189, -0.84899525253564301, 0.6258693367354744]])  
       arg1=numarray.array([[-0.10841119021549361, 0.48014833287233638, -0.84646955254583744], [0.52283861134408616, 0.42335269030510125, 0.2326408917305347]])  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=numarray.array(0.17482663666982518)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_array_rank3_offset3(self):  
       arg0=numarray.array([[[-0.8153269130841081, 0.17933782883732352, -0.43004524333572203], [-0.79659523841190438, -0.54615778391768433, 0.73882102683333684], [-0.062560136120825005, 0.28621797203970023, 0.60181889130122102], [-0.23925977312195656, 0.75413230705168921, 0.6894549260050078]], [[0.86389223650701474, 0.34983088476049984, -0.99072388411935641], [0.97773824089764849, -0.40341579722993282, 0.60824758458576778], [0.13314845911006024, 0.73735869125571529, 0.63607675958349441], [0.64514334408370333, -0.55788020254365867, -0.57393752641692264]]])  
       arg1=numarray.array([[[0.82509682932791151, 0.34085004075489223, 0.86786217768207141], [-0.074344546420591406, -0.94106264423041486, 0.58087776473158814], [-0.66677170138006336, -0.18820701915956106, -0.46260048175481994], [0.64697907742849048, -0.91375703656948848, -0.54702303697544985]], [[-0.28006947957606276, 0.94695171957122404, -0.41268476423978551], [0.1132248264062643, 0.39040983533108164, -0.5070652190578413], [0.60254179777716166, 0.48166498600982544, -0.6592222787118307], [-0.7615692606536244, -0.14705739460559064, -0.78227235493562408]]])  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=numarray.array(-1.2953232993207786)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_array_rank4_offset4(self):  
       arg0=numarray.array([[[[0.36248549255875262, 0.091838491211693851], [0.7037325270990471, -0.93290932113097402], [0.069265207604657597, 0.84511754541809503]], [[0.19662389575931849, 0.63983092676360642], [-0.53521386731656051, -0.8252813406871593], [0.26226333062458851, 0.46334621698540213]]], [[[-0.30254044787592349, 0.36624814583088572], [-0.17752570771436771, -0.7843303400869146], [-0.72899755849546843, 0.71829546687988821]], [[0.6782946796420346, 0.43148769710793666], [-0.81311833569324543, 0.66649633139730069], [-0.065423058658944599, 0.52043325921384476]]], [[[-0.067084014526594737, 0.85324579597733252], [-0.082612945659737758, -0.64257113348664774], [-0.41051998237559717, -0.38596828641208636]], [[0.090950584098632214, -0.23992873381286217], [-0.52854542430173423, -0.68019908988771016], [0.79703194646529574, 0.84319707625193985]]], [[[-0.25170474336308812, -0.83151570202341762], [0.9207903138368343, 0.52327187743451753], [0.23917637941896719, 0.38391817730861333]], [[-0.57503520340721059, -0.51879943369773929], [0.9870163716709055, -0.1941471308329128], [-0.20307712083518181, 0.41578476595661429]]]])  
       arg1=numarray.array([[[[0.46468570499331086, -0.62470326452016001], [-0.71751051702010571, 0.61937894335259158], [0.8318048107526439, 0.82369383918361017]], [[-0.28511598434234608, 0.34627941816668772], [-0.66600426356686615, 0.41718600873523037], [0.046768800500033514, -0.17335288109212499]]], [[[0.32233606745140531, 0.43868100492599882], [-0.26115011727326709, -0.96866241078491333], [0.9631940136888999, 0.82348226383267886]], [[-0.349958535801556, -0.54169319708263508], [0.47122891718492199, 0.058655956565393685], [-0.37452501463104682, -0.41919398399202534]]], [[[0.16301940524472114, 0.51922895031291905], [0.1796779907351258, -0.45595423564575688], [0.91962363419968907, 0.96543204461471377]], [[0.09251380274804788, 0.23758617600674947], [0.58387993999262733, -0.10837464916271955], [-0.12932247692954668, -0.51497343906113824]]], [[[-0.1518232443562908, 0.90329953208243507], [-0.2605365503636714, 0.29824149005377532], [0.6769406475314439, 0.36945730938732391]], [[0.72412792885087618, 0.18038060746789197], [-0.32591365871103073, 0.081261268277464049], [0.6193115963045166, 0.4999657987136692]]]])  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       ref=numarray.array(-2.4776044528835741)  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_array_rank1_offset0(self):  
       arg0=numarray.array(0.430018952533)  
       arg1=numarray.array([0.17405266481347681, 0.12684725858108425])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([0.074845944608683102, 0.054546725266730989])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_array_rank2_offset1(self):  
       arg0=numarray.array([-0.2596702139875493, -0.2895735074501018, -0.88211626259666986])  
       arg1=numarray.array([[-0.95159197241138482, -0.45620300561671234], [0.17942838282450158, 0.46668790449160968], [-0.56794717501757241, 0.81081773034821758]])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=numarray.array([0.69613782433314564, -0.7319136272398028])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_array_rank3_offset2(self):  
       arg0=numarray.array([[-0.97489218317706583, -0.045252664981564106, -0.89113304764498258], [-0.3501913135304584, -0.55826461424592799, -0.8654061515474869]])  
       arg1=numarray.array([[[0.2212209414743862, -0.054349150407258406], [-0.2714427214637134, -0.7744767637879284], [0.021192602734496413, 0.52949723477208965]], [[-0.016772505939617766, -0.86275907314487599], [-0.88314137189927888, -0.11775415644726928], [0.46675795463063086, -0.35554943541255901]]])  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=numarray.array([-0.12730353075159806, 0.29174259527508767])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_array_rank4_offset3(self):  
       arg0=numarray.array([[[0.50878561502983222, -0.14479198118117953, 0.36673894379996397], [0.34487989411006525, -0.52851371261539493, 0.55304935318837289], [0.59081646267938503, -0.80626315077884403, 0.020388460504169093], [0.45589740066146556, -0.60784017956404757, 0.11066067969213056]], [[0.25411533156671218, 0.61497379354121429, 0.66407113202176649], [-0.17271277418374931, -0.088165136251946219, 0.96981177074973979], [0.84958965929853103, 0.87243005824919195, 0.56545158124645556], [-0.47408488299609086, 0.13974289822365438, -0.35740794171351919]]])  
       arg1=numarray.array([[[[0.11551790541956874, -0.15413632243003517], [0.25625731218580516, 0.927856687758978], [0.37594143013173831, 0.096294046812871237]], [[-0.1848865607798087, 0.43615288915744865], [-0.812304374439905, -0.99117632000028477], [0.907063259654181, -0.087549928919734787]], [[0.76742345834864034, 0.8563058102374741], [0.089128802167366183, 0.74698696172226686], [0.4615317283307987, 0.15958079697544769]], [[0.9357672352900428, -0.71813075885429223], [0.61171418377630227, -0.41339745776309056], [0.2597444842508625, -0.72639669475449908]]], [[[0.1013387379838655, 0.22473934630570636], [-0.14823547162087158, -0.50588269052448287], [0.55392022443062272, -0.18689656551671097]], [[-0.15185627741409657, 0.10714820021851423], [-0.056191863739971204, 0.34237024415476913], [-0.10863630473038999, -0.99980719636997906]], [[0.82776942923713159, -0.99778393075254601], [-0.54089965762023295, -0.48381357764476496], [0.17563110482978428, -0.52781836872553356]], [[0.3324304601921122, 0.32728086982667914], [0.789467675087689, -0.42774499808857303], [-0.91733053032511402, 0.30800389436676268]]]])  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=numarray.array([2.340750975303576, -3.0908910578666107])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_array_rank2_offset0(self):  
       arg0=numarray.array(0.563644591)  
       arg1=numarray.array([[0.24500474080387091, -0.16226262506701583, -0.51786911047006479, -0.74021941654589174, -0.76057283926604691], [0.0044066131645983386, 0.9295484546164996, 0.24351213924959803, -0.23620282130383896, -0.92179962140932048], [0.48070433412714064, 0.96944856929747059, -0.66799958468547249, 0.91640592254796149, -0.036391524613143211], [-0.21129212235996686, -0.53722133447432108, 0.60673583943966247, 0.48039040450883896, -0.46093067578426417]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[0.13809559692354159, -0.091458450940539296, -0.29189412296260842, -0.41722067028951781, -0.42869276691407671], [0.0024837636748567347, 0.52393495851731298, 0.13725430013095699, -0.13313444260692819, -0.51956737059352265], [0.2709463978011819, 0.54642444233753551, -0.37651435269843869, 0.51652724140483297, -0.020511886006453831], [-0.11909366188917685, -0.30280189934643437, 0.34198337406621521, 0.27076945306987138, -0.25980108223193088]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_array_rank3_offset1(self):  
       arg0=numarray.array([-0.055353661857031167, -0.58911500691978236, 0.23067676644596946])  
       arg1=numarray.array([[[-0.89547806204576075, -0.4030293427981857, 0.43945118560188035, -0.2407765205686041, -0.7101213828926265], [-0.92741361662773203, -0.48272025345512382, 0.1639226094990256, 0.7053354652879591, 0.33162548844980599], [-0.19077567305995879, -0.69667359146432539, -0.99293341267288548, 0.51713992356824967, -0.5869751307126696], [-0.50223473208053182, -0.5044191409852683, 0.087329520581260311, -0.92793743087045044, 0.93873910856543641]], [[0.10177648203570122, 0.82862807638003422, 0.98554789045537516, -0.9583551777910877, 0.025683658444351165], [-0.017396067806169313, 0.92214054364746767, 0.62702164606076516, 0.23747634052356892, 0.36278252490414165], [0.74660461948563595, 0.74012638853691692, -0.81960422874870487, -0.30238856772085065, 0.48159866903979798], [-0.55527429450489985, 0.99102565989449287, -0.60107446343982751, -0.23025264311510862, -0.60710517046895118]], [[-0.89222526508707611, 0.25954042635560803, -0.86816945818315516, -0.59801247196502905, -0.63342224404360792], [-0.59187664394248785, -0.10742425820274915, 0.24022981085805384, 0.63002278029827452, -0.14248109796902209], [0.54019491748629744, 0.45137450270730706, 0.10176541504494185, -0.57521007247825784, 0.12259261444948], [0.086167133203624457, 0.86833395220043896, -0.83157977981206677, -0.60852604630694662, 0.11018823423717539]]])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=numarray.array([[-0.21620570216354729, -0.40597813867711757, -0.80519280797671267, 0.43996169597141899, -0.12193860476701268], [-0.074948166017119247, -0.54130677959066154, -0.32304614208220955, -0.03361215908564294, -0.26494439377926826], [-0.30466543666122703, -0.29333451735712057, 0.56127856814101817, 0.016828455156927935, -0.22294651244861929], [0.37479770704340498, -0.35560217363326707, 0.15744184328736791, 0.0466372015547038, 0.33110998508857248]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_array_rank4_offset2(self):  
       arg0=numarray.array([[0.44725799816010214, -0.30781810713277391, -0.42095006385057743], [0.23951656502926255, -0.70741474776970859, 0.82912121602278477]])  
       arg1=numarray.array([[[[-0.45899871970899264, 0.90138237319513981, -0.88486761864911045, 0.91326764012723216, 0.6330995367560559], [-0.98584312311868993, -0.88769403279970627, 0.88503141460828383, -0.078475848210554755, -0.55207750765863217], [0.85710266168441884, -0.68787977782117626, -0.43109610187579839, -0.29472766265280481, -0.69964136094610918], [0.084963159911480846, 0.78201696882933147, 0.21017306762010968, 0.0029497891099103946, 0.78500120370195914]], [[-0.81658605980180421, 0.15752417192889157, 0.24931502361618008, -0.93542356047097819, -0.50180732714728937], [0.74464188574171075, -0.11442604205622997, 0.64010084942366174, -0.69364846236481048, 0.26510763839198437], [0.79928632529201615, 0.36193749110686002, -0.9058319210578345, -0.50328246480883809, -0.78306328087440868], [0.39903589296138131, 0.78519164256929375, -0.35522033660816765, 0.86724063632987725, -0.66653006236768508]], [[0.25585306743771996, -0.64337901935686181, -0.052803226849122087, 0.498546335129749, 0.79227950816184278], [-0.47713335663907452, 0.78417760075495258, 0.42013084877264628, -0.78791206665497637, 0.59906704860464743], [0.89689992123555196, 0.7286365786968787, -0.83325476268992937, 0.91527342231374575, 0.60628167536899524], [0.63533250205997005, 0.063424137848401063, 0.22852083010701318, 0.56652665099407118, -0.18357308988204046]]], [[[-0.22759605447156139, 0.80481113860278497, -0.24327265123693542, -0.13919308406348718, -0.12171689045768574], [-0.032402323837273483, 0.80198761021642073, 0.5358359846116636, -0.25911827883089167, 0.013134937082985854], [-0.84648187757795701, 0.043551710340560712, -0.68644287344765242, 0.11555625407117409, -0.14712685177866569], [-0.95458011575892376, -0.0081606835963243807, 0.24576319422438453, -0.47490439749357716, 0.75409670953211183]], [[-0.96547293480754437, 0.014018860754857698, -0.905098400556825, -0.16378556114177001, -0.51098386854290467], [-0.28232848587187442, 0.88836702158793401, -0.24312610243309707, 0.82668454674738445, 0.50950352877292415], [0.51035153018748858, -0.13746930893447296, -0.1782379191628285, 0.88283679016516747, 0.030395603440791508], [0.26005611848397492, 0.44503666833548827, 0.73884405329601099, 0.081272914408241803, 0.47378420261473875]], [[0.49535985942088212, 0.31601482732470054, -0.94651465562676829, 0.67346224422081558, 0.39352133698367764], [0.53863779912361065, -0.15732598653992702, -0.17036979805672403, 0.68863209612718057, -0.82620984731646763], [-0.29741264158990655, -0.47266815407684382, -0.2905006272000874, -0.39039145987783463, -0.86932976507925197], [-0.63751143745363303, 0.14708387794956779, -0.17722675840809776, 0.88241605499470266, -0.32485554712278386]]]])  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=numarray.array([[0.9775578981158688, 1.0703551711428427, -0.65304353199915166, 1.1274505615804493, 0.76271530590722469], [0.16926730775768839, -1.2587023877046706, 0.18102401009024222, 0.43417776142217956, -1.6230157132814935], [-1.0506066238715461, -1.0100102822578922, 0.15759239355005075, -1.282720224426189, -1.104614815851122], [-1.2934528198236481, -0.11346101366247871, -0.50359830985940413, 0.056276260063267469, 0.2096552880880454]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_array_rank3_offset0(self):  
       arg0=numarray.array(0.484459788449)  
       arg1=numarray.array([[[-0.75859581736483772, -0.66071378873280318], [-0.78537935758374333, -0.46936266139450566]], [[-0.9835100329443871, -0.78474737120841942], [-0.019768759108839351, -0.29063344595908247]], [[0.15080898367774731, -0.89012122626553913], [-0.72128162006096441, -0.78363527564152391]], [[-0.39496668382498301, 0.16948877599172452], [0.6007037490315128, 0.058101560867611424]], [[-0.61627032371103585, 0.10127408641319069], [-0.99337269549800622, 0.79274912503853723]], [[0.38681173819880388, -0.29508915818850312], [0.0017876145256237042, -0.77116990677230168]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[[-0.36750916919911536, -0.32008926231504869], [-0.38048471742749046, -0.22738733564519642]], [[-0.47647106249803073, -0.38017854544179819], [-0.0095771688557740649, -0.1408002177456367]], [[0.073060888328779827, -0.4312279409708607], [-0.34943194106712439, -0.37963977985872455]], [[-0.19134547609038444, 0.082110496561486626], [0.29101681117652572, 0.028147869886498863]], [[-0.29855819065264816, 0.049063222479133459], [-0.48124912591230418, 0.38405507340956069]], [[0.1873947328575099, -0.14295883114969291], [0.00086602735491260799, -0.37360080989339833]]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_array_rank4_offset1(self):  
       arg0=numarray.array([-0.041265439380634428, -0.54458056973457958, 0.70617486649744965])  
       arg1=numarray.array([[[[-0.4170322705848184, -0.74155544497018533], [0.61849739185841446, 0.0092847477829254288]], [[-0.41657759742951406, 0.7090979264053161], [0.86382203605428098, 0.33610524375849771]], [[-0.98176093809152198, -0.52574582602174424], [0.28269388763484748, -0.042771475027286288]], [[-0.42339945356073927, -0.23653986422970918], [0.050943526834795083, 0.40928337145601335]], [[-0.1790836685237005, -0.38066539813790179], [-0.24460605803201951, -0.49402831601340735]], [[-0.76429020976031192, 0.90305364048652725], [-0.038626600456146409, 0.54278133275477125]]], [[[0.1658491458321214, -0.80211857071524895], [0.35040521374731615, 0.71226294440115412]], [[0.75377567117819644, -0.43266857566179429], [0.29333777422524987, 0.95491135959627238]], [[-0.99300199547058132, -0.10794098411486774], [-0.52314096741700356, -0.52337325665206369]], [[-0.90316468829125429, 0.39073466422364289], [-0.22759988867688108, -0.47039532691207286]], [[-0.36854310572321891, -0.8854187838778198], [0.52757626416524461, -0.27777773850411469]], [[0.66568793993691133, -0.11465488314176109], [0.31017566150088172, -0.66331138663872169]]], [[[0.09960176563284473, -0.075231296466667708], [0.25230304074464316, 0.77570554577439488]], [[0.78271851360361433, -0.713061202065157], [-0.89185163150359692, 0.84373582655898627]], [[0.69415653208388006, 0.26029843826331822], [-0.017582406242760973, 0.6602623431358261]], [[0.75365039178655757, 0.72386216222676025], [-0.024108328291647885, 0.017580674971473309]], [[0.66029932923188395, 0.71418533200066525], [0.063878472413904541, -0.55997900024276004]], [[-0.96481934361787158, -0.52789893250496922], [-0.68175538292192428, 0.455996112764677]]]])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=numarray.array([[[-0.0027729388969794933, 0.4142923487578144], [-0.038176371456545483, 0.15951606096895421]], [[0.15943481498088519, -0.2971842372297363], [-0.82519525488929935, 0.061929331862617842]], [[1.0714782852907008, 0.26429391003040115], [0.26081066522279361, 0.75304456201861725]], [[1.0415266698041328, 0.30814768114355118], [0.1048195745159147, 0.2516939277768559]], [[0.6743781714227095, 1.0022299221690529], [-0.23210463432874362, -0.22378444111688439]], [[-1.0123131174497126, -0.34761504186060899], [-0.64876021133715467, 0.66084137671836873]]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_array_rank4_offset0(self):  
       arg0=numarray.array(-0.973401265831)  
       arg1=numarray.array([[[[0.29457907415024165, 0.59612672000769606, -0.97060769583117157, 0.34621761283149932], [0.14003651050408683, 0.75675005310813948, -0.59491556001480639, -0.063692721275949937], [0.27215179353355268, 0.69169291689012646, 0.19450308319120313, 0.65046646267289598]], [[0.099753186595325172, 0.92051284383895604, 0.40137756555728887, -0.17524568831164333], [0.38146357238411022, -0.061413244035389392, 0.29554225117261557, 0.96623464403978399], [0.72136374896844679, 0.61756218303544586, -0.40419387511891269, 0.41307714541879959]]], [[[0.7830517807063484, 0.86353049401392545, 0.26936582709991086, -0.29994497467351189], [0.15545490072968282, -0.48233268791808492, 0.39862782016647103, 0.37169686347355113], [0.33658081581419452, 0.59511350313196809, 0.59136325019446279, -0.92660144923781207]], [[0.98818897330454503, -0.62652958861622032, 0.87415763036782979, -0.35689869665194074], [0.86461890456231427, -0.5684511336678657, 0.18767643730743999, 0.19866587632229638], [-0.43293767514707837, 0.40870353851520402, -0.19472418988420936, 0.75672439002930947]]], [[[-0.40216349448253053, -0.15298171315937537, 0.17111822737596372, 0.33854776785494756], [0.83777613798703765, 0.30789202676449867, 0.14632897062032701, 0.71038490896197293], [0.042356956471918172, 0.23916418386304406, 0.91086116710781795, 0.87638578464510575]], [[-0.73560531190415168, -0.37363420558312632, -0.67995148535918126, 0.47199115413336212], [-0.27194112419103589, -0.15001767237490915, 0.66188213671241125, 0.94485387402579413], [0.30443864615145677, 0.31743724195591216, -0.98475066295825453, 0.33545579885065679]]]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=numarray.array([[[[-0.28674364366502592, -0.58027050385088352, 0.94479075974690052, -0.33700866258300011], [-0.13631171658716612, -0.73662145961277137, 0.57909155918068145, 0.061998575514199752], [-0.26491290032360476, -0.67329476086684936, -0.18932954738625482, -0.63316487814609346]], [[-0.09709987810251694, -0.89602836740608571, -0.39070143038943494, 0.17058437483389324], [-0.37131712422692265, 0.059779729482806271, -0.28768120139782355, -0.94053402559762145], [-0.70217638637013091, -0.60113581069575828, 0.39344282968169014, -0.40208981623631462]]], [[[-0.76222359455039723, -0.84056167595640374, -0.26220103707053649, 0.29196681802669783], [-0.15131999714983008, 0.4695032489708979, -0.3880248247453012, -0.36181019741038623], [-0.32762819216780387, -0.57928423726148903, -0.57563373630493675, 0.90195502360847457]], [[-0.96190439749439971, 0.60986469463929982, -0.85090614393544772, 0.34740564309425959], [-0.84162113616194867, 0.5533310530750909, -0.1826844816416231, -0.19338161548945154], [0.42142208101388579, -0.39783254174010962, 0.18954477292111069, -0.73659647913935311]]], [[[0.39146645460011797, 0.14891259323825651, -0.16656669913443672, -0.32954282577410082], [-0.81549235319918145, -0.29970248859168536, -0.14243680522950233, -0.69148956961047858], [-0.041230315046493111, -0.23280271931360877, -0.88663341305860899, -0.85307503212941382]], [[0.71603914175915095, 0.36369600867219348, 0.66186563655196495, -0.45943678689421974], [0.26470783451892721, 0.14602739218668384, -0.64427690970646612, -0.91972195700157255], [-0.29634096353155581, -0.30899381314163193, 0.95855754185100239, -0.32653309923141544]]]])  
       self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
       self.failUnlessEqual(res.shape,(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_Symbol_rank0_offset0(self):  
       arg0=numarray.array(-0.957462297702)  
       arg1=Symbol(shape=())  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array(-0.559707298165)  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(0.53589863574133045)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_Symbol_rank1_offset1(self):  
       arg0=numarray.array([-0.36386467030272707, 0.79053000390700823, 0.49949697175291008])  
       arg1=Symbol(shape=(3,))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s1=numarray.array([-0.41668251834151615, -0.84458361932879855, -0.81891948201294307])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(-0.92510044610547126)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_Symbol_rank2_offset2(self):  
       arg0=numarray.array([[0.24921109239870542, 0.070069423064783365, 0.18377777086430602], [-0.62079299114141939, 0.69372333437842615, 0.18995102366798089]])  
       arg1=Symbol(shape=(2, 3))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s1=numarray.array([[0.21185241787837517, -0.47522346439650831, 0.15044667792382516], [-0.96445248594758759, 0.24322056182988483, 0.43116514893080304]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(0.89649947772901273)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_Symbol_rank3_offset3(self):  
       arg0=numarray.array([[[0.89951661489407675, 0.57634448615134071, -0.53622729711472106], [-0.43350107796423099, -0.080051592191078047, -0.15553247466126097], [0.72180063867107735, -0.82980647180863376, -0.59717174549223451], [-0.83995910214212777, -0.8011097028059524, 0.48642967841411688]], [[0.032209410767552127, -0.29174761516294923, 0.60698244153542502], [-0.16082619446803559, 0.90130271430612341, 0.61908893637597195], [0.5316196866201981, -0.7645309286542088, 0.86841619625011068], [-0.046878997260848765, -0.21160695253715578, 0.58711713241006014]]])  
       arg1=Symbol(shape=(2, 4, 3))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s1=numarray.array([[[0.91690796541437947, 0.93895712717412416, 0.4960289759729275], [0.57518708286608367, -0.3607057205398787, 0.7394114541246426], [-0.31410764644321443, -0.29420028545817356, 0.75700165987390822], [-0.33725518282725941, 0.069572583101098928, 0.6692500078886463]], [[-0.10731293521792296, 0.80789326974389519, -0.51130078623618203], [0.56766444048947928, -0.43024591812978841, 0.63463592438763272], [-0.46509124824695425, 0.87273573225039591, -0.19057357437390876], [-0.42004672769206963, -0.80433128985257563, -0.92474583620338513]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(-1.185796687546163)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_Symbol_rank4_offset4(self):  
       arg0=numarray.array([[[[0.5070106039208957, -0.80093573762737025], [0.96275336071758555, 0.075439570813181422], [0.49472379237646691, -0.43458105274270808]], [[0.72718767173515753, 0.80846558074432373], [-0.64809196852926876, -0.43919101455912912], [-0.893415135600508, -0.53830852436619581]]], [[[-0.7144096015445689, 0.46424273455446419], [0.87470571392874574, 0.73127223646986539], [0.44580582735968366, 0.09358399253891192]], [[-0.47531949689131281, 0.80987197534344246], [0.22102468059979441, 0.011807204402863203], [-0.25714838425275377, -0.63922489846208608]]], [[[-0.33241159141299415, 0.77011505826981685], [0.99202765676214599, -0.16610877114467915], [0.92115394272001705, -0.91405724352793505]], [[0.97188471308071089, 0.30319183123524751], [0.37241323053622089, 0.73658498120101434], [0.65837281703545369, 0.29231746666974989]]], [[[0.098894799684311918, -0.070761173565578872], [-0.91516821529268766, 0.44476922635848548], [-0.89095186965196538, -0.94200176632887711]], [[0.72634719623762956, -0.97327084224425731], [-0.96179619381454295, 0.52766972623475761], [-0.9488934329813703, -0.70402900917681022]]]])  
       arg1=Symbol(shape=(4, 2, 3, 2))  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       s1=numarray.array([[[[-0.11820066798291351, -0.51258557543222039], [-0.098364895518923579, -0.75261766421768717], [-0.063909470910654687, -0.73607442780090548]], [[-0.38847542547631408, 0.67314170861984213], [-0.089021817061877506, -0.36081485475815711], [0.85601942110178308, -0.079874643934933598]]], [[[-0.22567418092861158, 0.44842015216882913], [0.47159266399869981, -0.032362209916325435], [-0.23592039935287534, -0.92821348171903462]], [[-0.99825597347382367, -0.014365429430939214], [0.24509461408578925, 0.79747699887960977], [-0.44637938871932281, 0.35195013915421569]]], [[[-0.85809446703075554, 0.020878136895004173], [-0.67634718571481112, -0.60950223946435922], [0.50291952025652686, -0.10535591431772939]], [[0.97430474404201473, 0.18572127273504013], [0.47253795512498886, 0.63623230687133225], [-0.51874893042992887, 0.77155986057556136]]], [[[-0.30687039741377387, 0.32128067060991428], [0.50377807631485538, -0.6559782356049495], [-0.5583444443570067, 0.95056487885272278]], [[-0.56413370947964347, -0.3141119685197773], [-0.26123657655870547, 0.91755715991922915], [-0.5567270925980643, -0.59222723358438967]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array(3.4217241320311644)  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_Symbol_rank1_offset0(self):  
       arg0=numarray.array(0.108487093181)  
       arg1=Symbol(shape=(2,))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([0.84138252420927007, -0.92070896817838488])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([0.091279144304962714, -0.099885039623576935])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_Symbol_rank2_offset1(self):  
       arg0=numarray.array([-0.88164918266823733, 0.51849070402116149, 0.21407376222612973])  
       arg1=Symbol(shape=(3, 2))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s1=numarray.array([[-0.66753189134297752, 0.63604973587224611], [0.24368306203710977, 0.90997330527638165], [-0.98449387680117129, -0.47340125794576626]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([0.5041220407057575, -0.19030281840593222])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_Symbol_rank3_offset2(self):  
       arg0=numarray.array([[-0.48368367521376232, 0.30609630853711667, -0.26702652782848735], [0.41384989253050808, -0.50719047280485663, 0.23578081638741089]])  
       arg1=Symbol(shape=(2, 3, 2))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s1=numarray.array([[[0.94427607440082362, 0.73859626063120443], [0.68317458423465416, -0.99520231028946493], [-0.20997916005756068, 0.88242044704976808]], [[0.76525228434960391, 0.78715761878550694], [0.40871097191938799, 0.19907179685124388], [0.68637205898056397, -0.78263837970114158]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([0.079694931224933291, -0.85723771425921702])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_Symbol_rank4_offset3(self):  
       arg0=numarray.array([[[-0.019572223955578893, -0.9250431623941755, 0.44113863083036331], [0.16475833916322835, 0.18179350359368796, 0.61858296572780058], [-0.2720849224062758, -0.76724652269718852, 0.79207356062815881], [-0.23899953264169271, 0.017892682882899358, -0.37426572707749517]], [[0.41051117825823735, -0.032439543670818693, 0.6211335817861523], [0.77419812491244255, -0.36484297441721059, 0.32162185231108009], [0.89581390224822743, 0.86956478253874758, -0.10849549467724673], [-0.42880379570159, -0.49982493514413084, -0.052879122591514394]]])  
       arg1=Symbol(shape=(2, 4, 3, 2))  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       s1=numarray.array([[[[0.87391667386784877, -0.6471677646729681], [-0.34183333619232692, 0.2618328015568907], [0.268334890441561, -0.28080804553410532]], [[-0.99864903808059657, -0.33782866020730462], [-0.88664715155393736, 0.11667158103125796], [0.59964444832918185, -0.62609715880501171]], [[0.22723251258215482, -0.4424072035615052], [0.77129609805160704, 0.8371606647229084], [-0.93328965088392013, 0.24195753531013242]], [[0.10584444738563992, 0.95898293264234202], [-0.54401506237790409, -0.34627867521321964], [-0.7302680224080853, -0.2290542842136678]]], [[[-0.6898420381456476, -0.16576591511921568], [-0.16678612923474789, 0.43246154039245743], [-0.58526569874414802, -0.36747268410116618]], [[-0.58344182130098132, -0.36469539378659577], [-0.68872653593994215, 0.092812389150101371], [-0.86846350365516822, 0.62743490904714494]], [[-0.25855664260307276, -0.9492244487968462], [-0.92969704766912842, 0.36333565697076509], [-0.073467842205704237, 0.73319138103443526]], [[0.40778032771627637, -0.34401855672469117], [0.2543827332672941, 0.43552413714033089], [0.30669085716473932, -0.069296006825886325]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([-3.1632114345394542, -2.3602881471017327])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_Symbol_rank2_offset0(self):  
       arg0=numarray.array(0.455040090646)  
       arg1=Symbol(shape=(4, 5))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[0.18689217676364223, 0.43741941176715082, 0.14945398547643274, -0.26067257495533847, -0.60874095714372567], [0.55554155897958468, -0.55346823947274082, 0.31980465520665247, 0.70796260301073999, 0.24071914382063953], [-0.44601774141459916, 0.13052963266249162, -0.43045278573316748, 0.31729655731190576, -0.77333782351433955], [-0.72070257520136849, -0.77044763579497211, -0.04139231794665621, -0.091555910165080245, 0.47241932906674289]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[0.085043433055538617, 0.19904336878080359, 0.06800755509858801, -0.11861647213657918, -0.27700154031855706], [0.25279368135563862, -0.25185023785930649, 0.14552393929421814, 0.3221513670479193, 0.10953686102434891], [-0.20295595348298187, 0.059396215878717115, -0.19587327463880366, 0.14438265420084379, -0.35189971331187342], [-0.32794856514836923, -0.35058456203006877, -0.018835164110490639, -0.041661609660686626, 0.2149697343214092]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_Symbol_rank3_offset1(self):  
       arg0=numarray.array([0.69261168472180512, 0.25365734042241272, 0.84943826521908639])  
       arg1=Symbol(shape=(3, 4, 5))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s1=numarray.array([[[0.68885706909213917, -0.65202153072428182, 0.6261285538208996, 0.34721912808941968, -0.089315251083961655], [0.80381675905121908, -0.57216740190522941, 0.82470959561442947, 0.27246398430511132, -0.9972757144407598], [-0.22169304397082157, 0.37234701973945517, -0.66935271898725701, 0.93278354992490553, -0.52458317948156341], [0.50398300848981581, -0.77543421503402299, -0.18608364241577902, -0.26294305822629416, -0.54765425234742993]], [[0.7093795777051215, 0.2705953748419847, 0.49310825191934216, 0.43517647000100101, 0.10419151917614733], [0.27389239246670538, -0.2303115997373768, -0.329250102164383, 0.89127380373365095, -0.91200365016766849], [0.23890238241051676, -0.98515286709664185, -0.29358318884600765, 0.71671700644000724, 0.57486481575414028], [0.83986326924122401, 0.59444101381262837, 0.85187919309651039, 0.21375159163354041, 0.98681298894840097]], [[0.92019060411747078, 0.21872878646329008, 0.36924088100677022, -0.66670264741451568, 0.63721942293971989], [0.4618475495949228, 0.72805243234044648, -0.46132130777896729, -0.42828611469801903, -0.11860992183089802], [-0.13459197354298946, 0.29963478116170505, -0.23995949401169159, 0.07645975667540994, -0.85338422976148531], [-0.42775379707854544, 0.85155800233404433, -0.015298622995842281, -0.13410285391723598, 0.60928767765959324]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[1.4386949026195341, -0.19716262682995825, 0.87239181364688412, -0.21544900896824143, 0.50584671831000161], [1.0185186768527195, 0.16372553908151177, 0.095822825787557353, 0.050987267552316029, -1.0228130393058292], [-0.20727542225167622, 0.26252188917493779, -0.74190182156243534, 0.89280515875279409, -0.94241097914475347], [0.19875156044422004, 0.33705548077213021, 0.074206469631460034, -0.24180986989158129, 0.38855289183805991]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_Symbol_rank4_offset2(self):  
       arg0=numarray.array([[0.3039031119878608, -0.46902944817620895, -0.44578563165877094], [-0.80408081597354619, 0.25386737228506684, 0.67140851967585236]])  
       arg1=Symbol(shape=(2, 3, 4, 5))  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       s1=numarray.array([[[[-0.7263198493755374, 0.41904505539463011, 0.62028771669774407, 0.3399262059509971, 0.77016983399369865], [0.61404312962626517, 0.89616485410854163, -0.68019137772344873, 0.16692385359091166, 0.8493678342931037], [-0.44709754369522159, -0.97629085323232334, 0.89129750684206099, 0.90458110464850172, 0.88105135078018559], [0.7773611433790939, 0.46510160723654459, 0.17770531005480272, -0.64727757502491245, 0.65450344044478048]], [[-0.55275453692537346, 0.04580544549354526, 0.88315714627967568, -0.19976922382794315, -0.93320819590088133], [-0.59604629038500878, 0.26722391030409054, -0.51704885626719332, 0.89797871613171276, -0.82316582800822435], [-0.42709666311894368, -0.19737072428338598, -0.53187264500240472, 0.3941846918094376, -0.23130808509598322], [-0.4703798656484568, -0.80834752615263628, 0.79231878041242454, 0.31063362607484923, 0.81711403637294655]], [[0.52648144284381293, 0.72207380343518701, -0.78353420303272348, -0.076693518541859795, -0.47001685584179387], [-0.76843681971154343, -0.9895347885157586, 0.88163402522052969, -0.12693131163753169, 0.33380827597641671], [-0.3222421039510619, 0.75106816768685447, 0.84282915735514985, 0.59382684882384917, -0.19922655262290134], [-0.52714059312842299, -0.98166350594347263, -0.30681161042064753, 0.73300771282988264, 0.95340535851031061]]], [[[-0.052278161619904395, 0.63409984871791414, -0.51065188116020144, 0.66473745611932111, 0.43562785427842066], [-0.12208923066493016, 0.3732032006981516, 0.10885065610075229, 0.40488446751220653, -0.14025724107980087], [0.91619382187166654, -0.38057512677947702, -0.85375638984117419, -0.44377333923125728, 0.65135742691899678], [-0.086367612992696907, 0.74519488858450966, -0.68393350024952237, -0.45417846856628397, -0.95934406298597197]], [[0.51957119310746447, -0.32270541491288429, 0.81484723489763278, 0.096250871173069852, -0.95029164011783007], [-0.38276064312286895, -0.55473818935587738, -0.91309027789119468, -0.87640582593842975, 0.62339088180769453], [-0.9466807402305879, -0.87893287805822551, 0.3081486631688175, 0.80360638114146465, 0.12486797541643435], [0.8909434794049067, -0.46117744168311603, 0.50373971600741707, -0.35581016383564457, -0.53680159160692842]], [[-0.31832036380648088, 0.45836580426357942, 0.90480600953309942, -0.22878050845203379, -0.98953245101753917], [0.32769362994007945, 0.75323594687200446, -0.98573717113446935, -0.96261733160912311, 0.6601996860915138], [0.54893410536584719, -0.37750642947621627, 0.43557336829842952, -0.23466449436952375, 0.24491067970190938], [0.35792431433305527, -0.14927724289874322, 0.49926138099833861, 0.90623067822960146, -0.0040842419516855522]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[-0.23595553353137594, -0.50006632635561277, 1.3485319191584209, -0.43248171363355531, -0.37462266478061279], [1.0297464382360819, 0.65294536705185269, -1.3383818062720076, -1.5082257829228833, 1.2097080648270018], [-0.40036871552609365, -0.70952079882714991, 1.2017765873272452, 0.22858463563347567, 0.13744789582420677], [1.2277976364526209, 0.14159527400356242, 0.83218579365567358, 0.21414830656459077, 0.023012229433182374]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_Symbol_rank3_offset0(self):  
       arg0=numarray.array(0.890045711116)  
       arg1=Symbol(shape=(6, 2, 2))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[[0.49254859843576848, -0.87591437650742887], [0.65951944732768886, 0.62391289331539457]], [[0.56006360504326724, 0.25580615479271751], [0.81538317307965458, -0.42091246260962034]], [[-0.041061181788684786, -0.41035548527018695], [0.71939662130420423, 0.37291912317303932]], [[0.86828122599620094, 0.76141592812588854], [-0.38080320814229718, 0.63409187587724269]], [[0.42738473899131413, -0.32958638811270657], [0.76318734863948845, -0.83807304191658871]], [[-0.79738808556006968, -0.81656788454722151], [0.60156187537550854, -0.98408669269014215]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[[0.4383907675541347, -0.77960383411560596], [0.58700245549184782, 0.555310994805572]], [[0.49848220962113232, 0.22767917095042836], [0.72572829611600298, -0.37463133210112182]], [[-0.03654632874438847, -0.36523513969780647], [0.64029587738341409, 0.3319150661734408]], [[0.77280998124078182, 0.67769498120413696], [-0.33893226218640576, 0.56437075457827324]], [[0.38039195393580816, -0.29334695118204968], [0.67927162643485017, -0.74592331656010913]], [[-0.70971184564803269, -0.72678274347662131], [0.53541756714909139, -0.87588214019555377]]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_Symbol_rank4_offset1(self):  
       arg0=numarray.array([0.67072802523959729, 0.59461710689684333, -0.16300700133972379])  
       arg1=Symbol(shape=(3, 6, 2, 2))  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       s1=numarray.array([[[[0.49821714413461771, 0.80260117129412767], [-0.2685890917723317, -0.71656715065610177]], [[0.67394122903184828, -0.14517418062465337], [-0.81135731591198779, -0.38467070393599778]], [[-0.13181904535409261, -0.14043244159422108], [0.65318246231755639, 0.85055397524611576]], [[0.25868965591758908, 0.51066328218361678], [0.84809238904361317, 0.76705402769879205]], [[-0.12740704486405785, -0.70236977382568555], [-0.168964587730285, -0.98844892460350597]], [[-0.49806733863097352, 0.78279804813564513], [0.41669567229466309, -0.30208857559768898]]], [[[-0.71869152579169149, -0.87885492135497922], [0.33985067924909851, -0.20039734809753118]], [[0.52573356595897236, -0.38845082770242856], [0.084116831936275283, 0.73565996928047461]], [[-0.13412399355825033, 0.10177238322584614], [0.98289441645331066, 0.5382233798734064]], [[-0.57089446816259537, -0.53034613162130273], [-0.52586582175554319, -0.52164496435518548]], [[-0.47574911626276029, -0.75126572539751479], [-0.14923656277625552, 0.32918282612656014]], [[-0.8546900413028411, -0.20575588644458942], [-0.35993460099361729, 0.14811324060177355]]], [[[0.99919179315869955, -0.91703684167820243], [0.38520927955450524, 0.77081562040274343]], [[0.24281899809330842, -0.10449645566089116], [0.9525423503592465, 0.35634470582752775]], [[-0.70607945128034144, -0.65904715761561561], [-0.081889162310331498, 0.95174225620630648]], [[-0.98301995159609001, -0.63795520002123141], [-0.7611225240219055, -0.81512912067127719]], [[-0.39858370564805412, -0.44448601105154517], [-0.4704990616544924, -0.64947765146816039]], [[0.14267517123892426, -0.27951838491077852], [-0.4038009311306261, -0.71137402893167945]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[[-0.25605333255767082, 0.16522835363896238], [-0.040861013001742261, -0.72542970413435581]], [[0.72506024491765741, -0.31131824493834132], [-0.64945385519922505, 0.12133989903462757]], [[-0.053071254933571066, 0.073752926750072278], [1.0359021241583499, 0.73538656594858898]], [[-0.0057140803719399891, 0.13115445652734165], [0.38021882006867547, 0.33717736738361359]], [[-0.30337210408361037, -0.84536021173374554], [-0.12537325629155027, -0.36137325113502028]], [[-0.86553809395862225, 0.44826207280638397], [0.13128857321098306, 0.0014103401487729206]]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_Symbol_rank4_offset0(self):  
       arg0=numarray.array(-0.400251875744)  
       arg1=Symbol(shape=(3, 2, 3, 4))  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       s1=numarray.array([[[[-0.22197379460122835, -0.10398529612468255, 0.059085870828096798, -0.017020343031995955], [0.14794601501598792, -0.37637653830071294, -0.080078380627205181, 0.75906007920591634], [-0.84380727698036684, -0.18871835732459563, 0.55510187324873805, 0.45065510434797451]], [[0.38813306746694654, -0.92749223673246739, -0.69012284027771775, 0.91009148738457446], [0.34231741346424971, 0.71945900893965464, 0.63636166211955958, -0.26713803142744941], [-0.47881479842994445, 0.46198399733436202, 0.52143954006095505, -0.087831548652862912]]], [[[-0.049482141878419705, 0.020405158789798872, -0.83890927247519254, 0.49583829636983268], [-0.25613180995076035, -0.79931270295807133, -0.43883411017454255, 0.73382185566986968], [-0.67910496127373299, -0.82638174316309976, -0.46368660790294269, -0.059914211794997341]], [[0.75389399630623366, 0.27288699324460652, -0.90093152494903528, 0.34740945300647708], [-0.030591423029421971, 0.015320153615452359, 0.79899710335876839, 0.054552176701410771], [-0.031661857391701576, -0.7171520089613348, -0.18398512942605239, 0.21148092032953492]]], [[[0.13482430473744555, -0.72854703723588199, -0.69388277527948605, -0.66260185041589281], [-0.83733354172273988, -0.59474295465065108, -0.90619106544835804, -0.71436982067592547], [-0.27260558132720769, -0.50066883889989855, -0.46238560157498787, 0.56476116340530247]], [[0.43038927632611834, 0.025885145824974698, 0.60281390710033378, -0.17385516645046395], [0.16214980639303644, 0.97610905254347702, 0.57091119642593968, -0.400630520972733], [0.34644307872452762, 0.98092242059827872, 0.24847789255006858, -0.72936194577577429]]]])  
       sub=res.substitute({arg1:s1})  
       ref=numarray.array([[[[0.088845427655083728, 0.041620309823666088, -0.023649230628894458, 0.0068124242243572343], [-0.059215670018951637, 0.15064541544077292, 0.032051522052555147, -0.30381522050431342], [0.33773544537755779, 0.075534876506435228, -0.22218056599663724, -0.1803755508287401]], [[-0.1553509882917932, 0.3712305074898703, 0.2762229613147118, -0.36426582492403053], [-0.13701318683879041, -0.28796481784878497, -0.2547049489147189, 0.10692249816131044], [0.19164652120541675, -0.1849099614966411, -0.20870715399631842, 0.035154742097780564]]], [[[0.019805320102652329, -0.0081672030804646138, 0.33577500988696074, -0.19846020818757565], [0.10251723737041529, 0.319926408664718, 0.17564417573766886, -0.29371357419357247], [0.27181303457665001, 0.3307608427813617, 0.18559143457037655, 0.023980775654651731]], [[-0.30174748613346808, -0.10922353091220637, 0.36059953277746432, -0.13905128521692789], [0.012244274449194518, -0.0061319202212661095, -0.31980008933311305, -0.021834611050640274], [0.012672717810557418, 0.28704143678012184, 0.073640393161720982, -0.084645635045895853]]], [[[-0.053963680866999944, 0.29160231822116156, 0.27772788235184387, 0.26520763350019361], [0.33514432069762456, 0.23804698318426079, 0.36270467372786813, 0.28592786070021464], [0.10911089526441087, 0.20039364189609415, 0.18507070434725822, -0.22604671500015461]], [[-0.17226411514949336, -0.010360578170344779, -0.24127739704128434, 0.069585856479527697], [-0.0649007641602872, -0.39068947921091185, -0.22850827725255021, 0.16035311749950365], [-0.13866449209790715, -0.39261603880349089, -0.099453742574001233, 0.29192848689281303]]]])  
       self.failUnless(isinstance(res,Symbol),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(sub-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_constData_rank0_offset0(self):  
       arg0=numarray.array(0.276030930635)  
       arg1=Data(0.525251086603,self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(0.14498554625225879,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_constData_rank1_offset1(self):  
       arg0=numarray.array([0.65548645255509275, 0.37351981102482612, 0.66146316938990646])  
       arg1=Data(numarray.array([0.35738251475002025, 0.75375267320042005, -0.61347308966363956]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(0.11001109862765807,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_constData_rank2_offset2(self):  
       arg0=numarray.array([[-0.088883398927412705, 0.36597586224843726, 0.74959282604165689], [-0.718337701269115, 0.33607066789476403, 0.59912096183685004]])  
       arg1=Data(numarray.array([[0.87315550347073834, -0.79911382372503281, 0.79698915770889056], [0.15146867556573818, -0.66249741709046073, 0.63805916366214133]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(0.27817496562025817,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_constData_rank3_offset3(self):  
       arg0=numarray.array([[[0.20153302766859094, -0.35116008004588184, 0.61696012433723024], [-0.05050693882863988, 0.17570848078988477, 0.013076273091135571], [0.54811545087018798, -0.42637441096587958, -0.91509586562792244], [-0.41703211918250305, -0.87458651401154675, -0.62989316067326073]], [[-0.71145712499219438, 0.51640319295618808, -0.12182181241786361], [0.49157866232808334, -0.58888312538001397, -0.98499655751430581], [-0.26482063804407496, -0.1466661401594116, 0.92787635744693953], [0.95426503021711473, 0.067265994082578828, 0.93571655790151809]]])  
       arg1=Data(numarray.array([[[0.083191577418960216, -0.13267380908779791, -0.31670651125183591], [0.9166435728700093, 0.24487144548334538, -0.74832471275995438], [0.45797771718162483, -0.31279505052245482, 0.56265825341334263], [0.049587341838397192, 0.54572386172700593, -0.591555012574563]], [[0.44597368905115276, 0.49570325682287963, 0.52033626676325362], [0.68429154349511578, 0.52206119042946031, 0.28696799887961721], [-0.63491171842396965, 0.004967136652360038, -0.27973878578647238], [0.42734667668017412, 0.24291755554837136, -0.029733817555185338]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(-0.47517867398842628,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_constData_rank4_offset4(self):  
       arg0=numarray.array([[[[0.19606611084966263, -0.57209293064277844], [-0.91377015519165106, -0.47965416825477725], [0.51485687228874144, 0.67502333423066507]], [[-0.76214296278296612, 0.42849950905965351], [-0.49718152947669325, 0.54073334578167409], [0.17217128360555489, -0.66245225909123451]]], [[[-0.28535614441819601, 0.85992886810876312], [-0.3213074749318201, -0.42641881450285668], [-0.92216566064416483, -0.34139385499820341]], [[-0.52182995244734465, -0.90889392707604855], [-0.14249809236581235, 0.69591411936717362], [-0.16624564353948501, 0.35208457246133285]]], [[[0.1216281235985992, -0.81813485876810765], [-0.52879636746006531, -0.58187557546012547], [0.17248644658489098, -0.73232107870650198]], [[-0.1812890888821197, -0.76142628835072901], [0.479650948229281, -0.39383250923388169], [-0.33843160474005596, 0.0072349045599295891]]], [[[0.52484917029162292, 0.78567887353182542], [0.73580273137643371, -0.031129059645950585], [0.093085161075552314, 0.95974042816664906]], [[-0.0042247192709699011, -0.50307277029470732], [0.444377708951877, -0.64356695364233896], [-0.13286936695674534, -0.05066623610144938]]]])  
       arg1=Data(numarray.array([[[[-0.84558794158576056, 0.61527033930440034], [0.3300136532175415, 0.5046018054928294], [0.42254055880201125, -0.71873864169112323]], [[-0.41746039598975671, -0.58155491346085508], [-0.4813844311354738, 0.18592613876929676], [0.53196416475296071, -0.26252843037889284]]], [[[-0.92314660674941784, -0.79235729537482924], [-0.86399177081949974, 0.25356797810273535], [-0.18129818928386343, 0.15861633373894635]], [[-0.44908184547489838, -0.08178109500798203], [-0.10699307061693131, 0.78887274022102449], [-0.23064213944708545, 0.87519484904768596]]], [[[-0.12010238048508115, -0.61521787096104763], [-0.16162015905453231, -0.41322167296921308], [0.96103403207348626, -0.81427566071653334]], [[-0.099513083940893976, 0.16603620159907706], [-0.40862285561102119, 0.34826516787038209], [-0.42677499726753076, -0.58137530337764143]]], [[[0.70399993629948465, 0.34036547607039669], [-0.50794955273895703, 0.41846445655739406], [0.128196254038766, -0.38060413423278394]], [[-0.44402887336181052, -0.025572509319359948], [0.16890980895514462, 0.72622285390064367], [0.72494568508485191, 0.70969468805643099]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       ref=Data(1.0916478580238695,self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_constData_rank1_offset0(self):  
       arg0=numarray.array(-0.259974017677)  
       arg1=Data(numarray.array([-0.044411300170266399, -0.8714302585888849]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([0.011545784135536585, 0.22654922545091835]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_constData_rank2_offset1(self):  
       arg0=numarray.array([0.25002746419177746, 0.56003262174718937, -0.38411653061655926])  
       arg1=Data(numarray.array([[-0.25220197912710396, -0.51956798157298234], [-0.92297279746096805, -0.36259445263568946], [-0.45338691929511876, -0.038077564179096912]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([-0.40579888640212991, -0.31834476500168113]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_constData_rank3_offset2(self):  
       arg0=numarray.array([[0.80780440839221423, -0.29207184993427804, 0.47539604196932705], [-0.32342927832232093, 0.36904363909067373, 0.17617657281137911]])  
       arg1=Data(numarray.array([[[0.74769328224227594, -0.32948341167934925], [0.75317506354554919, 0.78253366336224439], [-0.74366133755081543, 0.35163398761741416]], [[-0.57198519061406028, 0.37619672855306896], [0.82869637346523017, 0.53243348061751039], [-0.83147507703100421, -0.14754680843174905]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([0.37481049227597868, -0.27872493940663351]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_constData_rank4_offset3(self):  
       arg0=numarray.array([[[-0.24110012719903873, -0.18767619263315161, -0.0023263200028647013], [-0.16745303525596622, -0.081208880408232043, 0.76180141657215583], [0.22392874424529996, -0.90664253147371476, 0.95586755866967299], [-0.77004766332563279, -0.72194418968870044, -0.41632757437658507]], [[0.38522645465910199, -0.13216896105274212, -0.55066562058746626], [0.74643262667383459, -0.73519018574612116, -0.1666972069940782], [-0.12167653683237334, 0.63633427501506423, 0.36224201095372277], [0.94315180298726076, -0.52860157184070178, 0.63695906002259473]]])  
       arg1=Data(numarray.array([[[[-0.10386758710448762, 0.49459681435541136], [-0.57247650577650155, -0.91506181599997216], [0.24131754746756551, 0.32019397726294696]], [[0.14650617363916774, 0.75743908141412408], [-0.52744783814012308, 0.50178758777395371], [-0.7781074949616511, 0.63112146572169614]], [[-0.46518782328154473, -0.20056089250458453], [-0.76360408062036988, -0.64617573279573759], [-0.49403710427308201, 0.69635162430467124]], [[0.68717921862273146, -0.57062955669372273], [-0.44852558485973271, -0.44895330232946962], [-0.16040098753067511, 0.236634091121674]]], [[[-0.91168574887596909, 0.47032605755320178], [-0.88021956487570652, -0.1344789731642575], [0.41736033090124636, -0.29049394722160526]], [[-0.19043893518805333, 0.45666179206782131], [-0.52033102345351812, 0.40490536270689215], [0.36478983733555137, 0.021961012917905309]], [[-0.87459991171516593, 0.22055198755113836], [-0.95421798597476437, 0.64566339556818741], [-0.25283035488290162, 0.45839489280139634]], [[0.75599636361661271, -0.66524871378964723], [-0.58073190678603837, -0.25496267982118814], [-0.41126607738373178, -0.069735987982464609]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       ref=Data(numarray.array([-0.58464390506716768, 2.647960905222289]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_constData_rank2_offset0(self):  
       arg0=numarray.array(-0.544185299417)  
       arg1=Data(numarray.array([[-0.98078244900179024, 0.8612932216239495, -0.40578309224856213, 0.47011167948573584, 0.71368417960651587], [0.36095971146134653, -0.082453576134518425, -0.21455791741457064, 0.31298648068387958, 0.98312794572841744], [-0.088915225329776471, -0.97810755656232362, 0.96698295910836785, -0.31739213445418368, -0.90954767450916862], [0.27052720601589275, -0.50384275667463885, 0.72541118412285566, 0.078921147029740846, -0.46753049705881922]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[0.53372739067249519, -0.46870310969483769, 0.22082119355344024, -0.2558278650601426, -0.38837643896799667], [-0.19642896865888917, 0.044870024016724741, 0.11675926453043051, -0.17032264170427608, -0.53500377551095524], [0.048386358518770684, 0.53227175352941702, -0.52621791113304806, 0.17272013372039449, 0.49496247358636042], [-0.14721692860606994, 0.27418382139982711, -0.39475810243197978, -0.042947728026673772, 0.25442322352830232]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_constData_rank3_offset1(self):  
       arg0=numarray.array([0.80321090298129461, 0.75733336332953161, -0.43955933605807429])  
       arg1=Data(numarray.array([[[0.78879034368954803, -0.96360675680855756, -0.84472039581731684, 0.09269639329379209, -0.88687967608738894], [0.79891982880015688, 0.82615559491626334, 0.43870962789013146, -0.25776922865703966, 0.67159680941934141], [0.15766345982285435, 0.94565467500035094, -0.8168137099869337, -0.65770921213262823, -0.45484089804148842], [0.30783009097762659, -0.74026449285791296, 0.50469441556734496, -0.62387506102580259, 0.55606803499423529]], [[-0.69476518669236187, 0.096269932704859063, 0.840466296413374, 0.28100748815042675, 0.89485512724460081], [-0.49494734703497656, 0.32846002879809877, -0.47440701189166701, 0.72065242250436712, -0.16056243259888681], [-0.15293388856941381, -0.18054680962975578, -0.53864585972941614, -0.49240229154519533, -0.66400626488214631], [-0.94437636064801156, -0.69962040250207069, 0.059472100896275526, -0.7258679313156231, 0.67604426321411459]], [[0.064574213796787738, -0.5203881815066389, -0.49359998905171554, -0.25143418573699838, 0.78064423023386498], [0.14841764339904073, -0.83705000950241049, -0.306281157712468, 0.73238623711186346, -0.19822909711796322], [0.6673079453890467, -0.24900668833512962, 0.54201352219333332, 0.96799468027414459, -0.87287769856111841], [-0.47388722998885946, -0.94423009160263582, -0.22079035169225558, -0.7919366924753577, -0.56314753453910193]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[0.079011950112823109, -0.47232953777667286, 0.17499101860255675, 0.39779134362721968, -0.37778724179624451], [0.20162261730742118, 1.2802640661490039, 0.12772084079238172, 0.016803859893432249, 0.50496804294514286], [-0.28250636368735516, 0.7322792374388043, -1.3022552621083121, -1.3266829927123065, -0.48452572464437749], [-0.25965368393920485, -0.70938923208333882, 0.54746672385139006, -0.7027240861258599, 1.2061675405110834]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_constData_rank4_offset2(self):  
       arg0=numarray.array([[-0.11565043696176636, -0.25516973814347077, -0.54480447818461442], [0.68830407667880444, -0.30647666874713475, -0.013222647666291332]])  
       arg1=Data(numarray.array([[[[-0.33446284196041032, -0.92363008646930722, 0.88230430807039961, 0.051649702155052601, -0.23592181457866568], [0.5104971278349808, 0.43729394737044691, 0.74147148905349103, 0.679887233437517, -0.37964722697630826], [-0.64163119845483507, 0.95243799257993, -0.16694744160255892, 0.39604762563365425, -0.88007651506299212], [-0.0037020293161897921, -0.1880764388967513, -0.94277606167241479, -0.21767848564536085, 0.86977286446058022]], [[-0.73501155027385368, -0.3663203593692046, 0.82214899285811827, 0.27689196615328382, 0.54518051623971897], [0.019286576294491153, -0.25146027753347844, 0.83568832160044115, 0.3106642413049252, 0.47505190873515324], [-0.39292161117350854, -0.43719499734442269, 0.99190052560446107, 0.85336334151266713, 0.63343006213304576], [0.50340344988815167, -0.84122407791744069, 0.86751806824640409, 0.90579274672227883, -0.9621102266168795]], [[0.62326775177626104, 0.12008759026684923, 0.069631861735134581, 0.97900205683156449, -0.89083965983886837], [-0.69668647900055825, -0.74950149073381267, 0.2675896848146746, -0.51872180189847761, -0.94953751629793781], [0.28091433991839621, -0.27113159959604527, -0.011931951002468466, 0.53630770624257829, 0.35087185995834824], [-0.44314547583921393, 0.94373890147914818, -0.73493654942927988, 0.31550405206769172, 0.26665247900793876]]], [[[0.59710385642002928, -0.12803887338848163, -0.26402126307209817, -0.29285538855288817, -0.9064713920873344], [-0.52544425912004522, 0.94038667193528358, -0.26726556609141006, 0.95974674726009668, 0.55320788782618457], [0.12637911941808322, 0.30456684761940678, 0.35529275308681108, 0.65517009603341125, -0.40606428176396325], [0.62521639928593564, -0.18755646596338837, 0.11061943165104826, 0.28533153784040355, 0.57006195458453957]], [[0.26493418753075915, 0.87833071304902588, -0.28298919539362388, -0.50222990586325378, -0.040632910187410776], [0.85031249695503019, -0.54277990316861335, -0.39245923661963866, 0.93823378468563878, 0.45872698390685795], [0.40659927131778484, -0.67382992392399799, 0.72293711733828392, -0.00022653513814963055, -0.96594616937093059], [-0.78774281559253456, -0.28763697021436418, 0.62067361646158936, 0.70164775941175339, 0.48050239096492908]], [[0.60489714316840892, -0.67682837903376747, 0.36440483682611147, 0.42290277667298759, 0.38434238375069252], [-0.53933850671613781, -0.59922409185675152, -0.074875557481751454, -0.77479980947992466, -0.29673585949412118], [-0.30083987286477942, -0.93721644162017936, 0.39522845320463862, -0.37890757332334468, 0.95180902376140253], [-0.93407456650595577, 0.59397835129938792, -0.63282679890401039, -0.43212635295645985, -0.30920570180851015]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       ref=Data(numarray.array([[0.20846894590466161, -0.21350025001741069, -0.44957789465373454, -0.66323616957152021, -0.24305261213454371], [-0.29953753690788193, 1.2434682712086529, -0.5074682566220704, 0.50799633064472838, 0.68410954788752487], [-0.012224784713239064, 0.57766300862504949, -0.20953474812807624, -0.099702584310622941, -0.24704868185486306], [0.79751718381823189, -0.32654295589095927, 0.1823502976995823, -0.39077425918854786, 0.24884005131956072]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_constData_rank3_offset0(self):  
       arg0=numarray.array(0.729161045519)  
       arg1=Data(numarray.array([[[0.78719542466743553, 0.85234295949470962], [0.032104578750040469, -0.096502278551340526]], [[0.50764567626009982, -0.96185965444300359], [-0.70501450359437245, -0.10132955328153126]], [[-0.098014097359040653, -0.62284231841207283], [0.1461389597728926, 0.26782573714588076]], [[0.14730407961037217, -0.98677718952359195], [0.87529773002735833, -0.95658399969991681]], [[0.016469832836842668, 0.18102407337026372], [-0.96921997530625692, 0.36289790352438445]], [[0.84420760731995115, -0.82125974198117713], [0.65036851244544325, 0.36285009148825909]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[0.57399223887856909, 0.62149528348623362], [0.023409408207338351, -0.070365702323496607]], [[0.37015545205520034, -0.70135059127655719], [-0.5140691125471899, -0.073885563012771702]], [[-0.071468061705955072, -0.45415235608705329], [0.10655883669911503, 0.1952880945142855]], [[0.10740839669796699, -0.71951948720768455], [0.63823300796747695, -0.69750378934828883]], [[0.012009160530841397, 0.13199570260283602], [-0.70671745053256507, 0.26461101475062643]], [[0.61556330158881856, -0.59883061210596045], [0.47422338450759466, 0.26457615207637686]]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_constData_rank4_offset1(self):  
       arg0=numarray.array([0.094563644000015712, -0.40340577007888978, 0.37726109420617804])  
       arg1=Data(numarray.array([[[[0.52449117797578659, -0.03086789820496838], [0.72570865973216425, -0.13543779489257046]], [[-0.89695118409168506, 0.79734696922266357], [0.22829213541540572, 0.90054010866700551]], [[-0.71596739611373761, -0.53162155555951718], [0.49237680321488253, -0.06317598151523085]], [[0.071880420235407305, 0.71774717019061041], [0.75001622324878681, 0.97946643306530001]], [[0.28594511097352382, 0.73873074829495167], [0.8977634773163321, 0.68508955799222271]], [[0.27209850366205202, 0.33717685000667652], [0.0082416426035361035, 0.3967960145540661]]], [[[-0.16146967042462879, 0.68172064478711825], [0.15474410825306673, -0.098125172279253325]], [[-0.37227015838659416, -0.79802890461166176], [-0.88581970642908892, -0.25082943693023929]], [[-0.89724165678961332, 0.2649908483519805], [-0.34656675884808252, -0.61942744507352399]], [[0.54869740807191691, -0.29205289135149659], [0.50705660033365318, -0.16284580162474138]], [[0.12910234770898432, -0.034040965132912548], [-0.87819921235137355, -0.98840803021110291]], [[0.21126303819558889, -0.93376861633183461], [0.18709519470671587, -0.46152886596377307]]], [[[0.13783755981776658, 0.068615740197387698], [0.26784700445533405, 0.68335128305684067]], [[0.96758007764405951, 0.75300911337638987], [-0.7056423401530143, -0.8805732619896891]], [[0.2247290198120071, 0.79305270266743566], [0.44992426858646883, 0.81832617635379923]], [[0.90106460974855263, -0.69437719254417174], [0.030768346999636709, 0.50095539564394653]], [[0.26969627168110932, -0.34462639139242168], [-0.96896154396936418, -0.96178212370333616]], [[0.40550249449244569, 0.96839729629400972], [-0.79417057858038054, 0.73121170834781246]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       ref=Data(numarray.array([[[0.16673634241684321, -0.25204297339927473], [0.10724924317230783, 0.28457862204028717]], [[0.43038727628759221, 0.68141054181174454], [0.11272151568017424, -0.14586163593991391]], [[0.37902949145651482, 0.14201702160552981], [0.3561068968467791, 0.55262908317131842]], [[0.12538619465037187, -0.076272890027687806], [-0.1220175909456483, 0.3473058318040193]], [[0.07670529023885185, -0.046424736261731325], [0.073614923084848072, 0.10067109127331092]], [[0.093486212196292551, 0.77391094298210361], [-0.37430558280317422, 0.4995636138363328]]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(6, 2, 2),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_constData_rank4_offset0(self):  
       arg0=numarray.array(0.170303473899)  
       arg1=Data(numarray.array([[[[0.16299614924257644, -0.30845749390788568, -0.29566630182680487, -0.80474190718593475], [0.2691016779449793, 0.43343326414717098, 0.86610946466404282, 0.81037943192221773], [-0.48333691021318304, -0.93480833528417273, 0.64644802086374153, 0.42800956590349348]], [[0.27107237158946917, -0.71924977764247067, 0.72958046337734372, -0.72403719104310249], [0.51262790161186866, -0.22953137082167485, 0.051206987484119448, 0.76489736035255773], [-0.32139134156416738, -0.88271154058596157, -0.96827294084859949, 0.46828011189819208]]], [[[0.87325381066079522, 0.63526408153623026, 0.29502896569193537, -0.41121828371592239], [0.87735333166929808, 0.44805437770807965, 0.42715426653695743, -0.45014923033183574], [0.11122058746477959, 0.088540294825875998, 0.39149149869779998, -0.046853466676531896]], [[-0.40441908731245513, -0.3433187459279825, 0.30970231829985795, -0.80645845620245682], [0.38256980770787696, 0.34446182387752167, 0.37387781617472959, -0.97420202442236437], [-0.59495769997476544, 0.73108455992733701, -0.20589021086236658, -0.46280286594007647]]], [[[0.87429316932515166, -0.018918611841412858, -0.55004861432449981, -0.27876119151367029], [0.50604470531747281, 0.72284043538395015, 0.80737913912957571, 0.13914446576183637], [0.44080224562244452, 0.77483530802879219, -0.1424378513885598, 0.66516119595599488]], [[0.063231228478993318, 0.097353731085751738, -0.91350557376842412, 0.86784298996285969], [0.78632995224149438, 0.84541641731413542, -0.79676254907989241, 0.66234153400905438], [0.65361805846747334, 0.62813428609632793, 0.093673501161051886, 0.88227414180589481]]]]),self.functionspace)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       ref=Data(numarray.array([[[[0.027758810448241404, -0.052531382762826505, -0.050352998316103507, -0.13705034238622077], [0.045828950586196737, 0.073815190587834312, 0.14750145060946576, 0.13801043243300376], [-0.082313954873123998, -0.15920110692904169, 0.11009234364850912, 0.072891515935553777]], [[0.046164566559844904, -0.12249073573390838, 0.12425008740232059, -0.12330604886702869], [0.087302312462278611, -0.039089989819830466, 0.0087207278564703922, 0.13026467764454797], [-0.054734061949577334, -0.15032884181291067, -0.16490024550933788, 0.0797497298142779]]], [[[0.14871815755145223, 0.10818767992915346, 0.050244457758293594, -0.07003190224778473], [0.14941632022052398, 0.076305217019535188, 0.072745855482208702, -0.076661977698668199], [0.018941252414387832, 0.015078719788926784, 0.06667236223033117, -0.0079793081392447607]], [[-0.068873975480549715, -0.058468375086332659, 0.05274338068117413, -0.13734267664685312], [0.065152967261689995, 0.058663045232077021, 0.063672690908490537, -0.16590998903899012], [-0.10132336312891989, 0.12450624026986459, -0.035063818151748055, -0.078816935800209167]]], [[[0.14889516394261959, -0.0032219053179475821, -0.093675189833032413, -0.047473999303123536], [0.086181171263981116, 0.12310223722086623, 0.13749947214770136, 0.02369678589312162], [0.075070153732173975, 0.13195714465724148, -0.024257660906243084, 0.11327926237440823]], [[0.010768497868901401, 0.016579678600974861, -0.15557317263925852, 0.14779667598994684], [0.13391472249790271, 0.14397735276021106, -0.13569142998127415, 0.11279906414962222], [0.11131342596041423, 0.10697345099754574, 0.015952922660049822, 0.15025435128118594]]]]),self.functionspace)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(3, 2, 3, 4),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_expandedData_rank0_offset0(self):  
       arg0=numarray.array(-0.501038685672)  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*(-0.37497860758)+(1.-msk_arg1)*(0.886271009021)  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(0.18787878869669156)+(1.-msk_ref)*numarray.array(-0.44405606150884158)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_expandedData_rank1_offset1(self):  
       arg0=numarray.array([0.44038262808839268, -0.80364141181592696, -0.35078298317395173])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([0.71915786866679077, -0.24226928051609842, -0.52239122903446766])+(1.-msk_arg1)*numarray.array([0.80851332796867226, 0.23987618213601136, 0.93431506683977128])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(0.69464821255213227)+(1.-msk_ref)*numarray.array(-0.16446103582788724)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_expandedData_rank2_offset2(self):  
       arg0=numarray.array([[-0.70824728644205526, -0.12630675377204637, 0.4347607103368023], [-0.89056712613274125, 0.010820129422368874, -0.90039689321841987]])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[0.93739717147838908, -0.77123682199279786, -0.86427598943106121], [-0.91576441578160006, 0.13385047078992351, 0.76249883166202981]])+(1.-msk_arg1)*numarray.array([[-0.39496786944253803, 0.66327871398525273, 0.18532728600071824], [0.6362315985772391, -0.77080221962759832, 0.94099837319284996]])  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(-0.8118034424514643)+(1.-msk_ref)*numarray.array(-1.1456877747602543)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_expandedData_rank3_offset3(self):  
       arg0=numarray.array([[[0.63350363851439639, 0.012863304921566288, -0.46484188959811634], [-0.44497572695987198, 0.7313619267681537, -0.7824611232916332], [-0.93700843427874925, -0.44281317878576698, -0.053511743398166445], [-0.21279837170704141, -0.71697082293404168, 0.91122771589265805]], [[-0.15825541058242831, 0.44839519324233112, 0.93358871086947182], [-0.37114035164923109, 0.78805681132652072, -0.8138475994924752], [0.52088536280998121, -0.77960719617666063, 0.54954337829857813], [-0.46568975258154666, -0.54470171069547657, 0.58430452780377817]]])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[-0.40379817428308384, 0.60389726258914656, 0.43953608931572186], [0.4838417639649768, 0.97973014911472811, 0.38509984207315728], [-0.33557566738890166, 0.74565707877513576, -0.42293605603757567], [0.93428852170931109, 0.20392914562930908, -0.19015381696316624]], [[-0.28771663480511722, -0.11363849155085948, 0.15885662403426482], [-0.61281402347548886, -0.19979936417795652, 0.18520201905341604], [-0.26478689551969237, -0.26876353904713635, -0.42756925441662252], [-0.10336812618250768, -0.62661268118795377, -0.50758733772388442]]])+(1.-msk_arg1)*numarray.array([[[-0.67885234584521226, -0.2383304710343972, -0.95102911225053433], [-0.77162854554669535, -0.18252965123420073, -0.057560358501999254], [-0.28069888586616965, -0.60672292004101647, -0.37769655089940013], [-0.59269449422648113, -0.27619032325379833, 0.013919747588113873]], [[-0.038406445356485186, -0.62545888435942398, -0.34531503961876164], [0.83724853491667051, 0.61060148536269532, 0.33308338973850815], [0.42834232810198802, -0.24493617999638184, 0.75888014236571077], [-0.84795287270528363, 0.62773712077388999, 0.27063716628400281]]])  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(-0.77220523654832762)+(1.-msk_ref)*numarray.array(1.497391405841505)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank4_expandedData_rank4_offset4(self):  
       arg0=numarray.array([[[[0.66692221453488321, 0.70236643546384081], [0.78031380564159125, 0.51817208183024732], [-0.73155397777526199, 0.41333534504253611]], [[-0.050532058185003947, 0.61603390263605085], [0.1468977566735139, 0.92574095795931521], [-0.2111592868010268, 0.96299120541748384]]], [[[-0.37394494763727648, -0.014102034485046877], [-0.10581395189470788, 0.80096492843200551], [0.89288408725661816, -0.34044229611468313]], [[0.47426149830902542, 0.39436501306897065], [-0.14167997130606569, -0.62207238623596672], [-0.37185543809384591, -0.060608338166359799]]], [[[0.26383584038706931, 0.050438879214178556], [0.75974254183593204, 0.64834976706573566], [-0.87058844559025128, -0.51116367530358953]], [[-0.23990103772999727, -0.15064442054769689], [0.21915152648611569, 0.91076111295643902], [-0.86736114625524463, 0.15192583520059211]]], [[[-0.19437893616374713, -0.34856783741186081], [0.64470469827147725, -0.28657566195229722], [0.040736307101837843, -0.81189918724736865]], [[-0.43138598569616682, 0.6569786694570392], [-0.88548264551389533, 0.22424181301194968], [0.49028931081399829, 0.12533075955312345]]]])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[[-0.46340779133960219, 0.36431041531567199], [0.26951798090514512, -0.39609372305210022], [0.28526948474899316, -0.75551992572189408]], [[-0.54305547329011117, 0.26118735978137364], [0.94607798188040948, -0.50746815991997085], [0.668461028276504, 0.17534199507844028]]], [[[0.69954540197006621, -0.58989378545627336], [-0.77491029045897619, -0.76545382519911498], [-0.25250868270646687, -0.46481158423696556]], [[-0.76607140109887029, 0.55118334352692822], [-0.626460377392007, -0.9811309325713633], [0.3686601252945938, 0.074166702980152044]]], [[[0.60599601425914873, -0.55895950980763032], [-0.73036937902853416, 0.44910078910514262], [0.72914971761458025, 0.29351120043732104]], [[0.26115112507488458, -0.1804659513394633], [-0.46578546574459878, -0.54589922469878194], [-0.2109275840716307, 0.20216313022050536]]], [[[-0.93791559744495201, -0.27942365974895433], [0.98190776398441426, -0.10901959474963396], [0.24203914236980006, 0.083994807064014632]], [[-0.18910747704590225, 0.77000442816012948], [-0.58626375608555215, 0.82046002639811633], [0.38046723009345196, -0.29851908605949395]]]])+(1.-msk_arg1)*numarray.array([[[[-0.063843541440743001, 0.82579210086531196], [-0.75392928943450777, 0.96515854653631816], [0.04513414472199373, -0.58391601323413722]], [[0.51050537414761421, -0.39055883895901622], [-0.035983227726216871, -0.67985051461074297], [-0.46202605176115275, -0.32058592584661327]]], [[[-0.94295560179225624, -0.95635626340976576], [-0.56137374534821216, -0.95428648114901637], [0.90744174531924093, 0.12944161238629848]], [[-0.89864854245762937, -0.57163922613177331], [-0.59408436108929119, -0.69495540700078506], [-0.43417863882441132, -0.47493704913215007]]], [[[-0.52757591056894726, 0.46829257906798505], [0.77931221581068466, 0.83301505980319068], [-0.96930280734831697, 0.10868224224462741]], [[-0.62766844886146278, -0.40104067060462034], [-0.51320226272568847, -0.37356414336340404], [0.97201855282411853, 0.94271809432690068]]], [[[-0.032280060413461653, -0.36020188198684688], [-0.41169336168295434, 0.61931290291263963], [-0.57962639671584393, 0.78323224929846846]], [[-0.66356437187182316, 0.1114302921832302], [0.22662244560360123, -0.36488034809040859], [0.12382732557364684, 0.81246926773550343]]]])  
       res=generalTensorProduct(arg0,arg1,offset=4)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array(-0.13645802998092274)+(1.-msk_ref)*numarray.array(-0.3226720375795763)  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_expandedData_rank1_offset0(self):  
       arg0=numarray.array(-0.874708255678)  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([0.14654086700981339, 0.29310796739100886])+(1.-msk_arg1)*numarray.array([-0.9215158534245409, -0.30896457872014915])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([-0.1281805061677056, -0.25638395888193338])+(1.-msk_ref)*numarray.array([0.80605752472866621, 0.27025386771861076])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_expandedData_rank2_offset1(self):  
       arg0=numarray.array([0.2892485283016033, -0.20014935288134739, 0.087006388727603357])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[0.98893987430714647, -0.88028128897717206], [0.88844404657015219, -0.28295984513968886], [0.45513009395447646, -0.70192724421712316]])+(1.-msk_arg1)*numarray.array([[0.084565234308185522, 0.82592053483818861], [-0.1001636044559262, 0.73723539179415098], [-0.40814274945400886, 0.97632878400553325]])  
       res=generalTensorProduct(arg0,arg1,offset=1)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([0.1478271281060469, -0.25905799210082081])+(1.-msk_ref)*numarray.array([0.0089970234678914754, 0.17628595431432692])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank2_expandedData_rank3_offset2(self):  
       arg0=numarray.array([[-0.3779633899829653, -0.88393082872430706, -0.31590593488209229], [-0.027735783300006034, 0.18453001551873927, -0.38062223999076217]])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[0.65241925838380443, -0.93810039747206297], [0.20699238934346043, -0.28729202466167036], [-0.73017695169441343, 0.40255584953621404]], [[0.59613475429153584, 0.11806038179459866], [0.26628809400784981, 0.78577158973314765], [-0.30370944851659898, 0.69330371535762203]]])+(1.-msk_arg1)*numarray.array([[[0.83772175836918339, 0.60287463850061318], [-0.18527744936965096, 0.54931735571376561], [-0.37167308309872249, 0.73168804739011128]], [[-0.46383496026335846, -0.39094945287159288], [-0.4114599857806287, -0.83457293926382259], [0.49096479229265522, 0.81391664509909445]]])  
       res=generalTensorProduct(arg0,arg1,offset=2)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([-0.050687863928685628, 0.35918123517652517])+(1.-msk_ref)*numarray.array([-0.2853759841192921, -1.3975229289751401])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank3_expandedData_rank4_offset3(self):  
       arg0=numarray.array([[[-0.43001183753684313, -0.67833462383068355, -0.84552602616504191], [-0.58683473152759102, -0.60386885707976745, -0.61327103323861998], [0.61468312546560844, -0.75492434588748036, -0.78818981309419578], [-0.54034954365244792, 0.52022532947355415, -0.57477303982479921]], [[-0.65648081838552241, 0.80790367863986634, -0.03074902541822655], [-0.88980529844214606, 0.091391289713685708, 0.34903087642085073], [-0.54438954610923873, -0.64383004912714759, 0.30601151055436326], [0.38803860206514162, 0.80139910770437583, -0.77980376439441423]]])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[[-0.52631928814506224, 0.52114146151519081], [0.92539527175661851, -0.28115407372136247], [0.13068516078127912, -0.21000051854384694]], [[0.88002789810803805, 0.28365158093793186], [0.81529253278395974, 0.44416599290101022], [-0.19322585923808755, -0.0086189852172304793]], [[0.59776010693329362, 0.39550010260117485], [-0.22191964410150256, 0.91173026317810102], [0.80754985806063218, -0.32152153998509747]], [[0.26670484968560548, -0.27662395810407614], [0.18357345701842753, -0.84421981535555868], [0.085582139456202189, 0.13902170637390454]]], [[[-0.13696484377814966, -0.76083195907288292], [0.69804413089398709, -0.4149668879314421], [0.72484293975385339, 0.51710470976854084]], [[0.53872850448765086, 0.58001248605062394], [-0.97359855532336947, 0.34719604209795807], [-0.022826739261370799, 0.81616552372115692]], [[0.5906989436878114, 0.75409887638106921], [0.22312151836905403, -0.012909715589096038], [-0.37827158040829789, 0.36754054624002785]], [[-0.050944348130106398, 0.15249839291881218], [-0.39456849710011177, 0.74654477024305721], [0.11126598640053387, -0.22730210487646541]]]])+(1.-msk_arg1)*numarray.array([[[[-0.95312417667446159, 0.95479440417988259], [0.6437071563109682, 0.42987924404781164], [-0.1499709638358957, 0.43023213230326296]], [[0.93140872857267154, -0.89037057424834876], [-0.11728818817059539, -0.83920015046545027], [-0.10646147420581453, 0.011809961683704628]], [[0.65330829646027699, 0.7347028036831309], [-0.51628909010371493, 0.78489332676857981], [-0.58510280417275307, -0.32208582652772799]], [[0.69176337155418688, -0.41703379415680497], [0.44919833195877223, 0.28016566960863321], [-0.62420723416190027, -0.23459325986858892]]], [[[0.0657887446833334, -0.5078899406539823], [-0.14155361249305343, -0.87099688187411051], [-0.9516783982658148, 0.051991011281497634]], [[-0.3214501297041279, 0.94726305461156812], [0.78684050949034612, -0.51127235557511885], [-0.51139598833539557, 0.6176469440750012]], [[0.54197304987078243, -0.72835240064770468], [-0.63469061263345949, -0.68225774302319264], [-0.72040690925145934, 0.30787449549031676]], [[-0.90305329024928471, 0.11589149416066991], [-0.98976197368375352, 0.2721992361129435], [-0.54406110828611021, 0.5184134839815393]]]])  
       res=generalTensorProduct(arg0,arg1,offset=3)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([-2.5499534018495988, -0.3528016548882395])+(1.-msk_ref)*numarray.array([0.38566076603801253, 0.3178879452215792])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank0_expandedData_rank2_offset0(self):  
       arg0=numarray.array(0.246720077242)  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[-0.90606308924596823, -0.41069377717229494, 0.52409905991619588, 0.82402330879009367, -0.029874051064125773], [0.075536381703545041, -0.85747704312966011, 0.14046776773330616, 0.74443505055412396, -0.81767919596405192], [-0.79611289784131944, -0.19503473823432049, 0.44762448588483883, -0.45671928577572496, -0.61527798064175143], [0.97183668249216892, 0.47513629707242799, -0.82237067477448278, 0.92125554787705632, -0.99368761422211782]])+(1.-msk_arg1)*numarray.array([[0.71563952655324181, -0.36819307717015937, -0.60098500904966734, 0.24922312481795217, 0.32024626460365546], [0.52397777755136032, 0.012686857024190701, 0.99978450698005839, -0.41594934988402432, -0.21161406541893024], [-0.47691438338475045, 0.58504726934022555, 0.87044255777491752, -0.32328077177959025, 0.17285650560197818], [-0.34784494744696026, 0.61632440573505276, 0.6052446913779741, 0.78601098711335626, -0.49589140523425912]])  
       res=generalTensorProduct(arg0,arg1,offset=0)  
       msk_ref=whereNegative(self.functionspace.getX()[0]-0.5)  
       ref=msk_ref*numarray.array([[-0.22354395536474614, -0.10132640042669194, 0.12930576054489998, 0.20330309439376909, -0.0073705281860678056], [0.0186363419284678, -0.21155680231405496, 0.034656218505150244, 0.18366707317424708, -0.20173787438729712], [-0.196417035648636, -0.048118985682013747, 0.11043794773284669, -0.1126818174644252, -0.15180143090913673], [0.23977162137092217, 0.11722566391411163, -0.2028953564017851, 0.22729223993170167, -0.24516268493514137]])+(1.-msk_ref)*numarray.array([[0.17656263926853016, -0.090840624439332746, -0.14827506785392228, 0.061488348605538076, 0.079011183139424845], [0.12927583775047968, 0.0031301023449645197, 0.24666691078731567, -0.10262305573207993, -0.05220943856561841], [-0.11766435350643048, 0.14434290748174847, 0.21475565508881309, -0.079759856984262398, 0.042647170413874738], [-0.085820332302298075, 0.15205960498898383, 0.14932601700698783, 0.19392469145354274, -0.12234636580296136]])  
       self.failUnless(isinstance(res,Data),"wrong type of result.")  
       self.failUnlessEqual(res.getShape(),(4, 5),"wrong shape of result.")  
       self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")  
    #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    def test_generalTensorProduct_array_rank1_expandedData_rank3_offset1(self):  
       arg0=numarray.array([-0.45898756380933037, 0.88983535078897669, -0.93601582386512105])  
       msk_arg1=whereNegative(self.functionspace.getX()[0]-0.5)  
       arg1=msk_arg1*numarray.array([[[0.85242562280855316, 0.81174138665070905, -0.34012550800122687, 0.34758312551507897, 0.26793731579633984], [-0.22156781629023947, -0.33053084124743548, -0.9232944731653745, 0.1068871638491351, -0.49779757627283239], [-0.78537035377840958, -0.21886959538687889, 0.52247528432916046, -0.52722844717407402, -0.96038601029480741], [0.029908729932515365, -0.61732773958940257, -0.19929118801933221, -0.27953522474954773, 0.90108371942625731]], [[0.084225678094832279, -0.023714294740967423, 0.21836023456079601, 0.94385311099605307, 0.11021975958514818], [-0.10698176723360175, 0.58192355928131878, 0.71031788640458982, -0.048329163621356308, -0.061722169078396005], [0.38733073278731878, -0.52072790429793914, 0.41516080090406215, 0.33751425915179234, -0.23451160480295163], [-0.31754221530628568, -0.62142882926223897, 0.26735178472188759, 0.605302787951701, 0.45754720795975157]], [[0.36684565227343136, -0.96975721436593609, 0.22078755039429643, -0.79362315968720742, 0.3667120169226652], [-0.94967278938118627, -0.68731033549091536, -0.0051219726794407006, -0.4970685936575685, -0.97365752935427241], [0.93857640099798578, -0.79974261569970606, 0.4713594604980047, 0.28733078923508604, 0.698123283943757], [-0.67384865621491841, -0.79939314063274058, 0.35458508209965145, 0.95301187439504198, -0.97831639629936129]]])+(1.-msk_arg1)*numarray.array([[[0.72714071831087601, -0.069880915555535772, 0.63661806717395186, 0.91652507007398865, 0.43388651012901036], [-0.43994170474778538, 0.50193110150742548, 0.012195024468751647, -0.81011667336280713