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

How to use Object Oriented OpenMP in Eigen Library

Tags: None
(comma "," separated)
sadashiv
Registered Member
Posts
1
Karma
0
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
jensw
Registered Member
Posts
8
Karma
0
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.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]