/*-------------------------------------------------------| | NIST SPARSE BLAS v. 0.9 (Sat Jul 6 14:27:21 EDT 1996) | | | | Authors: | | Karin A. Remington and Roldan Pozo | | National Institute of Standards and Technology | | | | Based on the interface standard proposed in: | | "A Revised Proposal for a Sparse BLAS Toolkit" by | | S. Carney and K. Wu -- University of Minnesota | | M. Heroux and G. Li -- Cray Research | | R. Pozo and K.A. Remington -- NIST | | | | Contact: | | Karin A. Remington, email: kremington@nist.gov | --------------------------------------------------------*/ /* Created: Sat Jul 6 14:30:43 EDT 1996 */ #include "dcscmtsl.h" void CSC_MatTriangSlvLD_CAB_double( const int m, const int n, const double *val, const int *indx, const int *pntrb, const int *pntre, const double *b, const int ldb, double *c, const int ldc, const int ind_base) { int i, j, jb, je; double *pc=c; int l; double z; val-=ind_base; indx-=ind_base; for (l=0;l!=n;l++) for (i=0;i!=m;i++){ *pc = b[i]; pc++; } c-=ind_base; for (l=0;l!=n;l++) { pc=c+ind_base; for (i=0;i!=m;i++) { jb = pntrb[i]; je = pntre[i]; z = pc[i] / val[jb]; pc[i] = z; for (j=jb+1;j