#include "MSBVARcpp.h" extern "C" { SEXP listElt(SEXP list, const char* str) { R_len_t i; SEXP elmt=R_NilValue, names=getAttrib(list, R_NamesSymbol); for (i=0; i fabs(y)){z = fabs(x)*sqrt(1+(y/x)*(y/x));} else if (y!=0){z = fabs(y)*sqrt(1+(x/y)*(x/y));} else {z = 0.0;} return z; } // void rm2cm_double(double *m, int nr, int nc) // { for(int i=0;i