[Numpy-discussion] Random Numbers

Karthikesh Raju karthik at james.hut.fi
Wed Jun 2 09:11:00 CDT 2004


Thankx Perry, now i an getting somewhere near, but there are still some
issues, matlab and python (exact algorithms) result in different values
:(, looking at it though,

Warm regards
karthik



-----------------------------------------------------------------------
Karthikesh Raju,		    email: karthik at james.hut.fi
Researcher,			    http://www.cis.hut.fi/karthik
Helsinki University of Technology,  Tel: +358-9-451 5389
Laboratory of Comp. & Info. Sc.,    Fax: +358-9-451 3277
Department of Computer Sc.,
P.O Box 5400, FIN 02015 HUT,
Espoo, FINLAND
-----------------------------------------------------------------------

On Wed, 2 Jun 2004, Perry Greenfield wrote:

> > I'm guessing you are seeing overflow problems with the boolean
> > representation which is the result of logical comparisons
> > (which uses only 8 bit values) try:
> >
> > sum(float(not_equal...
> >
> > to eliminate that problem.
> >
> > Perry
> >
> arg, I should have said:
>
> sum(not_equal(...).astype(Float))
>
>




More information about the Numpy-discussion mailing list