Hello
pysparse only deals with double precision real numbers. The was a
followup project called pysparse2, implemented with C++ templates that
was intended to support arbitrary matrix element types. Unfortunately
pysparse2 was never completed. So it's just doubles now.
Regards,
Roman
Daniel Wheeler wrote:
> Hi,
>
> As far as I know, I don't believe that pysparse was ever written to
> deal with complex numbers. The original author of the code would
> probably know better. I certainly am not aware that anyone has tried
> making pysparse work with complex numbers. I do hear a lot of
> discussion on the scipy list regarding sparse matrices and complex
> numbers. Scipy sparse matrices almost certainly are fully configured
> to deal with complex numbers so you might want to try that. Cheers
>
> On Sun, Sep 21, 2008 at 10:23 AM, 1 1 <gsh...@gm...> wrote:
>
>> ---------- Forwarded message ----------
>> From: 1 1 <gsh...@gm...>
>> Date: 2008/9/21
>> Subject: Comlpex numbers
>> To: if...@ma...
>>
>>
>> This code:
>> from pysparse import spmatrix
>> print spmatrix.LLMatType # print complex
>> a = spmatrix.ll_mat(1,1)
>> a[0,0]=12j
>> not work. Error: can't conver complex to float.
>> Complex numbers do not work?
>> Thanks.
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Pysparse-users mailing list
>> Pys...@li...
>> https://lists.sourceforge.net/lists/listinfo/pysparse-users
>>
>>
>>
>
>
>
>
|