I have a question regarding the Array operations in Eigen (basically matrix element-wise operations).
Are such operations (+,-,*,/) parallelized in Eigen (when using OpenMP)? The doc does not specify it (c.f. here), however such operations would be expected to be parallelized since it would be pretty straightforward I guess.
Example:
MatrixXd A = MatrixXd::Zero(100,100);
MatrixXd B = MatrixXd::Ones(100,100);
MatrixXd C = A.array() + B.array(); // element-wise addition
MatrixXd D = A.array() / B.array(); // element-wise division
It would be great if it was parallelized. I have a lots of these element-wise operations in my code, and it would be heavier to redefine all of these with OpenMP.
Thanks in advance