Re: Passing matrices from c++ to fortran

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----Original Message-----
From: "Americo Junior" <americojunior@xxxxxxxxxxxxxx>
To: gcc-help@xxxxxxxxxxx
Date: Tue, 31 Oct 2006 16:02:53 -0300 (EST)
Subject: Passing matrices from c++ to fortran

I want to pass  a dynamically aloccated matrix from c++ code to a fortran
subroutine.

I know how to do this with a static matrix, but with dynamical matrix
there are some  difficulties.

________________________________-
You leave us to guess what you are talking about; no doubt you want to do something implementation dependent.  If you are running on a system where your Fortran supports f2c style assumed-size arrays, you might model your implementation on that.  You would require a flat C array packed by columns, with the column length passed (by reference?) as the explicit-shape specification.



Tim Prince


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux