proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
 
Loading...
Searching...
No Matches
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > > Struct Template Reference

#include <proxsuite/linalg/veg/internal/fix_index.hpp>

Public Types

using Div = meta::if_t<M == 0, void, Fix<N / (M != 0 ? M : 1)>>
 
using Mod = meta::if_t<M == 0, void, Fix<N % (M != 0 ? M : 1)>>
 
using Add
 
using Sub
 
using Mul
 
using Div
 
using Mod
 
using CmpEq
 
using CmpNEq
 
using CmpLT
 
using CmpLE
 
using CmpGT
 
using CmpGE
 

Public Member Functions

 VEG_OP (add, Add,+)
 
 VEG_OP (sub, Sub, -)
 
 VEG_OP (mul, Mul, *)
 
 VEG_CMP (cmp_eq, CmpEq,==)
 
 VEG_CMP (cmp_neq, CmpNEq, !=)
 
 VEG_CMP (cmp_lt, CmpLT,<)
 
 VEG_CMP (cmp_le, CmpLE,<=)
 
 VEG_CMP (cmp_gt, CmpGT, >)
 
 VEG_CMP (cmp_ge, CmpGE, >=)
 

Static Public Member Functions

VEG_NODISCARD static VEG_INLINE constexpr auto div_fn (Fix< N >, Fix< M >) VEG_NOEXCEPT -> Div
 
VEG_NODISCARD static VEG_INLINE constexpr auto mod_fn (Fix< N >, Fix< M >) VEG_NOEXCEPT -> Mod
 

Detailed Description

template<isize N, isize M>
struct proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >

Definition at line 268 of file fix_index.hpp.

Member Typedef Documentation

◆ Div [1/2]

template<isize N, isize M>
using proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::Div = meta::if_t<M == 0, void, Fix<N / (M != 0 ? M : 1)>>

Definition at line 301 of file fix_index.hpp.

◆ Mod [1/2]

template<isize N, isize M>
using proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::Mod = meta::if_t<M == 0, void, Fix<N % (M != 0 ? M : 1)>>

Definition at line 302 of file fix_index.hpp.

◆ Add

Definition at line 20 of file fix_index.hpp.

◆ Sub

Definition at line 21 of file fix_index.hpp.

◆ Mul

Definition at line 22 of file fix_index.hpp.

◆ Div [2/2]

Definition at line 23 of file fix_index.hpp.

◆ Mod [2/2]

Definition at line 24 of file fix_index.hpp.

◆ CmpEq

Definition at line 26 of file fix_index.hpp.

◆ CmpNEq

Definition at line 27 of file fix_index.hpp.

◆ CmpLT

Definition at line 28 of file fix_index.hpp.

◆ CmpLE

Definition at line 29 of file fix_index.hpp.

◆ CmpGT

Definition at line 30 of file fix_index.hpp.

◆ CmpGE

Definition at line 31 of file fix_index.hpp.

Member Function Documentation

◆ VEG_OP() [1/3]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_OP ( add ,
Add ,
+  )

◆ VEG_OP() [2/3]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_OP ( sub ,
Sub ,
-  )

◆ VEG_OP() [3/3]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_OP ( mul ,
Mul ,
*  )

◆ VEG_CMP() [1/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_eq ,
CmpEq  )

◆ VEG_CMP() [2/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_neq ,
CmpNEq ,
!  )

◆ VEG_CMP() [3/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_lt ,
CmpLT  )

◆ VEG_CMP() [4/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_le ,
CmpLE ,
<=  )

◆ VEG_CMP() [5/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_gt ,
CmpGT  )

◆ VEG_CMP() [6/6]

template<isize N, isize M>
proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::VEG_CMP ( cmp_ge ,
CmpGE ,
>=  )

◆ div_fn()

template<isize N, isize M>
VEG_NODISCARD static VEG_INLINE constexpr auto proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::div_fn ( Fix< N > ,
Fix< M >  ) -> Div
inlinestaticconstexpr

Definition at line 304 of file fix_index.hpp.

◆ mod_fn()

template<isize N, isize M>
VEG_NODISCARD static VEG_INLINE constexpr auto proxsuite::linalg::veg::_detail::binary_traits< Fix< N >, Fix< M > >::mod_fn ( Fix< N > ,
Fix< M >  ) -> Mod
inlinestaticconstexpr

Definition at line 310 of file fix_index.hpp.


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