WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
ExpressionType.hpp
Go to the documentation of this file.
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
5#include <stdint.h>
6
7namespace sleipnir {
8
9/**
10 * Expression type.
11 *
12 * Used for autodiff caching.
13 */
14enum class ExpressionType : uint8_t {
15 /// There is no expression.
16 kNone,
17 /// The expression is a constant.
19 /// The expression is composed of linear and lower-order operators.
20 kLinear,
21 /// The expression is composed of quadratic and lower-order operators.
23 /// The expression is composed of nonlinear and lower-order operators.
25};
26
27} // namespace sleipnir
Definition Hessian.hpp:18
ExpressionType
Expression type.
Definition ExpressionType.hpp:14
@ kConstant
The expression is a constant.
@ kNone
There is no expression.
@ kLinear
The expression is composed of linear and lower-order operators.
@ kNonlinear
The expression is composed of nonlinear and lower-order operators.
@ kQuadratic
The expression is composed of quadratic and lower-order operators.