Help Please :(

#include <stdio.h>
#include <stdlib.h>
#include <math.h>


void mat_vec(double* a, double* x, double* y, int n)
{

int i,j;

for(i=0;i<n;i++){
y[i]=0.0;
for(j=0;j<n;j++){
y[i]+=a[i+n*j]*x[j];
}
}

}
I have to change this codes to reduce openning time,I have tried OpenMp parallel programming but i did not do it , could you help me to reduce openning time? thanks

Last edited on
1 - Use code blocks when you post code. (The icon that look like '<>' to the right.)

2 - Is this all of your code?
Topic archived. No new replies allowed.