Skip to content

Commit

Permalink
Merge pull request #133 from tdegeus/patch
Browse files Browse the repository at this point in the history
Correcting std::array constructor call
  • Loading branch information
wolfv committed Oct 3, 2019
2 parents 01e970f + b82595e commit 1dba9cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/xtensor-blas/xlinalg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ namespace linalg
std::array<std::size_t, 1> vN = {N};
xtensor<value_type, 1, layout_type::column_major> w(vN);

std::array<std::size_t, 2> shp({N, N});
std::array<std::size_t, 2> shp = {N, N};
xtensor<value_type, 2, layout_type::column_major> VL(shp), VR(shp);

// jobvl N: left eigenvectors of A are not computed
Expand Down Expand Up @@ -484,7 +484,7 @@ namespace linalg
xtensor<value_type, 1, layout_type::column_major> wi(vN);

// TODO check if we can remove allocation and pass nullptr as VL / VR
std::array<std::size_t, 2> shp({N, N});
std::array<std::size_t, 2> shp = {N, N};
xtensor<value_type, 2, layout_type::column_major> VL(shp);
xtensor<value_type, 2, layout_type::column_major> VR(shp);

Expand All @@ -511,7 +511,7 @@ namespace linalg
xtensor<value_type, 1, layout_type::column_major> w(vN);

// TODO check if we can remove allocation and pass nullptr as VL / VR
std::array<std::size_t, 2> shp({N, N});
std::array<std::size_t, 2> shp = {N, N};
xtensor<value_type, 2, layout_type::column_major> VL(shp);
xtensor<value_type, 2, layout_type::column_major> VR(shp);

Expand Down Expand Up @@ -1401,7 +1401,7 @@ namespace linalg
XTENSOR_ASSERT(da.dimension() == 2);
XTENSOR_ASSERT(db.dimension() == 2);

std::array<std::size_t, 2> shp = { da.shape()[0] * db.shape()[0], da.shape()[1] * db.shape()[1] };
std::array<std::size_t, 2> shp = {da.shape()[0] * db.shape()[0], da.shape()[1] * db.shape()[1]};
xtensor<value_type, 2> res(shp);

for (std::size_t i = 0; i < da.shape()[0]; ++i)
Expand Down

0 comments on commit 1dba9cb

Please sign in to comment.