Révision 534
Ajouté par Khalid YAZID il y a presque 3 ans
sp4a3_kalman.c | ||
---|---|---|
}
|
||
|
||
void Mul_Mat_Mat(int na,int ma,double A[na][ma], int nb,int mb,double B[nb][mb], double R[na][mb]){
|
||
|
||
int i,j,l;
|
||
if(ma==nb){
|
||
for (int i = 0; i < na; i++){
|
||
for (int j = 0; j < mb; j++){
|
||
R[i][j] = 0;
|
||
for (int l = 0; l < ma; l++){
|
||
R[i][j] += A[i][l] * B[l][j];
|
||
}
|
||
}
|
||
}
|
||
}
|
||
else{
|
||
printf("Dimensions trop grandes\n");
|
||
|
||
}
|
||
}
|
||
|
||
|
Formats disponibles : Unified diff
ajout de la fonction multiplication