Registered Member
|
Hi,
How to use openmp in Eigen for OOPs, since I'm a beginner in C++[https://eigen.tuxfamily.org/dox/TopicMultiThreading.html] is not sufficient to understand, for me. My requirement is as follows , #include <eigen3/Eigen/Core> #include <eigen3/Eigen/Dense> #include <eigen3/Eigen/Eigenvalues> #include <eigen3/unsupported/Eigen/MatrixFunctions> Class "****" { funct1(); funct2(); ........ }; funct1(){ MatrixXcd A(3,3); MatrixXcd B(3,3); MatrixXcd C(3,3); for(int i(0); i < N, i++){ B << .......... << endl;//(typedef entries .....) A += B; C *= A.exp(); } return pow(abs(C(0,1)),2); } int main(){ ****......... funct1(); } how to do parallel computation, kindly tell me what to and how to do......... best, sadashiv |
Registered Member
|
Heyho,
a) your function does not return anything. What do you want to caluclate? b) For your very small system of three 3x3 matrices does not need openmp. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]