braincore.math.tree_ones_like

Contents

braincore.math.tree_ones_like#

braincore.math.tree_ones_like(tree)#

Create a tree with the same structure as the input tree, but with ones in each leaf.

Parameters:

tree – The input tree.

Returns:

The tree with ones in each leaf.