Intrinsic procedures#
Most of the intrinsic functions have already been mentioned. Here, we deal only with their general classification and with those that have so far been omitted. All intrinsic procedures can be used with keyword arguments:
call date_and_time(TIME=t)
and many have optional arguments.
The intrinsic procedures are grouped into four categories:
elemental - work on scalars or arrays, e.g.
abs(a);inquiry - independent of value of argument (which may be undefined), e.g.
precision(a);transformational - array argument with array result of different shape, e.g.
reshape(a, b);subroutines, e.g.
system_clock.
The procedures not already introduced are
Bit inquiry
|
Number of bits in the model |
Bit manipulation
|
Bit testing |
|
Logical AND |
|
Clear bit |
|
Bit extraction |
|
Set bit |
|
Exclusive OR |
|
Inclusive OR |
|
Logical shift |
|
Circular shift |
|
Logical complement |
Transfer function, as in
integer :: i = transfer('abcd', 0)
(replaces part of equivalence)
Subroutines
|
Obtain date and/or time |
|
Copies bits |
|
Returns pseudorandom numbers |
|
Access to seed |
|
Access to system clock |
|
Returns processor time in seconds |