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.
我一直在尝试找到一种方法来计算 Eigen 中向量的大小,但我无法做到。有人可以向我提供函数名称,如果它不存在吗?
我可以创建一个可以完成这项工作的全局方法,但我不想这样做。
你想要.norm()。请注意,还有.squaredNorm()、.normalized()和.normalize()。
您正在寻找的方法是.norm().
.norm()