proxsuite
0.7.3
The Advanced Proximal Optimization Toolbox
Toggle main menu visibility
Loading...
Searching...
No Matches
views.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2022 INRIA
3
//
5
6
#ifndef PROXSUITE_PROXQP_SPARSE_VIEWS_HPP
7
#define PROXSUITE_PROXQP_SPARSE_VIEWS_HPP
8
9
#include <
proxsuite/linalg/dense/core.hpp
>
10
#include <
proxsuite/linalg/sparse/core.hpp
>
11
#include <
proxsuite/linalg/sparse/factorize.hpp
>
12
#include <
proxsuite/linalg/sparse/update.hpp
>
13
#include <
proxsuite/linalg/sparse/rowmod.hpp
>
14
#include <
proxsuite/proxqp/dense/views.hpp
>
15
#include <
proxsuite/proxqp/settings.hpp
>
16
#include <
proxsuite/linalg/veg/vec.hpp
>
17
#include "
proxsuite/proxqp/sparse/model.hpp
"
18
#include "
proxsuite/proxqp/results.hpp
"
19
20
#include <Eigen/IterativeLinearSolvers>
21
#include <unsupported/Eigen/IterativeSolvers>
22
23
namespace
proxsuite
{
24
namespace
proxqp
{
25
namespace
sparse
{
26
27
template
<
typename
T,
typename
I>
28
struct
QpView
29
{
30
proxsuite::linalg::sparse::MatRef<T, I>
H
;
31
proxsuite::linalg::sparse::DenseVecRef<T>
g
;
32
proxsuite::linalg::sparse::MatRef<T, I>
AT
;
33
proxsuite::linalg::sparse::DenseVecRef<T>
b
;
34
proxsuite::linalg::sparse::MatRef<T, I>
CT
;
35
proxsuite::linalg::sparse::DenseVecRef<T>
l
;
36
proxsuite::linalg::sparse::DenseVecRef<T>
u
;
37
};
38
39
template
<
typename
T,
typename
I>
40
struct
QpViewMut
41
{
42
proxsuite::linalg::sparse::MatMut<T, I>
H
;
43
proxsuite::linalg::sparse::DenseVecMut<T>
g
;
44
proxsuite::linalg::sparse::MatMut<T, I>
AT
;
45
proxsuite::linalg::sparse::DenseVecMut<T>
b
;
46
proxsuite::linalg::sparse::MatMut<T, I>
CT
;
47
proxsuite::linalg::sparse::DenseVecMut<T>
l
;
48
proxsuite::linalg::sparse::DenseVecMut<T>
u
;
49
50
auto
as_const
() noexcept ->
QpView
<T, I>
51
{
52
return
{
53
H
.as_const(),
g
.as_const(),
AT
.as_const(),
b
.as_const(),
54
CT
.as_const(),
l
.as_const(),
u
.as_const(),
55
};
56
}
57
};
58
59
}
// namespace sparse
60
}
// namespace proxqp
61
}
// namespace proxsuite
62
63
#endif
/* end of include guard PROXSUITE_PROXQP_SPARSE_VIEWS_HPP */
core.hpp
views.hpp
proxsuite::proxqp::sparse
Definition
qp_solve.hpp:141
proxsuite::proxqp
Definition
backward_data.hpp:16
proxsuite
Definition
common.hpp:14
results.hpp
settings.hpp
model.hpp
rowmod.hpp
core.hpp
factorize.hpp
update.hpp
proxsuite::linalg::sparse::DenseVecMut
Definition
core.hpp:169
proxsuite::linalg::sparse::DenseVecRef
Definition
core.hpp:126
proxsuite::linalg::sparse::MatMut
Definition
core.hpp:445
proxsuite::linalg::sparse::MatRef
Definition
core.hpp:384
proxsuite::proxqp::sparse::QpViewMut
Definition
views.hpp:41
proxsuite::proxqp::sparse::QpViewMut::b
proxsuite::linalg::sparse::DenseVecMut< T > b
Definition
views.hpp:45
proxsuite::proxqp::sparse::QpViewMut::u
proxsuite::linalg::sparse::DenseVecMut< T > u
Definition
views.hpp:48
proxsuite::proxqp::sparse::QpViewMut::l
proxsuite::linalg::sparse::DenseVecMut< T > l
Definition
views.hpp:47
proxsuite::proxqp::sparse::QpViewMut::CT
proxsuite::linalg::sparse::MatMut< T, I > CT
Definition
views.hpp:46
proxsuite::proxqp::sparse::QpViewMut::g
proxsuite::linalg::sparse::DenseVecMut< T > g
Definition
views.hpp:43
proxsuite::proxqp::sparse::QpViewMut::AT
proxsuite::linalg::sparse::MatMut< T, I > AT
Definition
views.hpp:44
proxsuite::proxqp::sparse::QpViewMut::as_const
auto as_const() noexcept -> QpView< T, I >
Definition
views.hpp:50
proxsuite::proxqp::sparse::QpViewMut::H
proxsuite::linalg::sparse::MatMut< T, I > H
Definition
views.hpp:42
proxsuite::proxqp::sparse::QpView
Definition
views.hpp:29
proxsuite::proxqp::sparse::QpView::u
proxsuite::linalg::sparse::DenseVecRef< T > u
Definition
views.hpp:36
proxsuite::proxqp::sparse::QpView::AT
proxsuite::linalg::sparse::MatRef< T, I > AT
Definition
views.hpp:32
proxsuite::proxqp::sparse::QpView::b
proxsuite::linalg::sparse::DenseVecRef< T > b
Definition
views.hpp:33
proxsuite::proxqp::sparse::QpView::g
proxsuite::linalg::sparse::DenseVecRef< T > g
Definition
views.hpp:31
proxsuite::proxqp::sparse::QpView::CT
proxsuite::linalg::sparse::MatRef< T, I > CT
Definition
views.hpp:34
proxsuite::proxqp::sparse::QpView::H
proxsuite::linalg::sparse::MatRef< T, I > H
Definition
views.hpp:30
proxsuite::proxqp::sparse::QpView::l
proxsuite::linalg::sparse::DenseVecRef< T > l
Definition
views.hpp:35
vec.hpp
include
proxsuite
proxqp
sparse
views.hpp
Generated by
1.17.0