我想使用特征库将无穷大数组乘以另一个零数组:
{
"countyid": 0,
"data": [
[
{
"Elements": [
{
"ID": 11,
"V": false,
"R": false
},
{
"ID": 16,
"V": false,
"R": false
},
{
"ID": 3,
"V": false,
"R": false
},
{
"ID": 5,
"V": false,
"R": false
}
]
},
{
"Elements": [
{
"ID": 486,
"V": false,
"R": false
},
{
"ID": 492,
"V": false,
"R": false
}
]
}
]
]
}
结果给了我
Eigen::ArrayXd a(2); a << INFINITY, INFINITY;
Eigen::ArrayXd b(2); b << 0.000, 0.000;
输出为
std::cout<a*b<<std::endl;
为什么我没有零向量?