Template Function deduce_shape

Function Documentation

template<typename Container>
std::vector<hsize_t> deduce_shape(const Container &container)

Deduce the shape of a nested container.

This helper function recursively determines the shape of nested containers. This is used to determine the shape of the dataset to be created in an HDF5 file.

Template Parameters:

Container – The type of the container.

Parameters:

container – The container whose shape is to be determined.

Returns:

A vector of dimensions representing the shape of the container.