Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Summing arr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 27 Topic 8156 of 8767
Post > Topic >>

Re: Summing array elements

by Luka Djigas <ldigas@[EMAIL PROTECTED] > Apr 20, 2008 at 04:07 PM

On Sat, 19 Apr 2008 20:40:11 -0500, "Craig Dedo" <cdedo@[EMAIL PROTECTED]
>
wrote:

>    This most likely is a homework assignment.  However, if I am mistaken
and 
>Luka is new to Fortran . . .

Nope, not homework assignment.
Well, it's work, and I'm doing it at home, but I don't think that
counts ...

>
>    There is always the SUM() intrinsic function.  It can sum an array
along any 
>dimension or the whole array and can even sum those array elements for
which the 
>value of a corresponding MASK array is true.  RTFM.

I know about the sum intristic. Never used it though. I don't like
using intristics where I can do it by plain loop or something (ok, I
don't do the sinus function that way) ... that way I don't have to
think when I'm reading the code next time, what exactly does the
specified intristic do.

Anyway, I read the help. But didn't manage to figure it out.
As far as I can see, sum can be used to summ an entire array in one or
more dimensions. How can one sum just some elements from, for example
one dimensional array ?

regards
Luka
 




 27 Posts in Topic:
Summing array elements
Luka Djigas <ldigas@[E  2008-04-20 02:58:34 
Re: Summing array elements
"Craig Dedo" &l  2008-04-19 20:40:11 
Re: Summing array elements
"Gerry Ford" &l  2008-04-19 23:12:13 
Re: Summing array elements
dongyuanxun <dongyuanx  2008-04-19 21:19:08 
Re: Summing array elements
nospam@[EMAIL PROTECTED]   2008-04-19 21:29:07 
Re: Summing array elements
"Gerry Ford" &l  2008-04-20 01:29:19 
Re: Summing array elements
dongyuanxun <dongyuanx  2008-04-19 21:37:45 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-20 16:07:55 
Re: Summing array elements
Ron Shepard <ron-shepa  2008-04-20 09:44:15 
Re: Summing array elements
"Gerry Ford" &l  2008-04-21 01:25:07 
Re: Summing array elements
nospam@[EMAIL PROTECTED]   2008-04-21 07:58:38 
Re: Summing array elements
Ron Shepard <ron-shepa  2008-04-21 11:25:29 
Re: Summing array elements
"Gerry Ford" &l  2008-04-22 23:39:35 
Re: Summing array elements
"Gerry Ford" &l  2008-04-22 23:31:10 
Re: Summing array elements
"jamesgiles@[EMAIL P  2008-04-20 14:10:59 
Re: Summing array elements
dongyuanxun <dongyuanx  2008-04-19 21:10:10 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-20 16:30:12 
Re: Summing array elements
dpb <none@[EMAIL PROTE  2008-04-20 09:48:56 
Re: Summing array elements
"David Frank" &  2008-04-20 11:05:57 
Re: Summing array elements
dpb <none@[EMAIL PROTE  2008-04-20 10:21:27 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-21 01:35:50 
Re: Summing array elements
dpb <none@[EMAIL PROTE  2008-04-20 18:59:37 
Re: Summing array elements
glen herrmannsfeldt <g  2008-04-20 16:21:20 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-21 04:03:01 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-21 04:01:17 
Re: Summing array elements
"Gerry Ford" &l  2008-04-21 01:40:21 
Re: Summing array elements
Luka Djigas <ldigas@[E  2008-04-21 01:12:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:48:54 CDT 2008.