__gnu_para...t_selector(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

hey bestie, welcome to the __gnu_para...t_selector(3) page from the Library Functions Manual ✨. This is __gnu_parallel::inner_product_selector β€” the selector for std::inner_product(), periodt. That's the whole name vibe: std::inner_product() selector.

✨ SYNOPSIS ✨

ok so real talk: it inherits generic_for_each_selector< It >.

🌸 Public Member Functions 🌸

  • inner_product_selector (It b1, It2 b2) β€” constructor, taking b1 and b2 (begin iterators, more deets below).
  • template<typename Op > T operator() (Op mult, It current) β€” the functor execution moment, taking a multiplication functor mult and an iterator current.

🫢 Public Attributes 🫢

  • It begin1_iterator β€” begin iterator of first sequence.
  • It2 begin2_iterator β€” begin iterator of second sequence.
  • It finish_iterator β€” inherited; iterator on last element processed; needed for some algorithms (e. g. std::transform()).

πŸ¦‹ Detailed Description πŸ¦‹

template<typename It, typename It2, typename T> struct
    __gnu_parallel::inner_product_selector< It, It2, T >

std::inner_product() selector β€” iconic behavior, honestly.

Definition at line 223 of file for_each_selectors.h.

πŸ’– Constructor & Destructor Documentation πŸ’–

πŸŽ€ inner_product_selector πŸŽ€

template<typename It , typename It2 , typename T >
    __gnu_parallel::inner_product_selector< It, It2, T
    >::inner_product_selector (It b1, It2 b2) [inline, explicit]

Constructor, bestie. It takes:

  • b1 β€” Begin iterator of first sequence.
  • b2 β€” Begin iterator of second sequence.

Definition at line 235 of file for_each_selectors.h.

πŸ”₯ Member Function Documentation πŸ”₯

πŸ’… operator() πŸ’…

template<typename It , typename It2 , typename T > template<typename Op > T
    __gnu_parallel::inner_product_selector< It, It2, T >::operator() (Op
    mult, It current) [inline]

Functor execution β€” this is where it does the thing ✨.

Parameters:

  • mult β€” Multiplication functor.
  • current β€” Iterator referencing object.

Returns: Inner product elemental result. (slay.)

Definition at line 244 of file for_each_selectors.h.

References __gnu_parallel::inner_product_selector< It, It2, T >::begin1_iterator, and __gnu_parallel::inner_product_selector< It, It2, T >::begin2_iterator.

πŸ‘‘ Member Data Documentation πŸ‘‘

🌟 begin1_iterator 🌟

template<typename It , typename It2 , typename T > It
    __gnu_parallel::inner_product_selector< It, It2, T >::begin1_iterator

Begin iterator of first sequence.

Definition at line 226 of file for_each_selectors.h.

Referenced by __gnu_parallel::inner_product_selector< It, It2, T >::operator()().

🌟 begin2_iterator 🌟

template<typename It , typename It2 , typename T > It2
    __gnu_parallel::inner_product_selector< It, It2, T >::begin2_iterator

Begin iterator of second sequence.

Definition at line 229 of file for_each_selectors.h.

Referenced by __gnu_parallel::inner_product_selector< It, It2, T >::operator()().

🌟 finish_iterator 🌟

It  __gnu_parallel::generic_for_each_selector< It  >::finish_iterator [inherited]

Iterator on last element processed; needed for some algorithms (e. g. std::transform()).

Definition at line 48 of file for_each_selectors.h.

🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. (So no mysterious human author to stan β€” it's the Doxygen robot doing its little autogenerated dance 🫢.)


That's the whole page, bestie! It's from libstdc++ and dated 21 Apr 2009 β€” mwah, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from