xOrder,nA+nK);
0192     Ak.midx(1,1:nA) = A_idx(1:nA);   <span class="comment">% midx(2,1:nA) = zeroes()</span>
0193     Ak.midx(1,nA+1:end) = K_idx(1:nK);
0194     Ak.midx(2,nA+1:end) = K_jdx(1:nK);
0195   <span class="keyword">end</span>
0196   
0197   Ak.Q = cell(nA+nK,1);
0198   <span class="comment">% copy linear terms</span>
0199   idx = 1;          <span class="comment">% index to _val/_row/_col arrays</span>
0200   <span class="keyword">for</span> midx=1:nA
0201     idxend = idx+A_nnz(midx)-1;
0202 