inline void assign(std::vector<T>& x, const nil_index_list& /* idxs */, const std::vector<U>& y, const char* name = "ANON", int depth = 0) { x.resize(y.size()); for (size_t i = 0; i < y.size(); ++i) assign(x[i], nil_index_list(), y[i], name, depth + 1); }
inline void assign(Eigen::Matrix<T, R, C>& x, const nil_index_list& /* idxs */, const Eigen::Matrix<U, R, C>& y, const char* name = "ANON", int depth = 0) { x.resize(y.rows(), y.cols()); for (size_t i = 0; i < y.size(); ++i) assign(x(i), nil_index_list(), y(i), name, depth + 1); }
inline nil_index_list index_list() { return nil_index_list(); }