MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / elementwise_single_arg

Function elementwise_single_arg

src/python/py_kernel.rs:415–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413
414 #[test]
415 fn elementwise_single_arg() {
416 let km = PyKernelModule::new();
417 let x = km.arg("x");
418 let expr = PyExpr::unary_with_temp_args(UnaryOp::Neg, &x.inner, &x.temp_args);
419 let spec = km.elementwise(expr).unwrap();
420 assert_eq!(spec.inner.args.len(), 1);
421 assert_eq!(spec.inner.args[0].name, "x");
422 assert_eq!(spec.inner.expr.referenced_args(), vec![0]);
423 }
424
425 #[test]
426 fn elementwise_dedup_same_arg() {

Callers

nothing calls this directly

Calls 2

argMethod · 0.45
elementwiseMethod · 0.45

Tested by

no test coverage detected