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

Method args

src/python/py_kernel.rs:49–57  ·  view source on GitHub ↗
(&self, names: Vec<String>)

Source from the content-addressed store, hash-verified

47 /// Create multiple named argument expressions.
48 #[pyo3(signature = (*names))]
49 fn args(&self, names: Vec<String>) -> Vec<PyExpr> {
50 names
51 .into_iter()
52 .map(|name| {
53 let temp_id = next_temp_id();
54 PyExpr::named(Expr::ArgRef(temp_id), name, temp_id)
55 })
56 .collect()
57 }
58
59 /// Create an elementwise kernel from an expression.
60 /// Performs dense reindexing: `temp_ids` are mapped to 0, 1, 2, ... in sorted order.

Callers 2

args_all_unique_temp_idsFunction · 0.45

Calls 2

next_temp_idFunction · 0.85
mapMethod · 0.45

Tested by 2

args_all_unique_temp_idsFunction · 0.36