V
VijaKhara
Hi all,
Is there any method which can implememt the matrix multiplication
faster than using the formula as we often do by hand?
I am writing the following code and my matrice: one is 3x40000 and the
other one 40000x3.
the program runs too slow:
/*multiply two matrice: xyz_trans * xyz , the output is w 3x3*/
for (i=0;i<3;i++)
{
for (j=0;j<3;j++)
{
w[j]=0;
for (k=0;k<40000;k++)
{
w[j]+=xyz_trans[k]*xyz[k][j];
}
}
}
What is your code when you multiply 2 big matrice? Is there any faster
algorithm? I see MATLAB handles this task so quick.
Thanks
Is there any method which can implememt the matrix multiplication
faster than using the formula as we often do by hand?
I am writing the following code and my matrice: one is 3x40000 and the
other one 40000x3.
the program runs too slow:
/*multiply two matrice: xyz_trans * xyz , the output is w 3x3*/
for (i=0;i<3;i++)
{
for (j=0;j<3;j++)
{
w[j]=0;
for (k=0;k<40000;k++)
{
w[j]+=xyz_trans[k]*xyz[k][j];
}
}
}
What is your code when you multiply 2 big matrice? Is there any faster
algorithm? I see MATLAB handles this task so quick.
Thanks