TensorStore
tensorstore::ModeCast[runtime]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
          • C Batch
          • C Transaction
          • C Context
          • C Schema
          • C Spec
          • C TensorStore
            • Types
            • Data members
            • Constructors
            • Methods
            • Friend functions
            • Related Types
            • Related Functions
              • F ModeCast
              • F Write
              • F Copy
              • F Cast
              • F Open
            • I/O
            • Related Constants
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/tensorstore.h"
    template <typename Element,
              DimensionIndex Rank,
              ReadWriteMode ExistingMode>
    Result<TensorStore<Element, Rank>>
    tensorstore::ModeCast(TensorStore<Element, Rank, ExistingMode> store,
                          
    ReadWriteMode new_mode);

    Changes the ReadWriteMode of store to the specified new_mode.

    If new_mode == ReadWriteMode::dynamic, the existing mode is unchanged.