Skip to content

Class tensor_subscript

class tensor_subscript<T, Derived, Dims> base

template <typename T, typename Derived, typename Dims>
struct tensor_subscript

Base for the subscript operator helper of tensor.

Template parameters
T element type.
Derived derived tensor type.
Dims integer sequence encoding the number of dimensions.

Fully qualified name: kfr::tensor_subscript<T, Derived, Dims>

Declared at base/tensor.hpp:97

Class tensor_subscript

class tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>> base

template <typename T, typename Derived, index_t... Dims>
struct tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>> { … }

Specialization of tensor_subscript for an explicit integer sequence of dimensions.

Template parameters
T element type.
Derived derived tensor type.
Dims... compile-time dimension sizes.

variable dims

constexpr static inline size_t dims = sizeof...(Dims)

Fully qualified name: kfr::tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>::dims

Declared at base/tensor.hpp:112

typedef reference

using reference       = T&

Fully qualified name: kfr::tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>::reference

Declared at base/tensor.hpp:114

typedef const_reference

using const_reference = const T&

Fully qualified name: kfr::tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>::const_reference

Declared at base/tensor.hpp:115

function operator()(type_for<index_t, Dims>...)

reference KFR_MEM_INTRINSIC operator()(type_for<index_t, Dims>... idx) const

Accesses the element at the given multi-dimensional index.

Parameters
idx... one index per dimension.
Returns
Reference to the element at the given position.

Fully qualified name: kfr::tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>::operator()(type_for<index_t, Dims>...)

Declared at base/tensor.hpp:122

Fully qualified name: kfr::tensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>

Declared at base/tensor.hpp:110

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