diff options
author | David Warde-Farley <wardefar@iro.umontreal.ca> | 2012-01-25 11:49:43 -0500 |
---|---|---|
committer | David Warde-Farley <wardefar@iro.umontreal.ca> | 2012-01-25 11:49:43 -0500 |
commit | 67ba2871d104513e8c25aded9fb47a99108d8688 (patch) | |
tree | caca47c2d49d9c32279734dee53faacd88a62f6f /numpy/lib/src | |
parent | 214134f00dcd895582d80f9f09a961f8e33eb02c (diff) | |
download | numpy-67ba2871d104513e8c25aded9fb47a99108d8688.tar.gz |
DOC: add a high-level comment for arr_insert_loop
Diffstat (limited to 'numpy/lib/src')
-rw-r--r-- | numpy/lib/src/_compiled_base.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 58b9f5ecd..f35fa3c75 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -302,6 +302,14 @@ fail: static char arr_insert__doc__[] = "Insert vals sequentially into equivalent 1-d positions indicated by mask."; +/* + * Insert values from an input array into an output array, at positions + * indicated by a mask. If the arrays are of dtype object (indicated by + * the objarray flag), take care of reference counting. + * + * This function implements the copying logic of arr_insert() defined + * below. + */ static void arr_insert_loop(char *mptr, char *vptr, char *input_data, char *zero, char *avals_data, int melsize, int delsize, int objarray, |