cs_ipvec.c
Go to the documentation of this file.
1 #include "cs.h"
2 /* x(p) = b, for dense vectors x and b; p=NULL denotes identity */
3 int cs_ipvec (const int *p, const double *b, double *x, int n)
4 {
5  int k ;
6  if (!x || !b) return (0) ; /* check inputs */
7  for (k = 0 ; k < n ; k++) x [p ? p [k] : k] = b [k] ;
8  return (1) ;
9 }
int cs_ipvec(const int *p, const double *b, double *x, int n)
Definition: cs_ipvec.c:3


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:31