WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
expression_graph.hpp File Reference
#include <ranges>
#include <gch/small_vector.hpp>
#include "sleipnir/autodiff/expression.hpp"

Go to the source code of this file.

Namespaces

namespace  slp
 
namespace  slp::detail
 

Functions

gch::small_vector< Expression * > slp::detail::topological_sort (const ExpressionPtr &root)
 Generate a topological sort of an expression graph from parent to child.
 
void slp::detail::update_values (const gch::small_vector< Expression * > &list)
 Update the values of all nodes in this graph based on the values of their dependent nodes.