[SciPy-dev] Is this a (formatting) bug?

David Goldsmith d_l_goldsmith@yahoo....
Fri Jul 3 00:22:02 CDT 2009


I figured out a "work-around":

>>> w,v=LA.eig(np.diag((1,2,3)))
>>> w;v
array([ 1.,  2.,  3.])
array([[ 1.,  0.,  0.],
       [ 0.,  1.,  0.],
       [ 0.,  0.,  1.]])

But I'm still "concerned" about how >>> w,v (effectively) is printed (though I now see more clearly that it's an artifact of how a tuple is printed, not an artifact of how LA.eig is printed, and thus probably "unfixable" solely within numpy).

DG
--- On Thu, 7/2/09, David Goldsmith <d_l_goldsmith@yahoo.com> wrote:

> From: David Goldsmith <d_l_goldsmith@yahoo.com>
> Subject: [SciPy-dev] Is this a (formatting) bug?
> To: scipy-dev@scipy.org
> Date: Thursday, July 2, 2009, 10:08 PM
> 
> Actual output:
> 
> >>> from numpy import linalg as LA
> >>> LA.eig(np.diag((1,2,3)))
> (array([ 1.,  2.,  3.]), array([[ 1., 
> 0.,  0.],
>        [ 0.,  1.,  0.],
>        [ 0.,  0., 
> 1.]]))
> 
> i.e., a line feed wasn't inserted between w and v.
> 
> Bug?
> 
> DG
> 
> 
>       
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
> 


      


More information about the Scipy-dev mailing list