thankyou very much again..<br>i will just go through it and try to code it.<br><br>Anuj<br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 9:22 PM, Dave Goodell <span dir="ltr">&lt;<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I haven&#39;t studied your sample code, but you probably want to create two datatypes in your program.  One to describe a column in your image and one to describe a row in the image.  MPI_Type_vector is probably the most straightforward way to create these types.  The MPI Standard [1] (section 4.1.2) provides descriptions of how to use this routine, as do many of the books out there such as &quot;Using MPI&quot; [2].<br>

<br>
You can then send and receive your rows and columns using these derived datatypes.<br>
<br>
-Dave<br>
<br>
[1] <a href="http://www.mpi-forum.org/docs/mpi-2.2/mpi22-report.pdf" target="_blank">http://www.mpi-forum.org/docs/mpi-2.2/mpi22-report.pdf</a><br>
[2] <a href="http://www.amazon.com/Using-MPI-Programming-Engineering-Computation/dp/0262571323" target="_blank">http://www.amazon.com/Using-MPI-Programming-Engineering-Computation/dp/0262571323</a><div><div></div><div class="h5">
<br>
<br>
On Dec 3, 2009, at 12:51 AM, Anuj Patel wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi thanks for reply.<br>
<br>
Actually i am trying to paralleling simple HAAR WAVELET.<br>
<br>
In that i need to take summation and subtraction of  two row/column out of an very large array(which represents an image) and is in N*N form with very large dimensions.<br>
<br>
so what i want to do is pass two row/column to each worker process.<br>
so in that part i am confused how to do that.<br>
<br>
because i studied matrix multiplication but it just passes one row and a complete array to each worker.<br>
<br>
i hope i mad it bit clear. and i am attaching serial algo here.<br>
<br>
Thanks.<br>
<br>
Anuj Patel<br>
<br>
<br>
On Wed, Dec 2, 2009 at 8:50 PM, Dave Goodell &lt;<a href="mailto:goodell@mcs.anl.gov" target="_blank">goodell@mcs.anl.gov</a>&gt; wrote:<br>
On Dec 2, 2009, at 2:07 AM, Anuj Patel wrote:<br>
<br>
can anyone tell me how to pass two row and column at a time.?<br>
<br>
Can you elaborate a little bit?  Are you trying to pass two rows and two columns of an array as an argument to a function?  Is it in C or Fortran?<br>
<br>
Or do you mean how to send an MPI message containing the data from two rows and two columns of an array?<br>
<br>
-Dave<br>
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></div></div>
&lt;hs.c&gt;_______________________________________________<div class="im"><br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>