Re: Operations on derived type arrays
- From: "deltaseq0" <deltaseq0@xxxxxxxxxx>
- Date: Wed, 12 Sep 2007 09:26:24 -0400
"I get the impression that Richard is talking a bit past you." Most of the
information I read about is several bytes passed me but I am progressing up
the learning curve and appreciate the time people spent responding to
I'll look into SUN C SPEC CPU2000. I was interested in your comment about
arrays of structures versus structure of arrays. In my case, I need to
access all the elements of myArray (declared within a module) and USED
within many subroutines. I have no need to pass just myArray%x for example.
I didn't think that how myArray got passed to mySub was that important or if
copies were needed as compared to the many vector operations I need to
perform on the individual elements. My question was really about how memory
layout affects performance. All the elements of myArray are individual
vectors of myType x,y,z. Is an operation on myArray%x as efficient as an
operation on a vector x? I assume that myArray%x is not contiguous whereas
vector x is. So can I expect performance to be better if I pass the
individual vectors x,y,x compared to an array of defined types containing
the components x, y, z? Sorry for the confusion; just trying to use the
right terminology to get the question defined.
- Prev by Date: Re: how to read the last line of an input file (F77)?
- Next by Date: PRIVATE type of PUBLIC procedure error: standard conformance question.
- Previous by thread: Re: Operations on derived type arrays
- Next by thread: a question regarding printing out format