-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zero diagonals in diagonally dominant matrices generated #678
Comments
@seheracer For non-strictly diagonally dominant matrices a row of 0's would allow for a 0 at the diagonal, I don't see any comments in the files you reference to determine if this was intentionally allowed to occur (I doubt it, I'm guessing there would be added options to intentionally generate such a matrix since this would test corner cases in algorithms). |
Based on meeting discussion sounds like the path forward is to modify the code to ensure diagonal entries are present, rather than adding structural zeros as place holders for rows-of-zeros. |
@ndellingwood I agree with this, GS tests use this and expect the diagonal values to be nonzero. |
Sounds good. I will push the PR today. |
Fix Issue #678: kk_generate_diagonally_dominant_sparse_matrix
Link:
Lines 179-183, kk_generate_diagonally_dominant_sparse_matrix function,
https://github.com/kokkos/kokkos-kernels/blob/1be37e8aee0ddfee5ad5076f3a049c4c473f5665/src/common/KokkosKernels_IOUtils.hpp
Related Code:
Problem:
According to the last line of the above-given code, kk_generate_diagonally_dominant_sparse_matrix may create matrices with some diagonal entries being zero, because
elements_per_row+varianz
may be equal to 0, so, some rows may end up with all zero entries.Is this behavior acceptable?
Edit:
Also, the loop in
kokkos-kernels/src/common/KokkosKernels_IOUtils.hpp
Line 191 in 1be37e8
The text was updated successfully, but these errors were encountered: