_get_coord_mapping(dims, output, out_indices, numblocks, argpairs, concatenate)
This function handles the high-level logic behind Blockwise graph construction. The output is a tuple containing: The mapping between input and output block coordinates (:None:None:`coord_maps`
), the axes along which to concatenate for each input (:None:None:`concat_axes`
), and the dummy indices needed for broadcasting (:None:None:`dummies`
).
Used by make_blockwise_graph
and Blockwise._cull_dependencies
.
Mapping between each index specified in :None:None:`argpairs`
and the number of output blocks for that index. Corresponds to the Blockwise :None:None:`dims`
attribute.
Corresponds to the Blockwise :None:None:`output`
attribute.
Corresponds to the Blockwise :None:None:`output_indices`
attribute.
Corresponds to the Blockwise :None:None:`numblocks`
attribute.
Corresponds to the Blockwise indices
attribute.
Corresponds to the Blockwise :None:None:`concatenate`
attribute.
Calculate coordinate mapping for graph construction.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them