eigen auto type deduction in general product

后端 未结 2 1736
时光取名叫无心
时光取名叫无心 2020-12-21 04:08

I have the following piece of code (I apologize for the slightly larger code snippet, this is the minimal example I was able to reduce my problem to):

#inclu         


        
2条回答
  •  独厮守ぢ
    2020-12-21 04:23

    It probably has a lazy evaluation type that is only safe to evaluate once. You could capture it with:

    auto autoresultmatrix = autoresult.eval()
    

提交回复
热议问题