#include "tensorstore/array.h"
template <typename Source, typename Dest>
absl::Status tensorstore::CopyConvertedArray(const Sourcesource,
                                             
const Destdest);

Copies the contents of source to dest, with optional data type conversion.

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

Checks:

ArraysHaveSameShapes(source, dest)

Error absl::StatusCode::kInvalidArgument:

if the conversion is not supported or fails.