Check automatically if any NaNs are present in matrix. If so, raise exception with description.
Check automatically if any NaNs are present in matrix. If so, raise exception with description.