-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
section: learnRelevant for the learn section on the webpageRelevant for the learn section on the webpage
Description
In the tutorial there are lines of code such as
print *,A(i,1:m)
mat(:,:) = 0.0
that could be written
print *,A(i,:)
mat = 0.0
I would either show the shorter syntax or show both versions and explain that they are equivalent. I would not want new Fortran programmers to get in the habit of using array sections when they can use refer to the whole array. I have read in the past about compilers that do not optimize x(:,:) as well as x. Maybe that has been fixed.
milancurcic
Metadata
Metadata
Assignees
Labels
section: learnRelevant for the learn section on the webpageRelevant for the learn section on the webpage