1
- # Developer notes for DasVar_copy ()
1
+ # Developer notes for DasVar_subset() and _ DasVar_strideSubset ()
2
2
3
3
DasAry is unique in that it allows all array dimensions to be completly ragged.
4
4
This is rare. Most major binary array implementations such as those in NumPy,
@@ -7,14 +7,14 @@ This is reasonable as the majority of real world datasets can be accessed
7
7
via strided indexing. And those that can't are often fill-padded to so that
8
8
strided indexing applies.
9
9
10
- Since strided arrays are common, the ` DasVar_copy ()` function switches over
10
+ Since strided arrays are common, the ` DasVar_subset ()` function switches over
11
11
to strided copies when the extraction region satisfies the strided condition.
12
12
This allows for copy out in a loop that skips the slow top-down access function
13
- ` DasAry_getAt() ` . In addition, of the requested subsection is actually a continous
14
- range of memory with no repeats, then a simple memcpy() is used to speed up the
15
- process further.
13
+ ` DasAry_getAt() ` . In addition, of the requested subsection is actually a
14
+ continous range of memory with no repeats, then a simple memcpy() is used to
15
+ speed up the process further.
16
16
17
- To understand the internal implementation of DasVar_copy () a bit more, some
17
+ To understand the internal implementation of DasVar_subset () a bit more, some
18
18
background is useful.
19
19
20
20
## Strided Arrays
@@ -53,7 +53,7 @@ are added to read all values:
53
53
## Slicing alters iteration bounds
54
54
55
55
To slice an array we hold one (or more) of the indices constant and then
56
- iterate over the rest. The equation is not changed, only the ineration
56
+ iterate over the rest. The equation is not changed, only the iteration
57
57
indicies for one or more items. For example to get a slice at j = 2
58
58
then:
59
59
0 commit comments