美文网首页
eigen3库的赋值操作

eigen3库的赋值操作

作者: 送分童子笑嘻嘻 | 来源:发表于2020-02-24 18:40 被阅读0次
            Eigen::Matrix3d matrix3d(3, 3);
          matrix3d(0, 0) = -0.2822;
            matrix3d(0, 1) = 0.9594;
            matrix3d(0, 2) = 0;
            matrix3d(1, 0) = 0.9594;
            matrix3d(1, 1) = 0.2822;
            matrix3d(1, 2) = 0;
            matrix3d(2, 0) = 0;
            matrix3d(2, 1) = 0;
            matrix3d(2, 2) = 0;

            matrix3d<<-0.2822, 0.9594 , 0.
                    ,0.9594 , 0.2822,  0.
                    ,-0.     , 0.    , -0.  ;

相关文章

网友评论

      本文标题:eigen3库的赋值操作

      本文链接:https://www.haomeiwen.com/subject/fzzroctx.html