WPILibC++ 2027.0.0-alpha-4
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

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