-
#include "tensorstore/strided_layout.h"
- enum class tensorstore::ArrayOriginKind;
Specifies whether array indices start at zero, or at an arbitrary origin vector.
- enumerator zero;¶
Origin is always at 0.
- enumerator offset;¶
Non-zero origin is permitted.
Related Constants¶
-
constexpr const ArrayOriginKind tensorstore::zero_origin =
ArrayOriginKind::zero;
-
constexpr const ArrayOriginKind tensorstore::offset_origin =
ArrayOriginKind::offset;
Related Functions¶
-
std::ostream& tensorstore::operator<<(std::ostream& os,
ArrayOriginKind origin_kind); Prints a string representation of the origin kind.
-
constexpr bool
tensorstore::IsArrayOriginKindConvertible(ArrayOriginKind source,
ArrayOriginKind target); Returns
true
iff an array with origin kindsource
can be converted to an array with origin kindtarget
.