Template Struct BatchQP

Struct Documentation

template<typename T, typename I>
struct BatchQP

Public Functions

inline BatchQP(long unsigned int batchSize)
inline QP<T, I> &init_qp_in_place(sparse::isize dim, sparse::isize n_eq, sparse::isize n_in)

Init a QP in place and return a reference to it

inline void insert(QP<T, I> &qp)

    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) { vector_qp.emplace_back(H.rows(), A.rows(), C.rows()); auto& qp = vector_qp.back(); m_size++; return qp; };

/*! Inserts a qp to the end of vector_qp

inline QP<T, I> &get(isize i)

Access qp at position i

inline QP<T, I> &operator[](isize i)

Access qp at position i

inline sparse::isize size()

Public Members

std::vector<QP<T, I>> vector_qp

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

sparse::isize m_size