- res <- EMGLLF(array(phiInit,dim=c(p,m,k))[col.sel, , ], rhoInit, piInit, gamInit,
- mini, maxi, gamma, 0, as.matrix(X[, col.sel]), Y, eps, fast)
+ res <- EMGLLF(array(phiInit[col.sel, , ], dim=c(length(col.sel),m,k)),
+ rhoInit, piInit, gamInit, mini, maxi, gamma, 0,
+ as.matrix(X[, col.sel]), Y, eps, fast)