class shape<Dims> types¶
template <index_t Dims>
struct shape : static_array_base<index_t, csizeseq_t<Dims>> { … } typedef base ¶
using base = static_array_base<index_t, csizeseq_t<Dims>> Defined at base/shape.hpp:104
typedef static_array_base<unsigned long long, cvalseq_impl<unsigned long long, value-parameter-0-0, 0, 1>::type> ¶
using base::base Defined at base/shape.hpp:106
constructor shape<dims>(const base &) ¶
constexpr shape(const base& a) : base(a) { … } Defined at base/shape.hpp:108
function dims() ¶
static constexpr size_t dims() { … } Defined at base/shape.hpp:112
function operator unsigned long long() ¶
template <int dummy = 0>
requires(Dims == 1)
operator index_t() const Defined at base/shape.hpp:116
function from_std_array(const std::array<TI, Dims> &) ¶
Defined at base/shape.hpp:122
function to_std_array() ¶
Defined at base/shape.hpp:130
function ge(const shape<dims> &) ¶
bool ge(const shape& other) const Defined at base/shape.hpp:137
function trailing_zeros() ¶
index_t trailing_zeros() const Defined at base/shape.hpp:149
function le(const shape<dims> &) ¶
bool le(const shape& other) const Defined at base/shape.hpp:159
function add(index_t) ¶
Defined at base/shape.hpp:171
function add_at(index_t, cval_t<index_t, Axis>) ¶
Defined at base/shape.hpp:178
function add(const shape<dims> &) ¶
Defined at base/shape.hpp:184
function sub(const shape<dims> &) ¶
Defined at base/shape.hpp:185
function sum() ¶
constexpr index_t sum() const { … } Defined at base/shape.hpp:186
function has_infinity() ¶
constexpr bool has_infinity() const { … } Defined at base/shape.hpp:188
function add_shape(const shape<dims> &, const shape<dims> &) ¶
Defined at base/shape.hpp:198
function sub_shape(const shape<dims> &, const shape<dims> &) ¶
Defined at base/shape.hpp:202
function add_shape_undef(const shape<dims> &, const shape<dims> &) ¶
Defined at base/shape.hpp:207
function sub_shape_undef(const shape<dims> &, const shape<dims> &) ¶
Defined at base/shape.hpp:217
function min(const shape<dims> &, const shape<dims> &) ¶
Defined at base/shape.hpp:228
function operator*() ¶
constexpr const base& operator*() const { … } Defined at base/shape.hpp:230
function operator->() ¶
constexpr const base* operator->() const { … } Defined at base/shape.hpp:232
function to_flat(const shape<Dims> &) ¶
Defined at base/shape.hpp:234
function from_flat(size_t) ¶
Defined at base/shape.hpp:257
function dot(const shape<dims> &) ¶
Defined at base/shape.hpp:282
function adapt(const shape<indims> &, cbool_t<stop>) ¶
template <index_t indims, bool stop = false>
KFR_MEM_INTRINSIC constexpr shape adapt(const shape<indims>& other, cbool_t<stop> = { … } Defined at base/shape.hpp:285
function product() ¶
Defined at base/shape.hpp:294
function tomask() ¶
Defined at base/shape.hpp:296
function extend(index_t) ¶
template <index_t new_dims>
constexpr KFR_MEM_INTRINSIC shape<new_dims> extend(index_t value = infinite_size) const { … } Defined at base/shape.hpp:307
function trim() ¶
Defined at base/shape.hpp:317
function rotate_left() ¶
constexpr KFR_MEM_INTRINSIC shape rotate_left() const { … } Defined at base/shape.hpp:331
function rotate_right() ¶
constexpr KFR_MEM_INTRINSIC shape rotate_right() const { … } Defined at base/shape.hpp:337
function remove_back() ¶
constexpr KFR_MEM_INTRINSIC shape<Dims - 1> remove_back() const { … } Defined at base/shape.hpp:342
function remove_front() ¶
constexpr KFR_MEM_INTRINSIC shape<Dims - 1> remove_front() const { … } Defined at base/shape.hpp:353
function trunc() ¶
constexpr KFR_MEM_INTRINSIC shape<Dims - 1> trunc() const { … } Defined at base/shape.hpp:365
function revindex(size_t) ¶
Defined at base/shape.hpp:367
function set_revindex(size_t, index_t) ¶
Defined at base/shape.hpp:371
function transpose() ¶
Defined at base/shape.hpp:377
Defined at base/shape.hpp:101