Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to do matrix multiplication in c

double[][] c = new double[N][N];
for (int i = 0; i < N; i++)
{
 for (int j = 0; j < N; j++)
 	{
 for (int k = 0; k < N; k++)
 		{
		 c[i][j] += a[i][k] * b[k][j];
 		}
 	}
}
 
PREVIOUS NEXT
Tagged: #matrix #multiplication
ADD COMMENT
Topic
Name
1+7 =