xtensor
Loading...
Searching...
No Matches
xt::strided_loop_assigner< E1, E2 > Class Template Reference

Public Types

using size_type = std::size_t
using index_type = dynamic_shape<std::size_t>
using loop_sizes_t = strided_assign_detail::loop_sizes_t
using lhs_stepper = typename E1::stepper
using rhs_stepper = typename E2::const_stepper
using e1_value_type = typename E1::value_type
using e2_value_type = typename E2::value_type
using value_type = requested_value_type_t<E1, E2>
using simd_type

Public Member Functions

 strided_loop_assigner (E1 &e1, const E2 &e2)
bool can_do_strided_assign () const noexcept
size_type inner_loop_size () const noexcept
size_type outer_loop_size () const noexcept
void run (size_type begin, size_type end) const

Static Public Attributes

static constexpr bool needs_cast = has_assign_conversion<e2_value_type, e1_value_type>::value

Detailed Description

template<class E1, class E2>
class xt::strided_loop_assigner< E1, E2 >

Definition at line 292 of file xassigner.hpp.

Member Typedef Documentation

◆ e1_value_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::e1_value_type = typename E1::value_type

Definition at line 301 of file xassigner.hpp.

◆ e2_value_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::e2_value_type = typename E2::value_type

Definition at line 302 of file xassigner.hpp.

◆ index_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::index_type = dynamic_shape<std::size_t>

Definition at line 297 of file xassigner.hpp.

◆ lhs_stepper

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::lhs_stepper = typename E1::stepper

Definition at line 299 of file xassigner.hpp.

◆ loop_sizes_t

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::loop_sizes_t = strided_assign_detail::loop_sizes_t

Definition at line 298 of file xassigner.hpp.

◆ rhs_stepper

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::rhs_stepper = typename E2::const_stepper

Definition at line 300 of file xassigner.hpp.

◆ simd_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::simd_type
Initial value:
std::conditional_t<
std::is_same<e1_value_type, bool>::value,
xt_simd::simd_bool_type<value_type>,
xt_simd::simd_type<value_type>>

Definition at line 304 of file xassigner.hpp.

◆ size_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::size_type = std::size_t

Definition at line 296 of file xassigner.hpp.

◆ value_type

template<class E1, class E2>
using xt::strided_loop_assigner< E1, E2 >::value_type = requested_value_type_t<E1, E2>

Definition at line 303 of file xassigner.hpp.

Constructor & Destructor Documentation

◆ strided_loop_assigner()

template<class E1, class E2>
xt::strided_loop_assigner< E1, E2 >::strided_loop_assigner ( E1 & e1,
const E2 & e2 )
inline

Definition at line 1007 of file xassigner.hpp.

Member Function Documentation

◆ can_do_strided_assign()

template<class E1, class E2>
bool xt::strided_loop_assigner< E1, E2 >::can_do_strided_assign ( ) const
inlinenoexcept

Definition at line 1037 of file xassigner.hpp.

◆ inner_loop_size()

template<class E1, class E2>
auto xt::strided_loop_assigner< E1, E2 >::inner_loop_size ( ) const
inlinenoexcept

Definition at line 1043 of file xassigner.hpp.

◆ outer_loop_size()

template<class E1, class E2>
auto xt::strided_loop_assigner< E1, E2 >::outer_loop_size ( ) const
inlinenoexcept

Definition at line 1049 of file xassigner.hpp.

◆ run()

template<class E1, class E2>
void xt::strided_loop_assigner< E1, E2 >::run ( size_type begin,
size_type end ) const
inline

Definition at line 1055 of file xassigner.hpp.

Member Data Documentation

◆ needs_cast

template<class E1, class E2>
bool xt::strided_loop_assigner< E1, E2 >::needs_cast = has_assign_conversion<e2_value_type, e1_value_type>::value
staticconstexpr

Definition at line 308 of file xassigner.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/core/xassigner.hpp