Picturing Some Types
A vector-derived datatype follows a regular pattern but, at the same time, allows for "holes" via a stride. The stride normally exceeds the block length.

An indexed-derived datatype relies on arrays to hold element lengths and displacements, permitting holes that are arbitrary in location and size.

A struct-derived datatype consists of elements that may be of different basic datatypes; therefore, displacements must be given in bytes.

©
|
Cornell University
|
Center for Advanced Computing
|
Copyright Statement
|
Access Statement
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)