Is there an array shorthand for this?
- From: "ferrad" <acfer@xxxxxxxxxxx>
- Date: 22 Dec 2005 09:57:01 -0800
I am adding a 1 dimensional array to the 4th column of a 2 dimensional
array. I know there is a shorthand for adding two 1 dimensional arrays
like x0 = x1 + x2, which is equivalent to x0(1:n) = x1(1:n) + x2(1:n)
eg.
real*8 x0(10)
real*8 a0(10,20)
the longhand is:
x0(1:10) = x0(1:10) + a0(1:10,4)
is there a shorthand?
x0 = x0 + a0(1,4) doesn't work, this only adds element a0(1,4) to
each element of x0, it doesn't cycle through the first index of a0.
.
- Follow-Ups:
- Re: Is there an array shorthand for this?
- From: Joost
- Re: Is there an array shorthand for this?
- Prev by Date: Re: Int and Real to string *without* using internal I/O?
- Next by Date: Re: Is there an array shorthand for this?
- Previous by thread: Updated Compiler Comparisons
- Next by thread: Re: Is there an array shorthand for this?
- Index(es):
Relevant Pages
|