Created
January 7, 2020 10:04
-
-
Save JohanMabille/b5fc35283e7ef9b24b6972e125fafd3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class T, layout_type L, class A> | |
xarray<T, L, A>::xarray(const shape_type& shape, layout_type l) | |
: xarray() | |
{ | |
resize(shape, layout); | |
} | |
template <class T, layout_type L, class A> | |
xarray<T, L, A>::xarray(const shape_type& shape, const_reference, | |
layout_type l) | |
: xarray() | |
{ | |
resize(shape, layout); | |
std::fill(m_storage.begin(), m_storage.end(), value); | |
} | |
// The implementation of the constructors accepting the strides | |
// instead of the layout is similar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment