lab6 Flashcards
(16 cards)
Dimensions indicate
the number of rows and columns
To declare any variable you have to
declare the number of array
Real, dimension (2,3)::A
The example above is
an array of 2 dimensions
Note that the maximum number of dimensions is
7
Note that the maximum number of dimensions is 7, this is used for
research purposes and many other sectors
Note that the maximum number of dimensions is 7, this is used for research purposes and many other sectors, for meteorological purposes
4 dimensions are more commonly used
Real, dimension(3,4,5,10)::temp
Temp(i,j,l,t)
Where i and j are the horizontal dimensions, l is levels and t is time.
Any array must be declared. The type can be
integer or real or character
initialization of array
Done by filling the array one by one
Note that the symbol “&” allows you to
continue writing in a new line, it makes the program consider the line ending with the symbol and starting with it as one.
The program fills the spaces
vertically not horizontally
array allocation
Used when you don’t previously know the dimension of the array
Integer =
32 bit
Real =
64 bit
String =
64 bit
Complex =
128 bit