You can allow Ref<> to have a non default inner-stride (also called increment), as follows:Ref<VectorXf, 0, InnerStride<>>请参阅Ref的文档的示例函数 foo3 .See the example function foo3 of the Ref's documentation.即使您传递了真实的 VectorXf ,也可能会导致性能下降.The downside is a possible loss of performance even when you are passing a true VectorXf. 这篇关于如何传递本征矩阵行参考,将其视为向量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-27 17:14