the following is about MatMult() in manual.<br>&quot;<br>The parallel matrix can multiply a vector with n local entries, returning a vector with m local entries.<br>That is, to form the product<br>MatMult(Mat A,Vec x,Vec y);<br>
the vectors x and y should be generated with<br>VecCreateMPI(MPI Comm comm,n,N,&amp;x);<br>VecCreateMPI(MPI Comm comm,m,M,&amp;y);<br>&quot;<br>I am wondering whether I must create Vector &quot;y&quot; before I call MatMult() regardless of parrellel and sequentail modes? <br>
thanks a lot.<br><br>Regards,<br>Yujie<br>