the following is about MatMult() in manual.<br>"<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,&x);<br>VecCreateMPI(MPI Comm comm,m,M,&y);<br>"<br>I am wondering whether I must create Vector "y" before I call MatMult() regardless of parrellel and sequentail modes? <br>
thanks a lot.<br><br>Regards,<br>Yujie<br>