Batch of constants

template<typename T, class A, T... Values>
struct batch_constant

batch of integral constants

Abstract representation of a batch of integral constants.

Template Parameters:
  • batch_type – the type of the associated batch values.

  • Values – constants represented by this batch

Public Functions

inline XSIMD_INLINE batch_type as_batch () const noexcept

Generate a batch of batch_type from this batch_constant.

inline XSIMD_INLINE operator batch_type() const noexcept

Generate a batch of batch_type from this batch_constant.

inline T get(size_t i) const noexcept

Get the i th element of this batch_constant.

Warning

doxygenfunction: Unable to resolve function “xsimd::make_batch_constant” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 52] template<typename T, class A, class G> XSIMD_INLINE constexpr auto make_batch_constant () noexcept -> decltype(detail::make_batch_constant< T, A, G >(detail::make_index_sequence< batch< T, A >::size >())) —————————————————-^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected identifier in nested name, got keyword: auto [error at 66] template<typename T, class A, class G> XSIMD_INLINE constexpr auto make_batch_constant () noexcept -> decltype(detail::make_batch_constant< T, A, G >(detail::make_index_sequence< batch< T, A >::size >())) ——————————————————————^ If declarator-id: Invalid C++ declaration: Expected identifier in nested name, got keyword: auto [error at 66] template<typename T, class A, class G> XSIMD_INLINE constexpr auto make_batch_constant () noexcept -> decltype(detail::make_batch_constant< T, A, G >(detail::make_index_sequence< batch< T, A >::size >())) ——————————————————————^