From: evan um on
Hi all,

I am trying to implement back and forward substitution for a sparse complex matrix equation. Unfortunately, MATLAB does not have an internal routine for this job. cs_ltsolve and cs_lsolve of SuiteSparse do not seem to support sparse complex matriices. Could you suggest any other libraries to handle this problem?

In advance, thank you!

Evan
From: Bruno Luong on
"evan um" <evanum(a)gmail.com> wrote in message <ht567r$jt7$1(a)fred.mathworks.com>...
> Hi all,
>
> I am trying to implement back and forward substitution for a sparse complex matrix equation. Unfortunately, MATLAB does not have an internal routine for this job. cs_ltsolve and cs_lsolve of SuiteSparse do not seem to support sparse complex matriices. Could you suggest any other libraries to handle this problem?

Simply use

x = S\rhs

The MLDIVIDE will use forward/backward whenever S is lower/upper triangular. This is documented in the DOC.

Bruno