Function get_elements¶
function get_elements(T &&, const shape<0> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t Axis, size_t N>
requires(is_expr_element<std::decay_t<T>>)
KFR_INTRINSIC vec<std::decay_t<T>, N> get_elements(T&& self, const shape<0>& index,
const axis_params<Axis, N>&) Returns a scalar element broadcast to a vector.
When the expression is a scalar element, reading any index simply returns the scalar value repeated across all lanes of the result vector.
| self | Scalar element value. |
| index | Unused zero-dimensional index. |
| T | Scalar element type. |
| Axis | Axis parameter (unused). |
| N | Vector width. |
Vector with N lanes all equal to self. |
Fully qualified name: kfr::get_elements(T &&, const shape<0> &, const axis_params<Axis, N> &)
Declared at base/expression.hpp:433
Function get_elements¶
function get_elements(const expression_function<Fn, Args...> &, const shape<Dims> &, const axis_params<Axis, N> &) base¶
template <typename Fn, typename... Args, index_t Axis, size_t N, index_t Dims,
typename Tr = expression_traits<expression_function<Fn, Args...>>,
typename T = typename Tr::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_function<Fn, Args...>& self, const shape<Dims>& index,
const axis_params<Axis, N>& sh) Reads a vector of elements from an expression_function .
| self | Expression instance. |
| index | Multi-dimensional index of the first element to read. |
| sh | Axis and width of the vectorized read. |
| Fn | Callable type. |
| Args | Argument types. |
| Axis | Axis along which the read is vectorized. |
| N | Vector width. |
| Dims | Number of dimensions of index. |
Vector of N elements produced by the callable. |
Fully qualified name: kfr::get_elements(const expression_function<Fn, Args...> &, const shape<Dims> &, const axis_params<Axis, N> &)
Declared at base/expression.hpp:1030
Function get_elements¶
function get_elements(const expression_scalar<T> &, const shape<0> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_scalar<T>& self, const shape<0>& index,
const axis_params<Axis, N>&) Internal ADL-provided implementation for
expression_scalar<T> expressions
Fully qualified name: kfr::get_elements(const expression_scalar<T> &, const shape<0> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:94
Function get_elements¶
function get_elements(const expression_counter<T, 1> &, const shape<1> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_counter<T, 1>& self, const shape<1>& index,
const axis_params<Axis, N>&) Internal ADL-provided implementation for
expression_counter<T, 1> expressions
Fully qualified name: kfr::get_elements(const expression_counter<T, 1> &, const shape<1> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:177
Function get_elements¶
function get_elements(const expression_counter<T, dims> &, const shape<dims> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t dims, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_counter<T, dims>& self, const shape<dims>& index,
const axis_params<Axis, N>&) Internal ADL-provided implementation for
expression_counter<T, dims> expressions
Fully qualified name: kfr::get_elements(const expression_counter<T, dims> &, const shape<dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:186
Function get_elements¶
function get_elements(const expression_slice<Arg> &, const shape<NDims> &, const axis_params<Axis, N> &) base¶
template <typename Arg, index_t NDims, index_t Axis, size_t N,
typename T = typename expression_traits<expression_slice<Arg>>::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_slice<Arg>& self, const shape<NDims>& index,
const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_slice<Arg> expressions
Fully qualified name: kfr::get_elements(const expression_slice<Arg> &, const shape<NDims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:272
Function get_elements¶
function get_elements(const expression_cast<T, Arg> &, const shape<NDims> &, const axis_params<Axis, N> &) base¶
template <typename T, typename Arg, index_t NDims, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_cast<T, Arg>& self, const shape<NDims>& index,
const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_cast<T, Arg> expressions
Fully qualified name: kfr::get_elements(const expression_cast<T, Arg> &, const shape<NDims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:351
Function get_elements¶
function get_elements(const expression_lambda<T, Dims, Fn, Rnd> &, const shape<Dims> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t Dims, typename Fn, bool Rnd, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_lambda<T, Dims, Fn, Rnd>& self,
const shape<Dims>& index, const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_lambda<T, Dims, Fn, Rnd> expressions
Fully qualified name: kfr::get_elements(const expression_lambda<T, Dims, Fn, Rnd> &, const shape<Dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:451
Function get_elements¶
function get_elements(const expression_padded<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) base¶
template <typename Arg, index_t Axis, size_t N, typename Traits = expression_traits<expression_padded<Arg>>,
typename T = typename Traits::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_padded<Arg>& self, const shape<Traits::dims>& index,
const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_padded<Arg> expressions
Fully qualified name: kfr::get_elements(const expression_padded<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:543
Function get_elements¶
function get_elements(const expression_reverse<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) base¶
template <typename Arg, index_t Axis, size_t N, typename Traits = expression_traits<expression_reverse<Arg>>,
typename T = typename Traits::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_reverse<Arg>& self, const shape<Traits::dims>& index,
const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_reverse<Arg> expressions
Fully qualified name: kfr::get_elements(const expression_reverse<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:624
Function get_elements¶
function get_elements(const expression_fixshape<Arg, Shape> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) base¶
template <typename Arg, typename Shape, index_t Axis, size_t N,
typename Traits = expression_traits<expression_fixshape<Arg, Shape>>,
typename T = typename Traits::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_fixshape<Arg, Shape>& self,
const shape<Traits::dims>& index, const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_fixshape<Arg, Shape> expressions
Fully qualified name: kfr::get_elements(const expression_fixshape<Arg, Shape> &, const shape<Traits::dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:724
Function get_elements¶
function get_elements(const expression_reshape<Arg, outdims> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) base¶
template <typename Arg, index_t outdims, index_t Axis, size_t N,
typename Traits = expression_traits<expression_reshape<Arg, outdims>>,
typename T = typename Traits::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_reshape<Arg, outdims>& self,
const shape<Traits::dims>& index, const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_reshape<Arg, outdims> expressions
Fully qualified name: kfr::get_elements(const expression_reshape<Arg, outdims> &, const shape<Traits::dims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:811
Function get_elements¶
function get_elements(const expression_linspace<T, truncated> &, const shape<1> &, const axis_params<0, N> &) base¶
template <typename T, bool truncated, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_linspace<T, truncated>& self, const shape<1>& index,
const axis_params<0, N>&) Internal ADL-provided implementation for
expression_linspace<T, truncated> expressions
Fully qualified name: kfr::get_elements(const expression_linspace<T, truncated> &, const shape<1> &, const axis_params<0, N> &)
Declared at base/basic_expressions.hpp:1043
Function get_elements¶
function get_elements(const expression_concatenate<Arg1, Arg2, ConcatAxis> &, const shape<NDims> &, const axis_params<Axis, N> &) base¶
template <typename Arg1, typename Arg2, index_t ConcatAxis, index_t NDims, index_t Axis, size_t N,
typename T = typename expression_traits<expression_concatenate<Arg1, Arg2, ConcatAxis>>::value_type>
KFR_INTRINSIC vec<T, N> get_elements(const expression_concatenate<Arg1, Arg2, ConcatAxis>& self,
const shape<NDims>& index, const axis_params<Axis, N>& sh) Internal ADL-provided implementation for
expression_concatenate<Arg1, Arg2, ConcatAxis> expressions
Fully qualified name: kfr::get_elements(const expression_concatenate<Arg1, Arg2, ConcatAxis> &, const shape<NDims> &, const axis_params<Axis, N> &)
Declared at base/basic_expressions.hpp:1149
Function get_elements¶
function get_elements(const univector<T, Tag> &, const shape<1> &, const axis_params<0, N> &) base¶
template <typename T, univector_tag Tag, size_t N>
KFR_INTRINSIC vec<std::remove_const_t<T>, N> get_elements(const univector<T, Tag>& self,
const shape<1>& index, const axis_params<0, N>&) Internal ADL-provided implementation for get_elements expressions.
Fully qualified name: kfr::get_elements(const univector<T, Tag> &, const shape<1> &, const axis_params<0, N> &)
Declared at base/univector.hpp:846
Function get_elements¶
function get_elements(const expression_handle<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t NDims, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_handle<T, NDims>& self, const shape<NDims>& index,
const axis_params<Axis, N>& sh) Internal ADL-provided implementation for expression_handle expressions.
Fully qualified name: kfr::get_elements(const expression_handle<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &)
Declared at base/handle.hpp:323
Function get_elements¶
function get_elements(const expression_placeholder<T, Dims, Key> &, shape<Dims>, axis_params<VecAxis, N>) base¶
template <typename T, index_t Dims, size_t Key, index_t VecAxis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const expression_placeholder<T, Dims, Key>& self, shape<Dims> index,
axis_params<VecAxis, N> sh) Internal ADL-provided implementation for expression_placeholder expressions.
Reads from the bound handle, or returns zeros when the placeholder is unbound.
Fully qualified name: kfr::get_elements(const expression_placeholder<T, Dims, Key> &, shape<Dims>, axis_params<VecAxis, N>)
Declared at base/handle.hpp:468
Function get_elements¶
function get_elements(const tensor<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &) base¶
template <typename T, index_t NDims, index_t Axis, size_t N>
KFR_INTRINSIC vec<T, N> get_elements(const tensor<T, NDims>& self, const shape<NDims>& index,
const axis_params<Axis, N>&) Internal ADL-provided implementation for tensor expressions. Reads N elements along Axis starting at index from self.
Fully qualified name: kfr::get_elements(const tensor<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &)
Declared at base/tensor.hpp:1284