Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 961 Bytes

File metadata and controls

46 lines (31 loc) · 961 Bytes

stride

  • mdspan[meta header]
  • function[meta id-type]
  • std[meta namespace]
  • layout_left_padded::mapping[meta class]
  • cpp26[meta cpp]
constexpr index_type stride(rank_type r) const noexcept;

概要

r番目次元のストライド幅を取得する。

事前条件

r < rank_

戻り値

  • r == 0のとき、値1を返す。
  • r == 1のとき、値stride-1を返す。
  • そうでなければ、半開区間[1, r)の全ての値kに対して値stride-1と全てのextents_.extent(k)を乗算した値を返す。

例外

投げない

バージョン

言語

  • C++26

処理系

関連項目

参照