Closed adriendelsalle closed 3 years ago
Wait, an additional test:
pyarray<int, xt::layout_type::dynamic> d
{{{ 0, 1, 2},
{ 3, 4, 5},
{ 6, 7, 8}},
{{ 9, 10, 11},
{12, 13, 14},
{15, 16, 17}}};
EXPECT_EQ(d.layout(), xt::layout_type::dynamic); // FAIL, xt::layout_type::column_major
shows that the default layout is not dynamic
.
Everything should be fixed:
layout_type::row_major
dynamic layout when template parameter layout_type::dynamic
is used
layout_type::dynamic
xexpression
copy constructor is refactored accordingly@JohanMabille this should be ready to merge!
Description
Make initializer lists work with all layouts. Change default dynamic layout to
layout_type::row_major
.