-
#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
ofstore
to the specifiednew_mode
.If
new_mode == ReadWriteMode::dynamic
, the existing mode is unchanged.