for (int imeas=0; imeas<O815->comargs.nmeas; imeas++) {
gsl_matrix_complex_memcpy (tmpmatrix, totalval);
gsl_matrix_complex_sub (tmpmatrix, measurements[imeas][itsep]);
for (int imeas=0; imeas<O815->comargs.nmeas; imeas++) {
gsl_matrix_complex_memcpy (tmpmatrix, totalval);
gsl_matrix_complex_sub (tmpmatrix, measurements[imeas][itsep]);