proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
identity.hpp
Go to the documentation of this file.
1//
2// Copyright (c) 2022 INRIA
3//
6#ifndef PROXSUITE_PROXQP_SPARSE_PRECOND_IDENTITY_HPP
7#define PROXSUITE_PROXQP_SPARSE_PRECOND_IDENTITY_HPP
8
9namespace proxsuite {
10namespace proxqp {
11namespace sparse {
12namespace preconditioner {
13
14template<typename T, typename I>
16{
17
19 isize /*n*/,
20 isize /*n_eq*/,
21 isize /*n_in*/)
23 {
24 return { 0, 1 };
25 }
26
32
33 // modifies variables in place
36
39
42
44
46 // modifies residuals in place
48
56};
57
58} // namespace preconditioner
59
60} // namespace sparse
61} // namespace proxqp
62} // namespace proxsuite
63
64#endif /* end of include guard PROXSUITE_PROXQP_SPARSE_PRECOND_IDENTITY_HPP */
void scale_primal_residual_in_place(VectorViewMut< T >)
Definition identity.hpp:47
void unscale_primal_residual_in_place_in(VectorViewMut< T >)
Definition identity.hpp:54
void unscale_primal_residual_in_place_eq(VectorViewMut< T >)
Definition identity.hpp:53
static auto scale_qp_in_place_req(proxsuite::linalg::veg::Tag< T >, isize, isize, isize) -> proxsuite::linalg::veg::dynstack::StackReq
Definition identity.hpp:18
void unscale_dual_residual_in_place(VectorViewMut< T >)
Definition identity.hpp:55
void scale_qp_in_place(QpViewMut< T, I >, proxsuite::linalg::veg::dynstack::DynStackMut)
Definition identity.hpp:27
void scale_dual_residual_in_place(VectorViewMut< T >)
Definition identity.hpp:51
void scale_primal_residual_in_place_in(VectorViewMut< T >)
Definition identity.hpp:50
void scale_primal_residual_in_place_eq(VectorViewMut< T >)
Definition identity.hpp:49
void unscale_primal_residual_in_place(VectorViewMut< T >)
Definition identity.hpp:52