Skip to content

Commit

Permalink
Merge pull request #156 from pdumon/155
Browse files Browse the repository at this point in the history
Fixes #155
  • Loading branch information
JohanMabille committed Mar 9, 2020
2 parents 1bd5ba2 + 6afd0d8 commit b31ac78
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 @@ -705,7 +705,7 @@ namespace linalg
throw std::runtime_error("Dot: shape mismatch.");
}

result.resize({t.shape()[0]});
result.resize({static_cast<std::size_t>(t.shape()[0])});

blas_index_t shape_x, shape_y;
cxxblas::Transpose trans;
Expand Down Expand Up @@ -747,7 +747,7 @@ namespace linalg
throw std::runtime_error("Dot: shape mismatch.");
}

result.resize({o.shape()[1]});
result.resize({static_cast<std::size_t>(o.shape()[1])});

blas_index_t shape_x, shape_y;
cxxblas::Transpose trans;
Expand Down Expand Up @@ -812,7 +812,7 @@ namespace linalg
{
// TODO add check to compare strides & shape

result.resize({t.shape()[0], t.shape()[0]});
result.resize({static_cast<std::size_t>(t.shape()[0]), static_cast<std::size_t>(t.shape()[0])});

cxxblas::syrk<blas_index_t>(
get_blas_storage_order(result),
Expand All @@ -838,7 +838,7 @@ namespace linalg
return result;
}

result.resize({t.shape()[0], o.shape()[1]});
result.resize({static_cast<std::size_t>(t.shape()[0]), static_cast<std::size_t>(o.shape()[1])});

cxxblas::gemm<blas_index_t>(
get_blas_storage_order(result),
Expand Down

0 comments on commit b31ac78

Please sign in to comment.