proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::proxqp::sparse::BatchQP< T, I > Struct Template Reference

#include <proxsuite/proxqp/sparse/wrapper.hpp>

Collaboration diagram for proxsuite::proxqp::sparse::BatchQP< T, I >:
[legend]

Public Member Functions

 BatchQP (long unsigned int batchSize)
 
QP< T, I > & init_qp_in_place (sparse::isize dim, sparse::isize n_eq, sparse::isize n_in)
 
void insert (QP< T, I > &qp)
 
QP< T, I > & get (isize i)
 
const QP< T, I > & get (isize i) const
 
QP< T, I > & operator[] (isize i)
 
const QP< T, I > & operator[] (isize i) const
 
sparse::isize size ()
 

Public Attributes

std::vector< QP< T, I > > qp_vector
 
sparse::isize m_size
 

Detailed Description

template<typename T, typename I>
struct proxsuite::proxqp::sparse::BatchQP< T, I >

Definition at line 800 of file wrapper.hpp.

Constructor & Destructor Documentation

◆ BatchQP()

template<typename T , typename I >
proxsuite::proxqp::sparse::BatchQP< T, I >::BatchQP ( long unsigned int batchSize)
inline

Definition at line 809 of file wrapper.hpp.

Member Function Documentation

◆ init_qp_in_place()

template<typename T , typename I >
QP< T, I > & proxsuite::proxqp::sparse::BatchQP< T, I >::init_qp_in_place ( sparse::isize dim,
sparse::isize n_eq,
sparse::isize n_in )
inline

Init a QP in place and return a reference to it

Definition at line 821 of file wrapper.hpp.

◆ insert()

template<typename T , typename I >
void proxsuite::proxqp::sparse::BatchQP< T, I >::insert ( QP< T, I > & qp)
inline
    Init a QP in place and return a reference to it
   &zwj;/

QP<T, I>& init_qp_in_place(const sparse::SparseMat<bool, I>& H, const sparse::SparseMat<bool, I>& A, const sparse::SparseMat<bool, I>& C) { qp_vector.emplace_back(H.rows(), A.rows(), C.rows()); auto& qp = qp_vector.back(); m_size++; return qp; };

/*! Inserts a qp to the end of qp_vector

Definition at line 847 of file wrapper.hpp.

◆ get() [1/2]

template<typename T , typename I >
QP< T, I > & proxsuite::proxqp::sparse::BatchQP< T, I >::get ( isize i)
inline

Access QP at position i

Definition at line 852 of file wrapper.hpp.

◆ get() [2/2]

template<typename T , typename I >
const QP< T, I > & proxsuite::proxqp::sparse::BatchQP< T, I >::get ( isize i) const
inline

Access QP at position i

Definition at line 857 of file wrapper.hpp.

◆ operator[]() [1/2]

template<typename T , typename I >
QP< T, I > & proxsuite::proxqp::sparse::BatchQP< T, I >::operator[] ( isize i)
inline

Access QP at position i

Definition at line 862 of file wrapper.hpp.

◆ operator[]() [2/2]

template<typename T , typename I >
const QP< T, I > & proxsuite::proxqp::sparse::BatchQP< T, I >::operator[] ( isize i) const
inline

Access QP at position i

Definition at line 867 of file wrapper.hpp.

◆ size()

template<typename T , typename I >
sparse::isize proxsuite::proxqp::sparse::BatchQP< T, I >::size ( )
inline

Definition at line 869 of file wrapper.hpp.

Member Data Documentation

◆ qp_vector

template<typename T , typename I >
std::vector<QP<T, I> > proxsuite::proxqp::sparse::BatchQP< T, I >::qp_vector

A vector of QP aligned of size BatchSize specified by the user.

Definition at line 806 of file wrapper.hpp.

◆ m_size

template<typename T , typename I >
sparse::isize proxsuite::proxqp::sparse::BatchQP< T, I >::m_size

Definition at line 807 of file wrapper.hpp.


The documentation for this struct was generated from the following file: