Also change 

    arrayfuncs.cholesky_delete(L[:n_active, :n_active], idx)

to

    [arrayfuncs.cholesky_delete(L[:n_active, :n_active], ii) for ii in idx]

to be completely rigurous about what idx is