def _check_input_size(n_components, n_features):
 if (n_components <= 0):
  raise ValueError(('n_components must be strictly positive, got %d' % n_components))
 if (n_features <= 0):
  raise ValueError(('n_features must be strictly positive, got %d' % n_components))

def _check_input_size ( n_components , n_features ) : if ( n_components <= 0 ) : raise ValueError ( ( 'n_components must be strictly positive, got %d' % n_components ) ) if ( n_features <= 0 ) : raise ValueError ( ( 'n_features must be strictly positive, got %d' % n_components ) )
factorize argument checking for random matrix generation .