|
akreon-convex
Typed convex modeling, conic canonicalization, and primal-dual optimization in C++26.
|
#include <trace.hpp>
Public Types | |
| using | T = linalg::space_type_t< Space > |
| alias and type extractions | |
| using | Vec = linalg::Vector< T, N > |
Public Member Functions | |
| template<AtomLike Var> | |
| constexpr auto | operator() (const Var &X) const |
| operator overload | |
Static Public Member Functions | |
| static constexpr auto | weights () |
Static Public Attributes | |
| static constexpr std::size_t | N = linalg::space_dim_v<Space> |
Trace objective.
Forms Tr(X) as a linear objective over either a full square matrix variable or a symmetric-matrix variable encoded with svec ordering.
| using convex::Trace< Space >::T = linalg::space_type_t<Space> |
| using convex::Trace< Space >::Vec = linalg::Vector<T, N> |
|
inlineconstexpr |
operator overload
| X | (Var) |
Definition at line 76 of file trace.hpp.
References convex::dom_size_v, and convex::Trace< Space >::weights().
|
inlinestaticconstexpr |
Definition at line 66 of file trace.hpp.
Referenced by convex::make_trace_block(), and convex::Trace< Space >::operator()().
|
staticconstexpr |