<div dir="ltr"><div>Hi Barry, <br><br>I'm not sure why MatCreateVecsFFW is not used at line 50/51. <br><br></div>The error occurs at line 94 because in the second loop, the example manually creates the x vector instead of the one created using the A matrix. For complex numbers this is not an issue but for real numbers the dimensions don't match. MatCreateVecsFFTW creates a vector of size 20 for N=10 but VecCreateSeq is creating a vector of size 10. I'm not sure what the rationale behind this test is. <br></div>