cs_ipvec.c
Go to the documentation of this file.
00001 #include "cs.h"
00002 /* x(p) = b, for dense vectors x and b; p=NULL denotes identity */
00003 int cs_ipvec (const int *p, const double *b, double *x, int n)
00004 {
00005     int k ;
00006     if (!x || !b) return (0) ;                              /* check inputs */
00007     for (k = 0 ; k < n ; k++) x [p ? p [k] : k] = b [k] ;
00008     return (1) ;
00009 }


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Mon Oct 6 2014 00:06:58