Browse Source

Update filterMARP.c

master
mtzikara 6 years ago
committed by GitHub
parent
commit
754ff34d0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      filterMARP.c

9
filterMARP.c

@ -57,7 +57,14 @@ float** filterMARP(int** A, float* x, float e, int max_iterations, float a, int
float* compy(int** Acn, float* x, int size){ //Acn*x pollaplasiasmos float* compy(int** Acn, float* x, int size){ //Acn*x pollaplasiasmos
float* y; float* y;
y = malloc(size*sizeof(float));
int i,j;
for(i=0; i<size; i++){
for(j=0; j<size; j++){
y[i] += Acn[i][j]*x[j];
}
}
return y;
} }
void filterA(int** A, int** Ann, int** Acn, int* C_new, int* N_new, int size){ void filterA(int** A, int** Ann, int** Acn, int* C_new, int* N_new, int size){

Loading…
Cancel
Save