From: Jon P. <Jon...@no...> - 2004-10-04 09:28:13
|
On my AMD64 (using pre-compiled version as packaged by enthought) I get the expected results from RandomArray under Numeric ie: >>> from RandomArray import * >>> normal(2,2,10) array([-0.43560529, 2.67296922, 0.84804749, 4.26332831, 0.64425385, 3.43939352, 4.07021809, 3.6235764 , 2.93580639, 1.81101392]) Jon >Message: 3 >From: =?iso-8859-1?q?Fl=E1vio_Code=E7o_Coelho?= <fcc...@fi...> >Organization: PROCC-Fiocruz >To: mat...@li... >Date: Fri, 1 Oct 2004 17:06:10 +0000 >Subject: [Matplotlib-users] warning: Numeric and amd64 > >Hi, > >look at this: > > > >>>>>>> from RandomArray import * >>>> >>>> > > > >>>>>>> normal(2,2,10) >>>> >>>> > array([ 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.]) > >This is Numeric 23.1 compiled on my AMD64!!! I ran the same tests on a 32bit >P4 and it ran fine. >Has anyone else seen this before? > >For those that didn't understand, the normal function as called above, is >supposed to give me ten samples form a normal distribution with mean = 2 and >standard deviation = 2 > >luckily: > > > >>>>>>> from numarray.random_array import * >>>> >>>> > > > >>>>>>> normal(2,2,10) >>>> >>>> >array([-0.04525638, 4.31467819, -0.17468357, 5.29377031, 0.84202135, > 5.29593539, 4.69651532, 1.61354655, 1.10839236, 1.7743317 ]) > >If anybody still needed a reason for switching to numarray, there you go! > >I anybody here subscribes the numeric or numarray mailing lists (i.e. if they >even exist) could you please forward this message to them? > >Flavio > This message has been scanned but we cannot guarantee that it and any attachments are free from viruses or other damaging content: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. |