#include "header.h" int main(void) { Matrix A; Vector v, *pv; gsl_vector_float gsl_v; gsl_matrix_float gsl_A; /* My fancy timer thing */ struct timeval starttime, endtime; gsl_vector_float x; /* TODO: how do I make a function like scanf where I * specify the returned value in the arguments? */ printf("Here\n"); mcreator(&A); pv = (Vector *) vcreator(); printf("There\n"); /* check input was read correctly */ // vreader(pv); printf("Here\n"); mreader(&A); printf("Not Here\n"); /* convert to gsl structures */ // mconvert(*pA, &gsl_A); // vconvert(*pv, &gsl_v); /* make up vector */ x.size = v.n; x.stride = 1; x.data = v.p; // x.block = v.p; x.owner = 1; gettimeofday(&starttime, NULL); // start timer // gsl_vector_float_fprintf(stdout, &x, "%f"); gettimeofday(&endtime, NULL); // end timer printf("runtime = %f milliseconds\n", (endtime.tv_usec - starttime.tv_usec)/1000.0); return EXIT_SUCCESS; }