Power Programming Languages

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power

 View Only

If an array is contiguous?

By Archive User posted Tue April 23, 2013 02:46 AM

  

Originally posted by: Ka_Lin


IS_CONTIGUOUS(ARRAY) tests the contiguity of an array. Let's see the following example:

INTEGER, POINTER :: ap(:)
INTEGER, TARGET :: targ(10)
ap => targ(1:10:2)
PRINT *, IS_CONTIGUOUS(ap)     ! IS_CONTIGUOUS(ap) returns .FALSE.

The argument ARRAY can be an array of any type. If it's pointer, it must be associated.

For rules of whether an object is contiguous, see: http://pic.dhe.ibm.com/infocenter/comphelp/v121v141/topic/com.ibm.xlf141.aix.doc/language_ref/contiguity.html
 


#C/C++andFortran
#Fortran-Cafe-for-AIX
0 comments
0 views

Permalink