cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Help Please :(
Help Please :(
May 22, 2014 at 5:35pm UTC
seaman61
(1)
#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
May 22, 2014 at 5:40pm UTC
May 22, 2014 at 10:37pm UTC
Yay295
(431)
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.