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.
嗯。我希望我认真地忽略了一些东西。我想将 2d 矢量(kartesian)v 旋转某个角度 phi。
我找不到生成适当矩阵或仅执行该功能的函数。
我知道如何手动做到这一点。我正在寻找可以为我执行此操作的 ublas 实用程序“某物”。
BLAS == 基本线性代数子程序,强调基本的. BLAS 函数非常通用,它们几乎没有二维矢量旋转那么具体。只需手动完成:制作自己的函数来构建
[cos phi,-sin phi sin phi, cos phi]
矩阵并将其与您的向量相乘。