Skip to content
Prev 308732 / 398503 Next

Trouble returning 2D array into R from Fortran

Yes, I had stripped out the Fortran from the geta subroutine downwards
because is wasn't very important in returning a test output matrix.

I think that I should make explicit what problem I believe I am seeing in
what I have coded, and what form of the output matrix I would prefer. 

When I run the R code
calling the Fortran subroutines;
The matrix y which R returns is;
*
*
*
*
But from Fortan, via
The following matrix is reported;
*
*
The second is the form of the matrix that should be stored in the returned
matrix y in the R function call, if possible.

Do you see how the elements are being stored in the wrong order in the
matrix that R is storing, versus the one that is read out in the Fortran? Is
it possible to get the form of the second matrix?

Thanks in advance.



--
View this message in context: http://r.789695.n4.nabble.com/Trouble-returning-2D-array-into-R-from-Fortran-tp4646862p4647106.html
Sent from the R help mailing list archive at Nabble.com.