Skip to content
TensorStore
tensorstore::CopyArray
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
          • EContainerKind
          • CByteStridedPointer
          • CStridedLayout
          • CElementPointer
          • CArray
            • Types
            • Data members
            • Constructors
            • Methods
            • Indexing
            • Friend functions
            • Comparison
            • Related Types
            • Related Constants
            • Related Functions
            • Creation functions
            • Copy functions
              • FCopyArray
                • Checks
              • FCopyConvertedArray
              • FMakeCopy [copy]
              • FMakeCopy [cast]
            • Formatting
            • Broadcasting
          • CTransformedArray
          • Transformation
          • Iteration
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    • Checks
    #include "tensorstore/array.h"
    template <typename Source, typename Dest>
      
    requires IsArray<Source> && IsArray<Dest>
    void tensorstore::CopyArray(const Source& source, const Dest& dest);

    Copies the contents of source to dest.

    This checks at compile time that the static ranks and element types of source and dest are compatible.

    Checks:¶

    ArraysHaveSameShapes(source, dest)

    Back to top
    Previous tensorstore::AllocateArrayLike
    Next tensorstore::CopyConvertedArray