From help-request at octave dot org Sun Feb 6 14:57:36 2005 Subject: Re: randn newbie question From: Joe Koski To: Hamish Allan , Paul Kienzle CC: Octave Help Date: Sun, 06 Feb 2005 14:02:30 -0700 OK, just to be sure, for us big-endian users of octave-forge and octave-2.1.64, who don't normally use randn, and don't want to recompile right now, the "quick fix" would be to rename the octave-forge randn.oct file, for example: /usr/local/libexec/octave/2.1.64/site/oct/powerpc-apple-darwin7.7.0/octave- forge/randn.oct? This would prevent us from accidentally using the octave-forge randn a couple of months from now because we forgot about the problem. If execution time then becomes a problem, we could apply the patch and re-make and reinstall octave-forge (or get a newer version of octave/octave-forge). Any other changes that I'm forgetting? Joe on 2/6/05 12:32 PM, Hamish Allan at hamish at jamkit dot com wrote: > Thank you to everyone who replied. Removing the octave-forge version of > randn() worked, as did reinstating it after applying Paul's patch. > > Cheers, > Hamish > > On Feb 6, 2005, at 16:36, Paul Kienzle wrote: > >> On Feb 5, 2005, at 11:55 AM, Hamish Allan wrote: >> >>> Why does: >>> >>> plot(randn(2,100)', '+') >>> >>> which looks like this in Matlab: >>> >>> http://igor.gold.ac.uk/~map01ra/matlab_randn.jpeg >>> >>> look like this in Octave: >>> >>> http://igor.gold.ac.uk/~map01ra/octave_randn.jpeg >>> >>> ??? >> >> The reason is that I messed up the test for X86 architecture >> in randmtzig.c, and you are compiling little endian rather than >> big endian architecture. >> >> I've fixed this in CVS. Before making a new release, I want >> to put some distributional tests around the random number >> generator code so nothing so egregious happens again. >> >> Please try the attached patch. >> >> - Paul > > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------