Sleipnir C++ API
|
#include <sleipnir/autodiff/Variable.hpp>
Public Member Functions | |
EqualityConstraints (std::initializer_list< EqualityConstraints > equalityConstraints) | |
EqualityConstraints (const std::vector< EqualityConstraints > &equalityConstraints) | |
template<typename LHS , typename RHS > requires (ScalarLike<std::decay_t<LHS>> || MatrixLike<std::decay_t<LHS>>) && (ScalarLike<std::decay_t<RHS>> || MatrixLike<std::decay_t<RHS>>) && (!std::same_as<std::decay_t<LHS>, double> || !std::same_as<std::decay_t<RHS>, double>) | |
EqualityConstraints (LHS &&lhs, RHS &&rhs) | |
operator bool () | |
Public Attributes | |
small_vector< Variable > | constraints |
A vector of scalar equality constraints. | |
A vector of equality constraints of the form cₑ(x) = 0.
|
inline |
Concatenates multiple equality constraints.
equalityConstraints | The list of EqualityConstraints to concatenate. |
|
inlineexplicit |
Concatenates multiple equality constraints.
This overload is for Python bindings only.
equalityConstraints | The list of EqualityConstraints to concatenate. |
|
inline |
Constructs an equality constraint from a left and right side.
The standard form for equality constraints is c(x) = 0. This function takes a constraint of the form lhs = rhs and converts it to lhs - rhs = 0.
lhs | Left-hand side. |
rhs | Right-hand side. |
|
inline |
Implicit conversion operator to bool.
small_vector<Variable> sleipnir::EqualityConstraints::constraints |
A vector of scalar equality constraints.