[SciPy-user] small error problem
Ryan Krauss
ryanlists at gmail.com
Sat Oct 29 14:59:47 EDT 2005
Interesting. I was starting ipython with -p scipy.
If I enter
scipy.restore_numeric()
I get
(Pdb) mat[1,1]/mat[1,0]-mat[0,1]/mat[0,0]
Out[4]: -3.5527136788005009e-15
both before and after I augment the column of zeros (instead of
exactly 0.0 before augmenting and -1.303556573795106e-08 after
aygmenting if I don't restore numeric).
Ryan
On 10/29/05, Fernando Perez <Fernando.Perez at colorado.edu> wrote:
> Travis Oliphant wrote:
> > Ryan Krauss wrote:
> >
> >
> >>My version:
> >>In [3]: scipy.__version__
> >>Out[3]: '0.3.3_309.4626'
> >>
> >>In both places, I get:
> >>(Pdb) type(mat)
> >>Out[2]: <type 'array (scipy)'>
> >>
> >>
> >
> >
> > This could be an issue with the old method of updating the numeric
> > behavior to support some advanced indexing procedures in old scipy.
> >
> > I know that IPython automatically alters Numeric if you have scipy.
>
> But only if you load the scipy profile via
>
> ipython -p scipy
>
> If you simply start ipython and then issue 'import scipy', no alter_numeric()
> is called for you at all.
>
> Just to clarify...
>
> Cheers,
>
> f
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>
More information about the SciPy-User
mailing list