enumerate_tree.hpp File Reference

Go to the source code of this file.

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::tree
 
Trees and tree-building procedures.
 
 mlpack::tree::enumerate
 

Functions

template
<
class
TreeType
,
class
Walker
>
void EnumerateTree (TreeType *tree, Walker &walker)
 Traverses all nodes of the tree, including the inner ones. More...

 
template
<
class
TreeType
,
class
Walker
>
void EnumerateTreeImpl (TreeType *tree, Walker &walker, bool root)
 

Detailed Description

Author
Ivan (Jonan) Georgiev

This file contains function that performs a simple depth-first walk on the tree calling Enter and Leave methods of a provided walker.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file enumerate_tree.hpp.