Eigen::Matrix vs. boost::multi_array vs. Eigen::Map
问题 I'm getting puzzling results while doing fairly simple tasks to compare the performance of: Eigen::Matrix boost::multi_array boost::multi_array mapped to Eigen::Matrix using Eigen::Map This is an abridged version of my test code; a fuller version can be found at: http://pastebin.com/faZ7TvJG. boost::multi_array<double, 2, Eigen::aligned_allocator<double> > boost_multi_array; Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> eigen_matrix; Eigen::Map<Eigen::Matrix<double,