boost ublas:旋转二维向量
嗯。我希望我真的忽略了一些事情。 我想将 2d 向量 (kartesian) v 旋转一定角度 phi。
我找不到生成适当矩阵的函数 或者只是执行该功能。
我知道如何手工完成此操作。我正在寻找 ublas 实用程序“某物” 这对我有用。
Erm. I hope I am seriously overlooking something.
I want to rotate a 2d vector (kartesian) v by a certain angle phi.
I can't find a function that generates the appropriate matrix
or just performs that function.
I know how to do this by hand. I am looking for a ublas utility "something"
that does this for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BLAS == 基本线性代数子例程,强调基本。 BLAS 函数非常通用,它们没有像 2D 矢量旋转那样具体的功能。
只需手动执行即可:创建自己的函数来构建
矩阵并将其与向量相乘。
BLAS == Basic Linear Algebra Subroutines, emphasis on the basic. The BLAS functions are extremely general, they don't have anything nearly as specific as 2D vector rotations.
Just do it manually: make your own function that builds a
matrix and multiplies it with your vector.