Skip to content

Instantly share code, notes, and snippets.

@jf99
jf99 / xtconcatenate.hpp
Last active April 5, 2024 22:04
A way to concatenate a vector of xt::xarrays
#ifndef XTCONCATENATE_HPP
#define XTCONCATENATE_HPP
#include <cstddef>
#include <stdexcept>
#include <vector>
#include <xtensor/xarray.hpp>
template <typename S>
struct ShapeIndex