0 Up votes0 Down votes

4 views27 pagesFortran

Mar 07, 2018

© © All Rights Reserved

PDF, TXT or read online from Scribd

Fortran

© All Rights Reserved

4 views

Fortran

© All Rights Reserved

- 718114
- Printing Floating-Point Numbers Quickly and Accurately
- C ++ (1).pdf
- Tutorial and Exercise - 1
- Lab Assignments
- Microprocessor Lab
- c Programming Syl Lab Us
- 55326265-Commodore-64-Subroutine-Cookbook.pdf
- r 2 Calculations
- FORTRAN TRAINING - Large-scale simulations with Fortran 95 An object-based approach
- Dynamic+Memory+Allocation
- 4.44 TYBSc Applied Comp Computer Sc
- Hildreth 1957
- pg534-35
- Business Mathematics
- UG
- Algebra Lineal y Otros Temas
- CA2E_BuildApps_ENU.pdf
- PTV_Vissim_9_-_what_s_new.pdf
- Note - SICP

You are on page 1of 27

html

CHAPTER

This chapter lists the intrinsic function names recognized by the f95 compiler.

The generic Fortran 95 intrinsic functions are grouped in this section by functionality as they appear in the

Fortran 95 standard.

The arguments shown are the names that can be used as argument keywords when using the keyword form,

as in cmplx(Y=B, KIND=M, X=A).

Consult the Fortran 95 standard for the detailed specifications of these generic intrinsic procedures.

1 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

2 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

3 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

sequence

sequence

sequence

4 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

5 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

SELECTED_REAL_KIND ([P, R]) Real kind type parameter value, given precision and range

LOGICAL (L [, KIND]) Convert between objects of type logical with different kind type parameters

6 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

7 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

TRANSFER (SOURCE, MOLD [, SIZE]) Treat first argument as if of type of second argument

8 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

RRSPACING (X) Reciprocal of the relative spacing of model numbers near given number

9 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

10 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

PACK (ARRAY, MASK [, VECTOR]) Pack an array into an array of rank one under a mask

UNPACK (VECTOR, MASK, FIELD) Unpack an array of rank one into an array under a mask

11 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

12 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

command arguments

that invoked the program

STATUS]) argument

13 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

STATUS, TRIM_NAME]) environment variable.

ZONE, VALUES])

RANDOM_SEED ([SIZE, PUT, GET]) Initializes or restarts the pseudorandom number generator

COUNT_RATE, COUNT_MAX])

14 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

TABLE 2-1 Specific and Generic Names for Fortran 95 Intrinsic Functions

15 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

"double precision" means double-precision real.

The Fortran 2000 draft standard provides a set of intrinsic modules that define features to support IEEE

arithmetic and interoperability with the C language. These modules define new functions and subroutines,

and are implemented in the Sun Studio 8 Fortran 95 compiler.

The Fortran 2000 draft standard intrinsic modules IEEE_EXCEPTIONS, IEEE_ARITHMETIC, and

IEEE_FEATURES to support new features in the proposed language standard to support IEEE arithmetic

and IEEE exception handling.

The draft standard defines a set of inquiry functions, elemental functions, kind functions, elemental

subroutines, and nonelemental subroutines. These are listed in the tables that follow.

To access these functions and subroutines, the calling routine must include

Function Descripton

exception.

16 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Function Description

numbers.

accuracy specified by the IEEE standard.

conversion rounding during formatted input/output.

Number.

mode.

IEEE_SUPPORT_SQRT([X]) Inquire whether the processor supports the IEEE square root.

The module IEEE_ARITHMETIC contains the following elemental functions for real X and Y for which

17 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Function Description

IEEE_REM(X,Y) The IEEE REM remainder function, X - Y*N where N is the integer

nearest to the exact value of X/Y.

18 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Function Description

precision and range.

Subroutine Description

19 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Subroutine Description

environment.

Subroutine Description

The Fortran 2000 draft standard provides a means of referencing C language procedures. The

ISO_C_BINDING module defines three support procedures as intrinsic module functions. Accessing these

functions requires

20 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Function Description

indicates whether C_PTR_1 and C_PTR_2 are

associated with the same entity.

C_F_POINTER(CPTR, FPTR [, SHAPE]) Associates a pointer with the target of a C pointer and

specifies its shape.

For details on the ISO_C_BINDING intrinsic module, see Chapter 15 of the Fortran 2000 draft standard at

http://www.j3-fortran.org/.

The following functions are considered intrinsics by the f95 compiler, but are not part of the Fortran 95

standard.

When compiling with -xknown_lib=blas, the compiler will recognize calls to the following routines as

intrinsics and will optimize for and link to the Sun Performance Library implementation. The compiler will

ignore user-supplied versions of these routines.

Function Description

DAXPY

21 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Function Description

SAXPY

ZAXPY

DCOPY

SCOPY

ZCOPY

CDOTU

DDOT

SDOT

ZDOTC

ZDOTU

DSCAL

SSCAL

ZSCAL

See the Sun Performance Library User's Guide for more information on these routines.

The following table lists intrinsic functions that are recognized by the compiler when compiling for interval

arithmetic (-xia). For details, see the Fortran 95 Interval Arithmetic Programming Reference.

22 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

23 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

The f95 compiler recognizes a variety of legacy intrinsic functions that were defined by Fortran compilers

from other vendors, including Cray Research, Inc. These are obsolete and their use should be avoided.

TABLE 2-3 Intrinsic Functions From Cray CF90 and Other Compilers

[K=]k)

[K=]k)

[K=]k)

24 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

[SHIFT=]j)

[SHIFT=]j)

[SHIFT=]j)

LOC ([I=]i) Returns the address of a variable (See Section 1.4.32, loc: Return the

Address of an Object)

25 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

SHIFTL ([I=]i,[J=]j) Shift left with zero fill. Use ISHFT(i,j) or ISHFTC(i,j,k) instead.

SHIFTR ([I=]i,[J=]j) Shift right with zero fill. Use ISHFT(i,j) or ISHFTC(i,j,k) instead.

Returns the size in bytes of the machine representation of the given variable, x. If x is an array, it returns the

size of the base element and not the size of the whole array

error output; integer; set to an error code if an error detected, zero otherwise

26 of 27 12/19/2014 3:13 PM

C H A P T E R 2 - Fortran 95 Intrinsic Functions https://docs.oracle.com/cd/E19422-01/819-3684/2_F95_Intrins.html

Memory allocation, reallocation, and deallocation functions malloc(), realloc(), and free() are

implemented as f95 intrinsics. See Section 1.4.35, malloc, malloc64, realloc, free: Allocate/Reallocate

/Deallocate Memory for details.

27 of 27 12/19/2014 3:13 PM

- 718114Uploaded byvanaj123
- Printing Floating-Point Numbers Quickly and AccuratelyUploaded byPeter Goodsall
- C ++ (1).pdfUploaded bySri Ramachandra Prabu
- Tutorial and Exercise - 1Uploaded byJaiprasad Reddy
- Lab AssignmentsUploaded byAIman
- Microprocessor LabUploaded by91akshath
- c Programming Syl Lab UsUploaded bysam
- 55326265-Commodore-64-Subroutine-Cookbook.pdfUploaded bybandihoot
- r 2 CalculationsUploaded bys8nd11d UNI
- FORTRAN TRAINING - Large-scale simulations with Fortran 95 An object-based approachUploaded byWilliam Kilpatrick
- Dynamic+Memory+AllocationUploaded bylalitha
- 4.44 TYBSc Applied Comp Computer ScUploaded byDips12345678
- Hildreth 1957Uploaded bymaryjar
- pg534-35Uploaded byLeonard Gonzalo Saavedra Astopilco
- Business MathematicsUploaded bydanger zone
- UGUploaded byMariaUrtubi
- Algebra Lineal y Otros TemasUploaded byrmsanchep
- CA2E_BuildApps_ENU.pdfUploaded bysangili2005
- PTV_Vissim_9_-_what_s_new.pdfUploaded byGlaub
- Note - SICPUploaded byShen JinWei
- module 1 parent letterUploaded byapi-291222441
- Syllabus of JEE MathematicsUploaded byShivang Agarwal
- Jeeadv Maths SyllabusUploaded bymajji satish
- TutorialGuide-Extract.pdfUploaded byLoi
- CL ProgUploaded bySat's
- You Need Arrays.pdfUploaded byMicklo Mrtinez Santiago
- R-intro.docxUploaded byRobert Manea
- 1994 - Good Features to Track {CVPR'94}Uploaded byDaniel Bastos Moraes
- dec_2012_D-87-12Uploaded byDinesh Kumar Yadav
- MathUploaded bybdripon

- Finite Element Method for ProfessionalsUploaded byAnonymous lV8E5mEO
- Design and Manufacturing of a motor operated can crusherUploaded byAnonymous lV8E5mEO
- A benchmark for free vibration and effective coupling of thick piezoelectric smart structures.pdfUploaded byAnonymous lV8E5mEO
- Feasibility Study on Crack Detection of Pipelines Using Piezoceramic TransducersUploaded byAnonymous lV8E5mEO
- FEM SoftwareUploaded byAnonymous lV8E5mEO
- Fundamentals of Matrix ComputationsUploaded byAnonymous lV8E5mEO
- 11418-44332-1-PBUploaded byAnonymous lV8E5mEO
- Introduction to Continuum Bio Mechanics (Synthesis Lectures on Bio Medical Engineering)Uploaded byCarko
- Overview of the Property Development ProcessUploaded byAnonymous lV8E5mEO
- Finite Element AnalysisUploaded byAnonymous lV8E5mEO
- Funny JokesUploaded byAnonymous lV8E5mEO
- Paris FinalUploaded byAnonymous lV8E5mEO
- Article ParisUploaded byAnonymous lV8E5mEO
- Pliers Wrenches Locking eBookUploaded byAnonymous lV8E5mEO
- Non-Destructive Health Monitoring by Crack Identification for Simply Supported Fiber Reinforced Composite StructuresUploaded byAnonymous lV8E5mEO
- A Time History Method for Analysing Operational Piping VibrationsUploaded byAnonymous lV8E5mEO
- Lecture 0 NewUploaded byAnonymous lV8E5mEO
- NEBOSH Questions 46 Principles of ControlUploaded byAnonymous lV8E5mEO
- Nonlinear VibrationsUploaded byBosonUp
- Guidelines GMAWUploaded byAIRENITROX
- IGC3 ApplicationUploaded byAnonymous lV8E5mEO
- Engineering Design PrinciplesUploaded byAnonymous lV8E5mEO
- W06Uploaded bys_chandnani
- Barry Davis. Essential Mathematical Skills for Engineering Science and Applied Mathematics (2001Uploaded byMurat Yıldız
- Introduction to Competitive maintenanceUploaded byAnonymous lV8E5mEO
- PBL learningUploaded byAnonymous lV8E5mEO

- Chapter 1Uploaded bySarah Laras Wita
- Advanced.schedulingUploaded byCezzi Sandoval Montiel
- Bete 106usa CatalogUploaded bymacze
- AllPlan Nemetchek 3d tutorial 2005Uploaded byČovjek Neki
- Handbook Mysore (1)Uploaded byBiprakanta Pal
- UET Taxila Post Graduate Prospectus_PG_2013_FinalUploaded bywaqasahmadz
- duda_solutions.pdfUploaded byR Gowri Prasad
- lifi technology abstract srkr.docxUploaded bysabina
- FRP Flexure Design MANUAL (Ver.1.2)Uploaded byJorge Martinez
- Order Re: Internet and Social Media Searches of JurorsUploaded byJim Dedman
- 5599-9001-003EN1014 front furajare autocapturant EnglishUploaded byGabriel Rusu
- FM53-EN-version1.04 -TeltonikaUploaded byPankaj Ramole
- sf-11-sect-14-028-033Uploaded byShahir Ibrahimi
- NR 311901 Digital Systems DesignUploaded bySrinivasa Rao G
- Sales BOM Delivery of Both ItemsUploaded byrakesh_thevar
- Complete Overview of Lightning Arresters 2Uploaded bySumanjyotiPanda
- SCM - CASELETSUploaded byAshish Joshi
- equations dip questionsUploaded byapi-197799687
- Detection of Wheezes Using a Wearable Distributed Array of MicrophonesUploaded byHuayun Zhou
- Intrution Detection Systems (IDS)Uploaded byVinod Maddipatla
- Citizen CL S621,CL S621C,CL S631 Technical ManualUploaded bystevanreljic
- TSMP WhitepaperUploaded byAlexander Pelov
- Fatigue Analysis W- CIIUploaded bynaeand
- sipartUploaded byabhi1234u
- 05Song ThesisUploaded byMuhammad Kamran
- THERMALSECTION 2Uploaded byeuqehtb
- i-sens 30 pro Electrolyte Analyzer user manualUploaded byfaiz
- i3 Service Manual-V2.2Uploaded byByron Cuevas Mendoza
- CCC.pdfUploaded byGhanshyam Sharma
- PLP_UIM.pdfUploaded byLocky Dark

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.