INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

#### Jobs

(OP)
Hi guys

I am trying to understand a code from a book (I write few lines).

DO
f(1, :) = Fcn(x, y)
DO i=2, s
w = y + h*MATMUL(a(i, 1:i-1), f(1:i-1, :))
f(i, :) = Fcn(x + c(i)*k, w)
END DO
END DO

It is clear for me the meaning of a(i, 1:i-1) but i did not find anything for f(1, :), that is, when you have only :

### RE: A question about notation

The syntax is basically

#### CODE

array([start]:[end][:step=1],...)
where the items in [] are optional. So if f has been declared as f(-10:10,-9:9) it means f(1,-9:9)

You can do some pretty complicated stuff with this notation that you can't in any other language. For instance, you could assign all the odd members of an array to all the even elements of another array. It is basically an implied loop

#### CODE

integer::evens(20), odds(19)
...
evens(2::2) = odds(1::2) 

### RE: A question about notation

(OP)
Thank you very much xwb =)

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!