allocatableattribute to declare a dynamic array whose size is unknown at compile time- Bracket syntax for array constructors; for example,
[1,2,3] - Implied
doloop array constructor; for example,[(i,i=1,3)] - Type coercion, or mixed mode arithmetic, where the values of lower kinds get implicitly promoted when used in expressions with higher kinds
allocateanddeallocatestatements to explicitly allocate or free arrays from memory- Indexing and slicing arrays
- Built-in functions:
sum, which returns the sum of all elements of a numeric arraylboundanduboundto return the lower and upper bounds, respectively, of an arraypack, which returns array elements that meet a conditionminandmaxto return the minimum or maximum, respectively, from any number of valuesnint, which returns the nearest integer of an input real numberall, which returns.true.if all elements of an input logical array are.true.
New Fortran elements, at a glance