-
#include "tensorstore/resize_options.h"
- enum class tensorstore::ResizeMode;
Bitvector specifying resize options.
- enumerator resize_metadata_only = 1;¶
Requests that, if applicable, the resize operation affect only the metadata but not delete data chunks that are outside of the new bounds.
- enumerator resize_tied_bounds = 2;¶
Requests that the resize be permitted even if other bounds tied to the specified bounds must also be resized. This option should be used with caution.
- enumerator expand_only = 4;¶
Fail if any bounds would be reduced.
- enumerator shrink_only = 8;¶
Fail if any bounds would be increased.
Related Constants¶
-
constexpr const ResizeMode tensorstore::resize_metadata_only =
ResizeMode::resize_metadata_only; -
constexpr const ResizeMode tensorstore::resize_tied_bounds =
ResizeMode::resize_tied_bounds; -
constexpr const ResizeMode tensorstore::expand_only =
ResizeMode::expand_only; -
constexpr const ResizeMode tensorstore::shrink_only =
ResizeMode::shrink_only;
Related Functions¶
-
constexpr ResizeMode
tensorstore::operator&(ResizeMode a, ResizeMode b); Computes the intersection of two mode sets.
-
constexpr ResizeMode
tensorstore::operator|(ResizeMode a, ResizeMode b); Computes the union of two mode sets.
- constexpr bool tensorstore::operator!(ResizeMode a);
Checks if any mode has been set.
-
std::ostream&
tensorstore::operator<<(std::ostream& os, ResizeMode mode); Prints a debugging string representation to an
std::ostream
.