Hi, everyone<br><br>Assuming there are A1(M*N) A2(M*N) A3(M*N), I want to get <br> A1<br>A=A2<br> A3<br><br>My method is <br><br>MatGetArray(A1,&a1);<br>MatSetValues(A,a1);<br>MatGetArray(A2,&a2);<br>MatSetValues(A,a2);<br>
MatGetArray(A3,&a3);<br>MatSetValues(A,a3);<br><br>Is there any better methods for it? The above codes are slow. thanks a lot.<br><br>Regards,<br>Yujie<br><br><br>