[SciPy-user] problem using umfpack.lu()

Nathan Bell wnbell@gmail....
Sun Dec 21 06:46:23 CST 2008


On Sat, Dec 20, 2008 at 1:03 PM, Giampaolo Cuoghi <jpaul74@gmail.com> wrote:
>
> I'm trying to solve the problem of compute the determinant of a sparse
> matrix, as I've written in the previous mail.
>
> I find that the LU decomposition can be useful for this task but when I
> use umfpack.lu(A) for A complex sparse matrix, this error appears:
>
> "matrix must have float64 values"
>
> If A is a real matrix no error appears.
>
> Can someone help me?
>

Giampaolo, you should convert A to the float64 type first:

umfpack.lu(A.astype('float64'))

-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the SciPy-user mailing list