问题描述
我需要在 Eigen 中保存我的数据。我有一些矩阵和其他信息需要保存到 json 中。
但是我找不到任何有用的文件。你有什么建议吗?
\\ here is my data,a simple example
#include <Eigen/Core>
#include <json/json.h>
....
....
void main(int argc,char *argv[]){
int Type;
MatrixXf m1;
MatrixXf m2;
// init data,this is not important
m1 << 1,2,3,4,5,6,7,8,9;
m2 << 1,9;
// how to save to json file?
// {
// "Type":0,// "m1":[[1,3],[4,6],[7,9]],// "m2":[[1,// }
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)