cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
matrix class mpi
matrix class mpi
Jan 17, 2014 at 9:41pm UTC
andrix
(15)
Hi everyone,
i have implemented my matrix class as follows:
class matrix{
private:
unsigned rows;
unsigned cols;
bool **m;
void allocate(bool ***,unsigned, unsigned){
*ptr=new bool*[r];
(*ptr)[0]=new bool[r*c];
for(unsigned i=1;i<r;++i)
(*ptr)[i]=(*ptr)[0]+i*c;
}
.....
....
};
now i should parallel it with MPI, for example to compute the matrix vector product;
In particular i would like to share it row-wise between the processors, but I don't know how to do the send.
Can anybody help me?
Topic archived. No new replies allowed.