You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Professor, I have a simple question
When I use amgcl to solve the problem, I have used mpi to read the two matrices A and B. How to realize the addition calculation of these two matrices? auto A = std::make_shared<amgcl::mpi::distributed_matrix<DBackend>>( world, std::tie(chunk, ptr_A, col_A, val_A)); auto B = std::make_shared<amgcl::mpi::distributed_matrix<DBackend>>( world, std::tie(chunk, ptr_B, col_B, val_B));
The text was updated successfully, but these errors were encountered:
Summing of distributed matrices is outside of the library scope. There is an internal implementation that takes matrices as amgcl::backend::csr, so you could copy your local chunks into csr, add them, and use the result to construct the distributed matrix.
Hi Professor, I have a simple question
When I use amgcl to solve the problem, I have used mpi to read the two matrices A and B. How to realize the addition calculation of these two matrices?
auto A = std::make_shared<amgcl::mpi::distributed_matrix<DBackend>>( world, std::tie(chunk, ptr_A, col_A, val_A)); auto B = std::make_shared<amgcl::mpi::distributed_matrix<DBackend>>( world, std::tie(chunk, ptr_B, col_B, val_B));
The text was updated successfully, but these errors were encountered: