3 views

Uploaded by Anonymous lV8E5mEO

Fortran

- What Every Computer Scientist Should Know About Floating Point
- ERR_KRXX
- dsp_blks
- functions solution
- P416 Fortran Tutorial S07
- Fx-991EX Quick Reference Guide
- BBA Syllabus
- gems
- CODE MQL
- Manuale R
- Cuda Math API
- a6
- lesson plan 3
- Lecture Noteerbyrtbyrturs 4
- Computer Science - Syl
- Bound Reference Yr 12 Further Maths
- 39534799-Vb-net-Notes
- Assignment Outline 2009 10
- Log
- 1507.08221.pdf

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

- What Every Computer Scientist Should Know About Floating PointUploaded byRaja Mustafa
- ERR_KRXXUploaded byPrabhakar Mishra
- dsp_blksUploaded byPar Vaz
- functions solutionUploaded byOwais Afzal Jan
- P416 Fortran Tutorial S07Uploaded byNicole Leines
- Fx-991EX Quick Reference GuideUploaded bySheeza Ghori
- BBA SyllabusUploaded byVaibhav Misra
- gemsUploaded bycaiosgc
- CODE MQLUploaded byfendy
- Manuale RUploaded byGiorgio Predelli
- Cuda Math APIUploaded bycorlears56
- a6Uploaded byBharti
- lesson plan 3Uploaded byapi-319871974
- Lecture Noteerbyrtbyrturs 4Uploaded byAmir Chip
- Computer Science - SylUploaded bymodiark
- Bound Reference Yr 12 Further MathsUploaded byLucas Gauci
- 39534799-Vb-net-NotesUploaded bySukanya Dhariya
- Assignment Outline 2009 10Uploaded byCarrie Taylor
- LogUploaded byVeerender Chary T
- 1507.08221.pdfUploaded byKristopher Archie Plaquia
- sys_archUploaded byNani2220
- Code2flow - Online Interactive Code to Flowchart ConverterUploaded byJnaneswar Reddy Sabbella
- Mathcad - CAPE - 2006 - Math Unit 2 - Paper 01Uploaded byJerome JAckson
- A Class of Numerical Methods for the Computation of Pythagorean SumsUploaded byathapa
- Funciones Con ParametrosUploaded byPaúl Lovatón Hoyos
- 840D_PGUploaded byfigaro1234
- 1D FEMUploaded byfake7083
- Lect_6_n_uUploaded byLalitSisodia
- Fund Prog Subject OutlineUploaded byapi-3860591
- RGA-1.docxUploaded byj udayasekhar

- A Time History Method for Analysing Operational Piping VibrationsUploaded byAnonymous lV8E5mEO
- Non-Destructive Health Monitoring by Crack Identification for Simply Supported Fiber Reinforced Composite StructuresUploaded byAnonymous lV8E5mEO
- Non-Destructive Health Monitoring by Crack Identification for Simply Supported Fiber Reinforced Composite StructuresUploaded byAnonymous lV8E5mEO
- Hacking RulesUploaded byAnonymous lV8E5mEO
- Paris FinalUploaded byAnonymous lV8E5mEO
- Feasibility Study on Crack Detection of Pipelines Using Piezoceramic TransducersUploaded byAnonymous lV8E5mEO
- Pliers Wrenches Locking eBookUploaded byAnonymous lV8E5mEO
- 11418-44332-1-PBUploaded byAnonymous lV8E5mEO
- Funny JokesUploaded byAnonymous lV8E5mEO
- Nonlinear VibrationsUploaded byBosonUp
- Introduction to Continuum Bio Mechanics (Synthesis Lectures on Bio Medical Engineering)Uploaded byCarko
- Article ParisUploaded byAnonymous lV8E5mEO
- Gra ViolaUploaded byAnonymous lV8E5mEO
- Psp Commencement Bei09Uploaded byAnonymous lV8E5mEO
- إعجاز القرآن - الباقلانيUploaded byAhmad Khundaqji
- Lecture 0 NewUploaded byAnonymous lV8E5mEO
- Lob Des SexismusUploaded byAnonymous lV8E5mEO
- Overview of the Property Development ProcessUploaded byAnonymous lV8E5mEO
- DiplomarbeitUploaded byAnonymous lV8E5mEO
- IGC3 ApplicationUploaded byAnonymous lV8E5mEO
- Fundamentals of Matrix ComputationsUploaded byAnonymous lV8E5mEO
- NEBOSH Questions 46 Principles of ControlUploaded byAnonymous lV8E5mEO
- W06Uploaded bys_chandnani
- Funny JokesUploaded byAnonymous lV8E5mEO
- Finite Element AnalysisUploaded byAnonymous lV8E5mEO
- FEM SoftwareUploaded byAnonymous lV8E5mEO
- Barry Davis. Essential Mathematical Skills for Engineering Science and Applied Mathematics (2001Uploaded byMurat Yıldız
- Finite Element Method for ProfessionalsUploaded byAnonymous lV8E5mEO
- Guidelines GMAWUploaded byAIRENITROX

- lesson 2 - mathUploaded byapi-341245224
- SigFigUploaded byDee Gdgdgdgeg
- RichardsonUploaded bypja752
- week 2 - Dimensioning exercise.pptUploaded byDanish Raza
- Dsp_ece_5th Sem (2mark Q&A)Uploaded byvinoth
- Excel_ Advanced Formulas and Functions - Ischool TutorialsUploaded bynksuthar5399
- Whats NewUploaded byWepukhulu Umar
- Numerical Computation Guide and What every scientist should know about floating point arithmetic.pdfUploaded bywbdsdvyo
- erp_hcm_ias2_2015_03_en_38_86d354393bb109e10000000a423f68_framesetUploaded byam_yousef
- Javascript Samples in CRM 4.0Uploaded bysuhas_kognole1575
- unit V 2 mark.docUploaded byAnonymous G5c7SYAnzy
- Advance Pricing ProfilesUploaded bykoushikmajumder1238333
- IT6502-Digital Signal ProcessingUploaded byindhu
- Unit ConversionsUploaded byBalakumar
- 04_Intro_to_Quantitative_MethodsUploaded byFon Acham
- Num MethodsUploaded bynoreply_t235
- 2017 State Sprint RoundUploaded byTom Tung Le
- 00390564Uploaded byStephen Emerson
- Rules for Rounding OffUploaded byErwin Enad
- Blackfin Pgr.ref.Man.rev1.3Uploaded bysaurabh1345
- Fixedpoint Toolbox 3Uploaded bypedRocabaniLLAs
- A guide to vehicle routing heuristics (1).pdfUploaded byasvenesekar
- C3D Grading VolumesUploaded bydobridorin
- Math 5 2nd Grading 37-41LPUploaded byKenneth Diaz
- Motorola 68K Programmer's ManualUploaded byNicolette Garde
- New & Changed Feature in OPMUploaded byMohmed Badawy
- A Floating-Point Fused Dot-Product UnitUploaded byvenkatmusala
- SAP Pp Certification MaterialUploaded bybmahesha73
- rounding decimals revisedUploaded byapi-349916631
- Datastage FunctionUploaded bybabjeereddy