Return the quadratic form \( B^T A B \).
This overload handles arguments where one of Mat or Vec are var_value<T> where T is an Eigen type. The other type can also be a var_value, or it can be a type that inherits from EigenBase
- Template Parameters
-
| Mat | type of the matrix |
| Vec | type of the vector |
- Parameters
-
| A | square matrix |
| B | vector |
| symmetric | indicates whether the output should be made symmetric |
- Returns
- The quadratic form (a scalar).
- Exceptions
-
| std::invalid_argument | if A is not square, or if A cannot be multiplied by B |
Definition at line 336 of file quad_form.hpp.