Initialize Eigen::Vector3d from std::array<double,3>
I tried the following, but the last line is not compiling
#include <array>
#include <Eigen/Core>
int main() {
std::array<double, 3> a {{0., 1., 3.}};
Eigen::Vector3d v1 (a[0], a[1], a[2]); // Working
Eigen::Vector3d v2 {{a[0], a[1], a[2]}}; // Working
Eigen::Vector3d v3 (a.data()); // Working
Eigen::Vector3d v4 (a); // Not compiling
return 0;
}
https://godbolt.org/z/YYvdPdhEd If not to hard, it would be nice to get such Initializer implemented.