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

#include <proxsuite/proxqp/dense/views.hpp>

Collaboration diagram for proxsuite::proxqp::MatrixView< T, L >:
[legend]

Public Member Functions

VEG_INLINE MatrixView (FromPtrRowsColsStride, T const *_data, isize _rows, isize _cols, isize _outer_stride) noexcept
 
 VEG_TEMPLATE (typename Mat, requires(LDLT_CONCEPT(eigen_view< Mat, T >) &&eigen::GetLayout< unref< Mat > >::value==L), VEG_INLINE MatrixView,(, FromEigen),(mat, Mat const &)) noexcept
 
VEG_INLINE auto ptr (isize row, isize col) const noexcept -> T const *
 
VEG_INLINE auto operator() (isize row, isize col) const noexcept -> T const &
 
VEG_INLINE auto block (isize row, isize col, isize nrows, isize ncols) const noexcept -> MatrixView
 
VEG_INLINE auto col (isize c) const noexcept -> proxsuite::linalg::veg::meta::if_t<(L==colmajor), VectorView< T >, StridedVectorView< T > >
 
VEG_INLINE auto row (isize r) const noexcept -> proxsuite::linalg::veg::meta::if_t<(L==rowmajor), VectorView< T >, StridedVectorView< T > >
 
VEG_INLINE auto trans () const noexcept -> MatrixView< T, proxqp::flip_layout(L)>
 
VEG_INLINE auto to_eigen () const noexcept -> detail::EigenMatMap< T, L >
 

Public Attributes

T const * data
 
isize rows
 
isize cols
 
isize outer_stride
 

Detailed Description

template<typename T, Layout L>
struct proxsuite::proxqp::MatrixView< T, L >

Definition at line 809 of file views.hpp.

Constructor & Destructor Documentation

◆ MatrixView()

template<typename T , Layout L>
VEG_INLINE proxsuite::proxqp::MatrixView< T, L >::MatrixView ( FromPtrRowsColsStride ,
T const * _data,
isize _rows,
isize _cols,
isize _outer_stride )
inlinenoexcept

Definition at line 816 of file views.hpp.

Member Function Documentation

◆ VEG_TEMPLATE()

template<typename T , Layout L>
proxsuite::proxqp::MatrixView< T, L >::VEG_TEMPLATE ( typename Mat ,
requires(LDLT_CONCEPT(eigen_view< Mat, T >) && eigen::GetLayout< unref< Mat > >::value==L) ,
VEG_INLINE MatrixView,
(, FromEigen) ,
(mat, Mat const &)  )
inlinenoexcept

Definition at line 828 of file views.hpp.

◆ ptr()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::ptr ( isize row,
isize col ) const -> T const*
inlinenoexcept

Definition at line 841 of file views.hpp.

◆ operator()()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::operator() ( isize row,
isize col ) const -> T const&
inlinenoexcept

Definition at line 845 of file views.hpp.

◆ block()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::block ( isize row,
isize col,
isize nrows,
isize ncols ) const -> MatrixView
inlinenoexcept

Definition at line 849 of file views.hpp.

◆ col()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::col ( isize c) const -> proxsuite::linalg::veg::meta:: if_t<(L == colmajor), VectorView<T>, StridedVectorView<T>>
inlinenoexcept

Definition at line 887 of file views.hpp.

◆ row()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::row ( isize r) const -> proxsuite::linalg::veg::meta:: if_t<(L == rowmajor), VectorView<T>, StridedVectorView<T>>
inlinenoexcept

Definition at line 893 of file views.hpp.

◆ trans()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::trans ( ) const -> MatrixView<T, proxqp::flip_layout(L)>
inlinenoexcept

Definition at line 899 of file views.hpp.

◆ to_eigen()

template<typename T , Layout L>
VEG_INLINE auto proxsuite::proxqp::MatrixView< T, L >::to_eigen ( ) const -> detail::EigenMatMap<T, L>
inlinenoexcept

Definition at line 906 of file views.hpp.

Member Data Documentation

◆ data

template<typename T , Layout L>
T const* proxsuite::proxqp::MatrixView< T, L >::data

Definition at line 811 of file views.hpp.

◆ rows

template<typename T , Layout L>
isize proxsuite::proxqp::MatrixView< T, L >::rows

Definition at line 812 of file views.hpp.

◆ cols

template<typename T , Layout L>
isize proxsuite::proxqp::MatrixView< T, L >::cols

Definition at line 813 of file views.hpp.

◆ outer_stride

template<typename T , Layout L>
isize proxsuite::proxqp::MatrixView< T, L >::outer_stride

Definition at line 814 of file views.hpp.


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