17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}<br />

2.7 Sparse Linear Systems 89<br />

void dsprstx(double sa[], unsigned long ija[], double x[], double b[],<br />

unsigned long n);<br />

These are double versions of sprsax and sprstx.<br />

if (itrnsp) dsprstx(sa,ija,x,r,n);<br />

else dsprsax(sa,ija,x,r,n);<br />

extern unsigned long ija[];<br />

extern double sa[]; The matrix is stored somewhere.<br />

void asolve(unsigned long n, double b[], double x[], int itrnsp)<br />

{<br />

unsigned long i;<br />

}<br />

for(i=1;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!