Skip to content

Instantly share code, notes, and snippets.

@JohanMabille
Created January 7, 2020 10:01
Show Gist options
  • Save JohanMabille/b77e3308156e564b05f923cb5e3f547a to your computer and use it in GitHub Desktop.
Save JohanMabille/b77e3308156e564b05f923cb5e3f547a to your computer and use it in GitHub Desktop.
template <class T, layout_type L = XTENSOR_DEFAULT_LAYOUT,
class A = std::allocator<T>>
class xarray
{
public:
xarray() = default;
explicit xarray(const shape_type& shape, layout_type l = L);
explicit xarray(const shape_type& shape, const_reference value,
layout_type l = L);
explicit xarray(const shape_type& shape,
const strides_type& strides);
explicit xarray(const shape_type& shape,
const strides_type& strides,
const_reference value);
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment