Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Oct 10, 2024
1 parent 9f6b751 commit 1348ab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pybind/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ except Exception as e:
return {std::move(solution), std::move(exception_message)};
}

/// \brief A blunt instrument that differentiates expression w.r.t. variable
/// \return The tuple (solution, exception)
std::tuple<std::string, std::string> call_diff2c(
const std::string& expression,
const std::string& variable,
Expand Down
6 changes: 6 additions & 0 deletions src/pybind/wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ std::tuple<std::string, std::string> call_analytic_diff(
const std::vector<std::string>& expressions,
const std::set<std::string>& used_names_in_block);


/// \brief Differentiates an expression with respect to a variable
/// \param expression The expression we want to differentiate
/// \param variable The name of the independent variable we are differentiating against
/// \param index_vars A map of array (indexable) variables (and their associated indices) that
/// appear in \ref expression \return The tuple (solution, exception)
std::tuple<std::string, std::string> call_diff2c(
const std::string& expression,
const std::string& variable,
Expand Down

0 comments on commit 1348ab9

Please sign in to comment.