From 00a17f84dad8f78daf6968d4978f9961d5dc90e9 Mon Sep 17 00:00:00 2001 From: ivanpanch Date: Wed, 10 Sep 2025 09:00:06 +0200 Subject: [PATCH] Update MultiArray.xml --- doc/xml/MultiArray.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/xml/MultiArray.xml b/doc/xml/MultiArray.xml index ec336e7..7ebe6c5 100644 --- a/doc/xml/MultiArray.xml +++ b/doc/xml/MultiArray.xml @@ -7,7 +7,7 @@ containers. It specifies operations for accessing elements, traversing containers, and creating views of array data. MultiArray defines -a flexible memory model that accomodates +a flexible memory model that accommodates a variety of data layouts. @@ -103,7 +103,7 @@ base. Note that since positive index bases are possible, the origin need not exist in order to determine the location in memory of the MultiArray's elements. The strides determine how index values are mapped to memory offsets. -They accomodate a +They accommodate a number of possible element layouts. For example, the elements of a 2 dimensional array can be stored by row (i.e., the elements of each row are stored contiguously) or by column (i.e., the elements of each @@ -477,7 +477,7 @@ This returns the number of values contained in This expression accesses a specific element of -a.index_list is the unique set +a. index_list is the unique set of indices that address the element returned. It is equivalent to the following code (disregarding intermediate temporaries): @@ -818,8 +818,8 @@ returns idx. i.size(idx) size_type - If i specifies a both finish and -start values, this is equivalent to + If i specifies both a finish and a +start value, this is equivalent to (i.finish()-i.start())/i.stride(). Otherwise it returns idx. @@ -829,7 +829,7 @@ returns idx. This is another syntax for specifying the finish value. This notation does not include idx in the range of valid indices. It is equivalent to -index_range(r.start(), idx, r.stride()) +index_range(r.start(), idx, r.stride()). i <= idx @@ -837,7 +837,7 @@ value. This notation does not include This is another syntax for specifying the finish value. This notation includes idx in the range of valid indices. It is equivalent to -index_range(r.start(), idx + 1, r.stride()) +index_range(r.start(), idx + 1, r.stride()). idx < i @@ -860,14 +860,14 @@ value. This notation includes index This expression shifts the start and finish values of i up by idx. It is equivalent to -index_range(r.start()+idx1, r.finish()+idx, r.stride()) +index_range(r.start()+idx1, r.finish()+idx, r.stride()). i - idx index This expression shifts the start and finish values of i up by idx. It is equivalent to -index_range(r.start()-idx1, r.finish()-idx, r.stride()) +index_range(r.start()-idx1, r.finish()-idx, r.stride()).