Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 994 Bytes

File metadata and controls

46 lines (31 loc) · 994 Bytes

stride

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

概要

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

事前条件

r < rank_

戻り値

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

例外

投げない

バージョン

言語

  • C++26

処理系

関連項目

参照