def _check_precision_positivity(precision, covariance_type):
 if np.any(np.less_equal(precision, 0.0)):
  raise ValueError(("'%s precision' should be positive" % covariance_type))

def _check_precision_positivity ( precision , covariance_type ) : if np . any ( np . less_equal ( precision , 0.0 ) ) : raise ValueError ( ( "'%s precision' should be positive" % covariance_type ) )
check a precision vector is positive-definite .