- mat A=conv_to<mat>::from(IDAmat.slice(0).submat(0,0,n-1,k-1));
- mat B=conv_to<mat>::from(C.submat(0,0,n-1,lc-1));
+
+ IDAmat.resize(k,k,q);
+ invIDAmat.resize(k,k,q);
+ buildFullRankIDA(IDAmat, invIDAmat, q, k, &DK[0]);
+
+
+ mat A=conv_to<mat>::from(IDAmat.slice(0).submat(0,0,k-1,k-1));
+
+ mat B=conv_to<mat>::from(C.submat(0,0,k-1,lc-1));