admin管理员组文章数量:1312721
I know for sure how to calculate a cross product myself, but usually I tree to use the standard library where possible.
I am aware that std::linalg
is still in development so this might already be the reason, but even blas
seems not to have that.
Is there really no cross product defined in std::linalg
and, if yes, is there a reason for that?
In Python there is numpy.linalg.cross
and I assumed that something similar exists basically in every linear algebra library.
I know for sure how to calculate a cross product myself, but usually I tree to use the standard library where possible.
I am aware that std::linalg
is still in development so this might already be the reason, but even blas
seems not to have that.
Is there really no cross product defined in std::linalg
and, if yes, is there a reason for that?
In Python there is numpy.linalg.cross
and I assumed that something similar exists basically in every linear algebra library.
1 Answer
Reset to default 6std::linalg is based on the dense BLAS as specified in Chapter 2 of the BLAS Technical Forum Standard ( https://wwwlib./blas/blast-forum/chapter2.pdf ), and focuses on the subset of routines that appear in the "Reference BLAS" with its core of BLAS 1, 2, and 3 routines (source: Section 9.1 of the std::linalg main proposal P1673: https://www.open-std./jtc1/sc22/wg21/docs/papers/2023/p1673r13.html ). Vector cross products are not in the BLAS Standard.
Sections 6 - 10 of P1673 clarify std::linalg's design. Section 9 in particular explains "What we exclude from the design" and why.
FYI, the version of P1673 that was voted into the C++ Working Draft was R13.
本文标签: cIs there really not cross product in stdlinalg and if yes whyStack Overflow
版权声明:本文标题:c++ - Is there really not cross product in std::linalg and if yes why? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741873024a2402303.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
std
...?) library to implement that. – Eljay Commented Feb 1 at 14:51