span>
0132     midxAstart=1;          <span class="comment">% indices to *_nzs() and *_idx() arrays</span>
0133     midxKstart=1;
0134     idxA=1;                <span class="comment">% indices to *_val, *_col, *_row arrays</span>
0135     idxK=1;
0136 
0137     <span class="keyword">for</span> k=1:pen.mconstr
0138       midxAend=midxAstart+pen.ai_dim(k)-1;
0139       midxKend=midxKstart+pen.ki_dim(k)-1;
0140       nnzAsum=sum(pen.ai_nzs(midxAstart:midxAend));
0141       nnzKsum=sum(pen.ki_nzs(midxKstart:mi