Displaying 2 results from an estimated 2 matches for "pq_vect".
2004 Feb 18
0
return a list of vectors from C?
...will perform the same tasks as the previous */
/* and return a list of the values rather than just the */
/* optimal values. It should return the optimization info as */
/* well as the residual values from the flikam function */
SEXP testfunc2(
SEXP *pq,
SEXP *obs )
{
int i;
double *pq_vect;
double *obs_vect;
SEXP ret_val;
PROTECT( pq = coerceVector( pq, REALSXP ) );
PROTECT( obs = coerceVector( obs, REALSXP ) );
pq_vect = REAL( pq );
obs_vect = REAL( obs );
/* call my functions for the results */
/* generate the output list */
PROTECT( ret_val = all...
2004 Feb 18
0
return a list of vectors from C?
...will perform the same tasks as the previous */
/* and return a list of the values rather than just the */
/* optimal values. It should return the optimization info as */
/* well as the residual values from the flikam function */
SEXP testfunc2(
SEXP *pq,
SEXP *obs )
{
int i;
double *pq_vect;
double *obs_vect;
SEXP ret_val;
PROTECT( pq = coerceVector( pq, REALSXP ) );
PROTECT( obs = coerceVector( obs, REALSXP ) );
pq_vect = REAL( pq );
obs_vect = REAL( obs );
/* call my functions for the results */
/* generate the output list */
PROTECT( ret_val = all...