amgcl icon indicating copy to clipboard operation
amgcl copied to clipboard

how to implement matrix addition calculation

Open hoseaaaa opened this issue 1 year ago • 2 comments

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));

hoseaaaa avatar Nov 03 '22 19:11 hoseaaaa