element_51.wrapΒΆ

Turn the functions of a module into node types with one call.

Module Attributes

INPUT_KINDS

The loops a ufunc node can use, by the numpy name of each input's type.

OUTPUT_KINDS

The port type of a loop's output, by numpy's one-letter kind.

PLAIN

Turn a number into the plain Python value of a port type.

Functions

nodes_from_module(module[, category])

Make a node type from every fitting function of a module.

nodes_from_ufuncs(namespace[, category])

Make a node type from every numpy ufunc in a namespace.

Classes

Scan(*, nodes, skipped)

What a scan found: the node types, and the functions it skipped.

Skipped(*, name, reason)

A function the scan left out, and why.

Ufunc(*args, **kwargs)

What the scan reads from a numpy ufunc (numpy is loaded on first use).

UfuncNode(ufunc, node_type, output_model)

A numpy ufunc as a node: one input per argument, one output per result.

UfuncOutputs(**extra_data)

The outputs of a ufunc with more than one: out1, out2, ...