#include "tensorstore/index_space/transformed_array.h"
template <ArrayOriginKind OriginKind = offset_origin>
Result<SharedArray<const Element, Rank, OriginKind>>
tensorstore::TransformedArray<ElementTagType, Rank, LayoutCKind>::
    
Materialize(TransformArrayConstraints constraints =
                   
 skip_repeated_elements
) const;

Materializes the transformed array as a strided array.

Refer to the documentation for TransformArray. Depending on constraints and whether the transform uses index arrays, the returned array may be newly allocated or point to a sub-region of the existing array. In the latter case, the returned array is only valid as long as the existing array despite being stored as a SharedArray.

Template Parameters:
ArrayOriginKind OriginKind = offset_origin

Specifies whether to retain the origin offset.

Parameters:
TransformArrayConstraints constraints = skip_repeated_elements

If constraints.allocate_constraint() == may_allocate, the returned array may refer to element_pointer.