This forum has been archived. All content is frozen. Please use KDE Discuss instead.

matrix multiplication slow

Tags: None
(comma "," separated)
cunzhizhang
Registered Member
Posts
2
Karma
0

matrix multiplication slow

Tue Aug 07, 2018 3:15 am
Hey

I define matrix_t as: typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor> matrix_t

matrix_t mat_one = matrix_t::Random(300,500);
matrix_t mat_two = matrix_t::Random(500,100);

Then if I want to compute the multiplication:

matrix_t mat_res = mat_one*mat_two is far more slow than

auto mat_res = mat_one*mat_two

So, can anyone tell me why?

thanks


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]