|
akreon-convex
Typed convex modeling, conic canonicalization, and primal-dual optimization in C++26.
|
weighted sum (AKA Dot) More...
#include <weighted_sum.hpp>
Public Types | |
| using | T = linalg::space_type_t< Space > |
| type | |
| using | Vec = linalg::Vector< T, N > |
| vec type for q | |
Public Member Functions | |
| template<AtomLike Var> | |
| constexpr auto | operator() (const Vec &q, const Var &x) |
| operator overload | |
Static Public Attributes | |
| static constexpr std::size_t | N = linalg::space_dim_v<Space> |
weighted sum (AKA Dot)
f(x) = q^T x
Definition at line 19 of file weighted_sum.hpp.
| using convex::WeightedSum< Space >::T = linalg::space_type_t<Space> |
type
Definition at line 21 of file weighted_sum.hpp.
| using convex::WeightedSum< Space >::Vec = linalg::Vector<T, N> |
vec type for q
Definition at line 25 of file weighted_sum.hpp.
|
inlineconstexpr |
operator overload
| q | in R^n |
| x | in R^n (var) |
Definition at line 36 of file weighted_sum.hpp.
References convex::dom_size_v.
|
staticconstexpr |
Definition at line 22 of file weighted_sum.hpp.