MCPcopy Index your code
hub / github.com/numpy/numpy / f

Method f

numpy/lib/tests/test_function_base.py:1740–1744  ·  view source on GitHub ↗
(**kw)

Source from the content-addressed store, hash-verified

1738 # Test vectorizing function with no positional args.
1739 @vectorize
1740 def f(**kw):
1741 res = 1.0
1742 for _k in kw:
1743 res *= kw[_k]
1744 return res
1745
1746 assert_array_equal(f(a=[1, 2], b=[3, 4]), [3, 8])
1747

Callers 1

test_frompyfunc_leaksMethod · 0.45

Calls 1

prodMethod · 0.45

Tested by

no test coverage detected