cs_pvec.c
Go to the documentation of this file.
1 #include "cs.h"
2 /* x = b(p), for dense vectors x and b; p=NULL denotes identity */
3 int cs_pvec (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 [k] = b [p ? p [k] : k] ;
8  return (1) ;
9 }
int cs_pvec(const int *p, const double *b, double *x, int n)
Definition: cs_pvec.c:3


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