#include "tensorstore/spec.h" friend Result<Spec>tensorstore::Spec::ApplyIndexTransform(IndexTransform<> transform, Spec spec); Applies an index transform to a Spec. Parameters:¶ IndexTransform<> transform¶Index transform to apply. If transform.valid() == false, this is a no-op. Otherwise, transform.output_rank() must be compatible with spec.rank(). Spec spec¶The spec to transform. Returns:¶ New Spec, with rank equal to transform.input_rank() (or unchanged if transform.valid() == false.