Skip to content

Commit

Permalink
Merge pull request #229 from NexGenAnalytics/fix_matrix-inf-norm_empt…
Browse files Browse the repository at this point in the history
…y-check

kokkos: fix empty matrix check in `matrix_inf_norm` #225
  • Loading branch information
mhoemmen authored May 30, 2022
2 parents a2e7ee5 + 2f4288f commit d0da498
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Scalar matrix_inf_norm(kokkos_exec<ExeSpace> /*kexe*/,

Impl::signal_kokkos_impl_called("matrix_inf_norm");

if (A.extent(0) == 0){
if (A.extent(0) == 0 || A.extent(1) == 0){
return init;
}

Expand Down

0 comments on commit d0da498

Please sign in to comment.