parameters: (*args)
docstring: Generalized product
docstring_summary: Generalized product
docstring_tokens: Generalized product
function: def _mul(*args):
      """Generalized product"""
      assert len(args) > 0,"mul needs at least one argument"
      if len(args) == 2:
          return np.multiply(args[0],args[1])
      elif len(args) > 2:
          return np.multiply(args[0],_mul(*args[1:]))
      else:
          return args[0]
function_tokens: def _mul ( * args ) : assert len ( args ) > 0 , "mul needs at least one argument" if len ( args ) == 2 : return np . multiply ( args [ 0 ] , args [ 1 ] ) elif len ( args ) > 2 : return np . multiply ( args [ 0 ] , _mul ( * args [ 1 : ] ) ) else : return args [ 0 ]