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

Using Eigen Matrix in FORTRAN90?

Tags: None
(comma "," separated)
alicebain
Registered Member
Posts
1
Karma
0

Using Eigen Matrix in FORTRAN90?

Thu Mar 17, 2022 11:58 am
Hi everybody,

I was wondering if it is possible to pass an Eigen matrix to a FORTRAN90 subroutine, which does some calculations and returns the result back again as an Eigen Matrix? Would this be possible at all? If it is not possible, how could I pass a regular C++ array or a std::vector<std::vector<int>> object?

Does anyone have a running example for any of these cases (preferably using Eigen matrices): so a Fortran file, a C++ file and a Makefile to build it, while the C++ code passes a matrix to Fortran?

Thanks a million!

Best,
Alice


Bookmarks



Who is online

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