4.3.4 RESQML Jagged Array Construction

Topic Version1Published09/11/2015
For StandardRESQML v2.0.1

RESQML uses a “jagged array” construction to store irregular array data (Figure 4.3.4-1). This type of a data structure appears in many programming languages where it is sometimes called a “list of lists” or an “array of arrays”. This construction uses a pair of arrays. The “elements” of the array stores all of the values while the “cumulative length” is a 1D array of cumulative lengths to the end of the current sub-array.

Figure 4.3.4-1 RESQML jagged array-object.

For example, to store the following three arrays as a jagged array:

(a b c)

(d e f g)

(h)

Elements = (a b c d e f g h)

Cumulative Length = (3 7 8)