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

Public Types

using lhs_align_mode = xt_simd::container_alignment_t<E1>
using rhs_align_mode = std::conditional_t<is_aligned, inner_aligned_mode, unaligned_mode>
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 = xt_simd::simd_type<value_type>
using size_type = typename E1::size_type

Public Member Functions

size_type alignment_begin (const E1 &e1, size_type size) const
size_type alignment_end (size_type align_begin, size_type size) const
void assign_elements (E1 &e1, const E2 &e2, size_type begin, size_type end) const
void assign_simd (E1 &e1, const E2 &e2, size_type begin, size_type end) const
void assign_elements_no_simd (E1 &e1, const E2 &e2, size_type begin, size_type end) const

Static Public Attributes

static constexpr bool is_aligned = std::is_same<lhs_align_mode, aligned_mode>::value
static constexpr size_type simd_size = xt_simd::simd_traits<value_type>::size
static constexpr bool needs_cast = has_assign_conversion<e2_value_type, e1_value_type>::value
static constexpr bool is_convertible = std::is_convertible<e2_value_type, e1_value_type>::value

Detailed Description

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

Definition at line 220 of file xassigner.hpp.

Member Typedef Documentation

◆ e1_value_type

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

Definition at line 227 of file xassigner.hpp.

◆ e2_value_type

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

Definition at line 228 of file xassigner.hpp.

◆ lhs_align_mode

template<class E1, class E2>
using xt::linear_assigner< E1, E2 >::lhs_align_mode = xt_simd::container_alignment_t<E1>

Definition at line 224 of file xassigner.hpp.

◆ rhs_align_mode

template<class E1, class E2>
using xt::linear_assigner< E1, E2 >::rhs_align_mode = std::conditional_t<is_aligned, inner_aligned_mode, unaligned_mode>

Definition at line 226 of file xassigner.hpp.

◆ simd_type

template<class E1, class E2>
using xt::linear_assigner< E1, E2 >::simd_type = xt_simd::simd_type<value_type>

Definition at line 230 of file xassigner.hpp.

◆ size_type

template<class E1, class E2>
using xt::linear_assigner< E1, E2 >::size_type = typename E1::size_type

Definition at line 231 of file xassigner.hpp.

◆ value_type

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

Definition at line 229 of file xassigner.hpp.

Member Function Documentation

◆ alignment_begin()

template<class E1, class E2>
auto xt::linear_assigner< E1, E2 >::alignment_begin ( const E1 & e1,
size_type size ) const

Definition at line 654 of file xassigner.hpp.

◆ alignment_end()

template<class E1, class E2>
auto xt::linear_assigner< E1, E2 >::alignment_end ( size_type align_begin,
size_type size ) const

Definition at line 661 of file xassigner.hpp.

◆ assign_elements()

template<class E1, class E2>
void xt::linear_assigner< E1, E2 >::assign_elements ( E1 & e1,
const E2 & e2,
size_type begin,
size_type end ) const

Definition at line 668 of file xassigner.hpp.

◆ assign_elements_no_simd()

template<class E1, class E2>
void xt::linear_assigner< E1, E2 >::assign_elements_no_simd ( E1 & e1,
const E2 & e2,
size_type begin,
size_type end ) const

Definition at line 687 of file xassigner.hpp.

◆ assign_simd()

template<class E1, class E2>
void xt::linear_assigner< E1, E2 >::assign_simd ( E1 & e1,
const E2 & e2,
size_type begin,
size_type end ) const

Definition at line 677 of file xassigner.hpp.

Member Data Documentation

◆ is_aligned

template<class E1, class E2>
bool xt::linear_assigner< E1, E2 >::is_aligned = std::is_same<lhs_align_mode, aligned_mode>::value
staticconstexpr

Definition at line 225 of file xassigner.hpp.

◆ is_convertible

template<class E1, class E2>
bool xt::linear_assigner< E1, E2 >::is_convertible = std::is_convertible<e2_value_type, e1_value_type>::value
staticconstexpr

Definition at line 234 of file xassigner.hpp.

◆ needs_cast

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

Definition at line 233 of file xassigner.hpp.

◆ simd_size

template<class E1, class E2>
size_type xt::linear_assigner< E1, E2 >::simd_size = xt_simd::simd_traits<value_type>::size
staticconstexpr

Definition at line 232 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