MCPcopy Create free account
hub / github.com/numpy/numpy / f

Method f

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

Source from the content-addressed store, hash-verified

1519 # Test vectorizing function with no positional args.
1520 @vectorize
1521 def f(**kw):
1522 res = 1.0
1523 for _k in kw:
1524 res *= kw[_k]
1525 return res
1526
1527 assert_array_equal(f(a=[1, 2], b=[3, 4]), [3, 8])
1528

Callers 1

test_frompyfunc_leaksMethod · 0.45

Calls 1

prodMethod · 0.45

Tested by

no test coverage detected