I have been cracking my head at achieving something very simple in C in order to make my one of the programs (not written by me) in our computational physics project more dy
An implementation might be to loop over all the elements and set a flag when a difference is detected
int i, N; int is_equal = 1; for (i=1; i