02.07.2014 Views

Intel(R) Fortran Language Reference (online version)

Intel(R) Fortran Language Reference (online version)

Intel(R) Fortran Language Reference (online version)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

SIZEOF<br />

Description:<br />

Syntax:<br />

Class:<br />

Arguments:<br />

Results:<br />

Returns the number of bytes of storage used by the argument. It cannot be<br />

passed as an actual argument.<br />

result = SIZEOF (x)<br />

Inquiry function; Generic<br />

x is a scalar or array (of any data type). It must not be an assumed-size array.<br />

The result type is INTEGER(4) on IA-32 processors; INTEGER(8) on <strong>Intel</strong><br />

Itanium processors. The result value is the number of bytes of storage used by<br />

x.<br />

SPACING<br />

SPREAD<br />

Examples<br />

SIZEOF (3.44) has the value 4.<br />

SIZEOF ('SIZE') has the value 4.<br />

Description: Returns the absolute spacing of model numbers near the argument value.<br />

Syntax: result = SPACING (x)<br />

Class: Elemental function; Generic<br />

Arguments: x must be of type real.<br />

Results: The result type is the same as x. The result has the value b e–p . Parameters b, e,<br />

and p are defined in “Model for Real Data”.<br />

If the result value is outside of the real model range, the result is TINY(X). (For<br />

information on TINY, see “TINY”.)<br />

Example<br />

If 3.0 is a REAL(4) value, SPACING (3.0) has the value 2 –22 .<br />

Description:<br />

Syntax:<br />

Creates a replicated array with an added dimension by making copies of<br />

existing elements along a specified dimension.<br />

result = SPREAD (source, dim, ncopies)<br />

9-146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!