sizeBA = 2*no_of_states + no_of_inputs; BigE = (double*) malloc (sizeBA*sizeBA*sizeof(double)); BigA = (double*) malloc (sizeBA*sizeBA*sizeof(double)); /*Setup BigE*/ deyea(BigE,sizeBA,sizeBA); for(row = no_of_states*2; row