This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
Tree "broadcasting" #199
Closed
Description
Currently you can perform arithmetic with datatrees, e.g. dt + dt
. (In fact the current implementation lets you apply arbitrary operations on n trees that return 1 to n new trees, see map_over_subtree
.)
However currently these trees must have the same structure of nodes (i.e. be "isomorphic").
It would be useful to generalise tree operations to handle trees of different structure. I'm going to call this "tree broadcasting" (not to be confused with array broadcasting).
I think this is the biggest unsolved design question with datatree.