Registered Member
|
I have a matrix (coeff) where each column of the matrix represents some polynomial coefficients. I have another array of the polynomial variable values (variables). I perform the dot product of a single column of coeff with variables to arrive at my solution. I am trying to optimize the calculation for speed.
Unlike the example below, coeff sometimes has 1024 rows and variables 1024 elements. When the matrix gets this large the calculations start slowing down. From the documentation it seems that Eigen does not support multithreading (OpenMP) for Vector calculations.
|
Registered Member
|
How about taking transpose of the coefficient matrix and using regular matrix/vector product? And if you have multiple polynomial values, matrix/matrix product is automatically parallelized.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]