proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::linalg::veg::Slice< T > Struct Template Reference

#include <proxsuite/linalg/veg/slice.hpp>

Inheritance diagram for proxsuite::linalg::veg::Slice< T >:
[legend]
Collaboration diagram for proxsuite::linalg::veg::Slice< T >:
[legend]

Public Member Functions

VEG_INLINE constexpr Slice ()=default
 
VEG_INLINE constexpr Slice (Unsafe, FromRawParts, T const *data_, isize count) VEG_NOEXCEPT
 
VEG_NODISCARD VEG_INLINE constexpr auto ptr () const VEG_NOEXCEPT -> T const *
 
VEG_NODISCARD VEG_INLINE constexpr auto len () const VEG_NOEXCEPT -> isize
 
VEG_NODISCARD VEG_INLINE constexpr auto operator[] (isize idx) const VEG_NOEXCEPT -> T const &
 
VEG_NODISCARD VEG_INLINE constexpr auto get_unchecked (Unsafe, isize idx) const VEG_NOEXCEPT -> Ref< T >
 
VEG_NODISCARD VEG_INLINE constexpr auto split_at (isize idx) const VEG_NOEXCEPT -> Tuple< Slice< T >, Slice< T > >
 
VEG_NODISCARD VEG_INLINE auto as_bytes () const VEG_NOEXCEPT -> Slice< unsigned char >
 

Detailed Description

template<typename T>
struct proxsuite::linalg::veg::Slice< T >

Definition at line 27 of file slice.hpp.

Constructor & Destructor Documentation

◆ Slice() [1/2]

template<typename T >
VEG_INLINE constexpr proxsuite::linalg::veg::Slice< T >::Slice ( )
constexprdefault

◆ Slice() [2/2]

template<typename T >
VEG_INLINE constexpr proxsuite::linalg::veg::Slice< T >::Slice ( Unsafe ,
FromRawParts ,
T const * data_,
isize count )
inlineconstexpr

Definition at line 38 of file slice.hpp.

Member Function Documentation

◆ ptr()

template<typename T >
VEG_NODISCARD VEG_INLINE constexpr auto proxsuite::linalg::veg::Slice< T >::ptr ( ) const -> T const*
inlineconstexpr

Definition at line 49 of file slice.hpp.

◆ len()

template<typename T >
VEG_NODISCARD VEG_INLINE constexpr auto proxsuite::linalg::veg::Slice< T >::len ( ) const -> isize
inlineconstexpr

Definition at line 52 of file slice.hpp.

◆ operator[]()

template<typename T >
VEG_NODISCARD VEG_INLINE constexpr auto proxsuite::linalg::veg::Slice< T >::operator[] ( isize idx) const -> T const&
inlineconstexpr

Definition at line 56 of file slice.hpp.

◆ get_unchecked()

template<typename T >
VEG_NODISCARD VEG_INLINE constexpr auto proxsuite::linalg::veg::Slice< T >::get_unchecked ( Unsafe ,
isize idx ) const -> Ref<T>
inlineconstexpr

Definition at line 63 of file slice.hpp.

◆ split_at()

template<typename T >
VEG_NODISCARD VEG_INLINE constexpr auto proxsuite::linalg::veg::Slice< T >::split_at ( isize idx) const -> Tuple<Slice<T>, Slice<T>>
inlineconstexpr

Definition at line 69 of file slice.hpp.

◆ as_bytes()

template<typename T >
VEG_NODISCARD VEG_INLINE auto proxsuite::linalg::veg::Slice< T >::as_bytes ( ) const -> Slice<unsigned char>
inline

Definition at line 90 of file slice.hpp.


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