//ALGORITHM 6 //p_1 is period 1, p_2 is period 2 in no. of iterations float** filterMARP(int** A, float* x, float e, int max_iterations, float a, int p_1, int p_2, int size){ float* x_new, x_c, y; int count = 0; float norm = 1.0; int* N, C, N_new, C_new; int** Ann, Acn; int i; /*********** ...malloc... *************/ x_new = malloc(size*sizeof(float)); x_c = malloc(size*sizeof(float)); y = malloc(size*sizeof(float)); N = malloc(size*sizeof(int)); C = malloc(size*sizeof(int)); N_new = malloc(size*sizeof(int)); C_new = malloc(size*sizeof(int)); Ann = malloc(size*sizeof(int *)); for(i=0; i