Skip to content

Class expression_adjacent

class expression_adjacent<Fn, E> base

template <typename Fn, typename E>
struct expression_adjacent : expression_with_traits<E> { … }

Expression that applies a binary function to each value and its previous value.

Template parameters
Fn callable type (invoked as fn(current, previous) )
E wrapped expression type

typedef value_type

using value_type                           = typename expression_with_traits<E>::value_type

Fully qualified name: kfr::expression_adjacent<Fn, E>::value_type

variable dims

constexpr static inline index_t dims       = expression_with_traits<E>::dims

Fully qualified name: kfr::expression_adjacent<Fn, E>::dims

variable random_access

constexpr static inline bool random_access = false

Fully qualified name: kfr::expression_adjacent<Fn, E>::random_access

constructor expression_adjacent<Fn, E>(Fn &&, E &&)

expression_adjacent(Fn&& fn, E&& e)

Fully qualified name: kfr::expression_adjacent<Fn, E>::expression_adjacent<Fn, E>(Fn &&, E &&)

function get_elements(const expression_adjacent<Fn, E> &, shape<dims>, axis_params<VecAxis, N>)

template <size_t N, index_t VecAxis>
KFR_INTRINSIC friend vec<value_type, N> get_elements(const expression_adjacent& self, shape<dims> index,
                                                     axis_params<VecAxis, N> sh)

Fully qualified name: kfr::expression_adjacent<Fn, E>::get_elements(const expression_adjacent<Fn, E> &, shape<dims>, axis_params<VecAxis, N>)

variable fn

Fn fn

Fully qualified name: kfr::expression_adjacent<Fn, E>::fn

variable data

mutable value_type data = value_type(0)

Fully qualified name: kfr::expression_adjacent<Fn, E>::data

Fully qualified name: kfr::expression_adjacent<Fn, E>

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.