[SciPy-user] ValueError: need more than 1 value to unpack

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Mar 17 04:48:17 EST 2006


Ed Schofield wrote:
> On 17/03/2006, at 10:19 AM, Travis Oliphant wrote:
>
>   
>> Nils Wagner wrote:
>>     
>>>>         
>>> BTW, dtype=complex256 aka dtype=Complex128 doesn't work in this  
>>> context.
>>>
>>> Who can confirm this behaviour on a 64bit system ?
>>>
>>> A_csc = s.csc_matrix((3,3),dtype=complex256)
>>>
>>> for i in arange(0,3):
>>>
>>>     A_csc[i,i] = 1.0+2j
>>>
>>> print A_csc
>>>
>>>       
>> In order to have complex256 defined, the long double on your machine
>> would have to translate to 16-bytes (I don't think that's even true on
>> 64-bit systems is it?).
>>     
>
>
> I think complex256 is defined on Nils's 64-bit machine.  Nils, is  
> this true?
>
> -- Ed
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>   
Ed,

I am quite new to 64bit systems.

At least I get no error message like that

Traceback (most recent call last):
  File "sparse_test.py", line 5, in ?
    A_csc = s.csc_matrix((3,3),dtype=complex256)
NameError: name 'complex256' is not defined

on a 32bit system.

Nils




More information about the SciPy-User mailing list