braincore.math.tree_zeros_like

braincore.math.tree_zeros_like#

braincore.math.tree_zeros_like(tree)#

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

Parameters:

tree – The input tree.

Returns:

The tree with zeros in each leaf.