91 const vector<string> &ids,
100 tbb::task_arena limited_arena(nthreads);
101 limited_arena.execute([&] {
103 tbb::blocked_range<int>(0, Y.n_cols, 10),
104 [&](
const tbb::blocked_range<int>& r){
106 disable_parallel_blas();
113 spectralDecomp dcmp_lcl(dcmp);
116 for (int j = r.begin(); j != r.end(); ++j) {
121 idx = unique(join_cols(find_nan(y), idx_drop));
125 fastlmm fit = fastlmm<T1, T2, T3>(y, X_clean, dcmp_lcl, w, md, lambda, REML);
127 fit.estimate_delta( left, right, tol );
129 tbb::mutex::scoped_lock myLock(myMutex);
130 result.at(j) = fit.get_result();
131 result.at(j).ID = ids[j];
lmmFitResponses(const T2 &X, const spectralDecomp< T3 > &dcmp, const double &left=-10, const double &right=10, const double &tol=1e-6, const double &lambda=0, const int &nthreads=1, const ModelDetail md=LOW, const bool REML=false)
Definition lmmFitResponses.h:60