Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is an array defined by dimensions in fortran? Why doesn't it conform to the real definition?
What is an array defined by dimensions in fortran? Why doesn't it conform to the real definition?
After the dimension in Fortran defines an array, you need to specify the type of the array, and then you can specify Yes.

Integer, real (kind=4), double precision (double precision floating point), etc.

If no type is specified, the default value is real number (kind=4), that is, single-precision floating-point type.

For example, if I want to define two double-precision floating-point numbers, there are two ways to define them:

1. Use dimensions

Dimensions A(4.4), B(3.3)

Double precision a, b

2. The second method

Real number (kind = 8):: A (4,4), B (3,3)

These two definitions are equivalent ~ welcome to adopt my answer, thank you.