-
#include "tensorstore/index_space/dimension_identifier.h" -
absl::Status
tensorstore::NormalizeDynamicDimSpec(const DynamicDimSpec& spec,
span<const std::string> labels,
DimensionIndexBuffer* result); Appends to
*resultthe dimensions corresponding tospec.- Parameters:¶
- const DynamicDimSpec &spec¶
The dimension specification.
- span<const std::string> labels¶
Vector of length ` rank` specifying the dimension labels.
- out
- DimensionIndexBuffer *result¶
Non-null pointer to result vector.
- Returns:¶
absl::OkStatus()on success.- Error absl::StatusCode::kInvalidArgument:¶
if
specis invalid.