<div dir="ltr"><div><div>Hi all,<br></div>I am trying to nest to square matrices to form a rectangular one with dims 2n x n (with n the size of the square matrices)<br></div>I want the two matrices to have  interlaced rows so I passed the following 2 list of indices to MatCreateNest:<br><div><br>[[ 0  2  4  6  8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48]<br>[ 1  3  5  7  9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49]]<br><br></div><div>And we get the following error message:<br>Global sizes (25,25) of nested submatrix (0,0) do not agree with space defined by index sets (50,25)<br><br></div><div>The size of the 2 square matrices is 25 x 25.<br><br></div><div>What am I doing wrong?<br><br></div><div>Thanks in advance,<br><br></div><div><br></div></div>