1
function sol=chsolve(spcho,rhs)
2
// Cholesky solver for A*sol=rhs (A is symmetric >0)
3
// 1rst step: spcho=chfact(A)
4
// 2nd step: sol=chsolve(spcho,rhs)
5
// Example: N=20; A=sprand(N,N,0.1);
7
// sol=(1:N)'; rhs=A*sol;
8
// spcho=chfact(A); sol=chsolve(spcho,rhs)
10
sol=blkslv(spcho,rhs(perm));