How to get address of an array

From: Shuo Yang (yang22_at_purdue.edu)
Date: 04/28/04


Date: Tue, 27 Apr 2004 19:04:44 -0500

I have a two dimension array in fortran,
double precision buffer(size, 4)

I want to get the 2nd row's starting address, i.e, buffer(1, 2). How can
I do it?
Is there a way similar to C like
//what I want to do here
{
char* p;
p= &(buffer[1,2])
}
Thanks.



Relevant Pages

  • Object Oriented Optimization
    ... I have the following problem with re-using a fortran 77 optimization ... double precision, dimension, intent:: co ... several objectives and constraints. ...
    (comp.lang.fortran)
  • Re: help about ARPACK solver
    ... Fortran uses single precision variables by default. ... Fortran program, that is *single* precision. ... I still dont know what kind of criteria Matlab adopts to form ...
    (sci.math.num-analysis)
  • Re: help about ARPACK solver
    ... Fortran uses single precision variables by default. ... Fortran program, that is *single* precision. ...
    (sci.math.num-analysis)
  • Re: help about ARPACK solver
    ... could be as precise as, however, when I used the eigenvector ... Fortran uses single precision variables by default. ... Fortran program, that is *single* precision. ...
    (sci.math.num-analysis)
  • Re: help about ARPACK solver
    ... Matlab's eigsfunction uses ARPACK, so logically your Fortran ... Matlab uses 'double precision' variables throughout by default. ... Fortran uses single precision variables by default. ... Fortran program, that is *single* precision. ...
    (sci.math.num-analysis)