Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我可以知道 ublass::vector push_back 在哪里或者有什么相同的吗?
ps(我不是在谈论 std::vector)
据我阅读文档可以看出,没有一个, ublas::vector 无法扩展。您必须像这样初始化它:
vector<double> v (3); for (int i = 0; i < v.size (); ++i) v (i) = i;