GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • tensorstore
  • Tutorial
  • Indexing
  • API reference
  • API reference
  • E ContainerKind
  • C ByteStridedPointer
  • C StridedLayout
  • C ElementPointer
  • C Array
  • C TransformedArray
  • F UnownedToShared
  • F GetBoxDomainOf
  • F ComposeLayoutAndTransform

This view

  • Original page
  • New address

GeezerVison is showing google.github.io — tensorstore::TryConvertToArray - TensorStore

#include "tensorstore/index_space/transformed_array.h"
template <ArrayOriginKind OriginKind = offset_origin,
          typename ElementTag,
          DimensionIndex Rank,
          ContainerKind LayoutCKind>
Result<Array<ElementTag, Rank, OriginKind>>
tensorstore::TryConvertToArray(
    
const TransformedArray<ElementTag, Rank, LayoutCKind>&
        transformed_array
);
template <ArrayOriginKind OriginKind = offset_origin,
          typename ElementTag,
          DimensionIndex Rank,
          ContainerKind LayoutCKind>
Result<Array<ElementTag, Rank, OriginKind>>
tensorstore::TryConvertToArray(
    
TransformedArray<ElementTag, Rank, LayoutCKind>&&
        
transformed_array
);
template <ArrayOriginKind OriginKind = offset_origin>
auto tensorstore::TryConvertToArray();

Returns a view of the array as a regular strided Array.

This never copies the data; the address of every element in the returned array is the same as in transformed_array.

When this function succeeds, the result is always the same as Materialize when called without must_allocate.

Template Parameters:¶
ArrayOriginKind OriginKind = offset_origin¶

Specifies whether to retain the origin offset.

Error absl::StatusCode::kInvalidArgument:¶

if the array cannot be viewed as a strided array, i.e. transformed_array.transform() contains an index array map.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.