#include "tensorstore/index_space/transformed_array.h"
template <typename A, typename T>
Result<
    
TransformedArrayTypeFromArrayAndTransform<std::remove_cvref_t<A>,
                                             
 std::remove_cvref_t<T>>>
tensorstore::MakeTransformedArray(A&arrayT&transform);

Returns a transformed array representing transform applied to array.

The domain of array is propagated to transform using PropagateBounds.

Requires:

A satisfies IsArray.

Requires:

T satisfies IsIndexTransform.

Requires:

A::static_rank == T::static_output_rank.

Error absl::StatusCode::kInvalidArgument:

if array.rank() is not equal to transform.output_rank().