amgcl
amgcl copied to clipboard
how to implement matrix addition calculation
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));