Convert Eigen Matrix to C array

后端 未结 7 1939
深忆病人
深忆病人 2020-11-30 03:33

The Eigen library can map existing memory into Eigen matrices.

float array[3];
Map(array, 3).fill(10);
int data[4] = 1, 2, 3, 4;
Matrix2i mat         


        
7条回答
  •  生来不讨喜
    2020-11-30 04:06

    You need to use the Map function again. Please see the example here: http://forum.kde.org/viewtopic.php?f=74&t=95457

提交回复
热议问题