The Ninth and Tenth tasks are done
This commit is contained in:
parent
5a81ed3cd8
commit
62be214e9d
26 changed files with 1338 additions and 0 deletions
15
2025.03.07/10Ex/solve.c
Normal file
15
2025.03.07/10Ex/solve.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "solve.h"
|
||||
#include "math.h"
|
||||
|
||||
void matrix_multiply(const double *A, const double *B, double *c, int n, int m, int l)
|
||||
{
|
||||
int i, j, k, index;
|
||||
for (i = 0; i < n; i++)
|
||||
for (j = 0; j < l; j++)
|
||||
{
|
||||
index = i * l + j;
|
||||
c[index] = 0;
|
||||
for (k = 0; k < m; k++)
|
||||
c[index] += A[i * m + k] * B[k * l + j];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue