MPI_Scatter 2d vector
问题 I need to pass fragments of vector to all processes to make multiplication operation on matrix . I want to pass a vector (of orginal_size/processes) of vectors. std::vector<double> Algorytm::mnozenie(std::vector< std::vector <double> > matrix,std::vector<double> wektor){ std::vector<double> wynik(matrix.size(),0); if (rozmiar_macierzy_==(int)wektor.size()){ int size=matrix.size(); int world_size; MPI_Comm_size(MPI_COMM_WORLD, &world_size); MPI_Bcast(&size,1 , MPI_INT,0,MPI_COMM_WORLD); MPI