#include "tensorstore/stack.h"
template <
    
typename Layers = std::vector<std::variant<Spec, TensorStore<>>>>
auto tensorstore::Concat(const Layers& layers,
                         
DimensionIdentifier concat_dimension,
                         
StackOpenOptions&& options);
template <
    
typename Layers = std::vector<std::variant<Spec, TensorStore<>>>,
    typename... Option>
  
requires IsCompatibleOptionSequence<StackOpenOptions, Option...>
auto tensorstore::Concat(const Layers& layers,
                         
DimensionIdentifier concat_dimension,
                         
Option&&... option);

Virtually concatenates a sequence of TensorStore or Spec layers along an existing dimension.

Parameters:
const Layers &layers

Sequence of layers to concatenate.

DimensionIdentifier concat_dimension

Dimension along which to concatenate the layers.

StackOpenOptions &&options

Options for opening the concatenated view.

Option&&... option

Individual option compatible with StackOpenOptions.

Returns:

The concatenated TensorStore<Element, Rank, Mode> if the layer value type is TensorStore<Element, Rank, Mode>, or TensorStore<> otherwise.