forked from M-Labs/nac3
fixup! core/ndstrides: implement ndarray indexing
fix index comment
This commit is contained in:
parent
5a893e1c15
commit
787fe23202
|
@ -68,13 +68,9 @@ namespace indexing
|
||||||
/**
|
/**
|
||||||
* @brief Perform ndarray "basic indexing" (https://numpy.org/doc/stable/user/basics.indexing.html#basic-indexing)
|
* @brief Perform ndarray "basic indexing" (https://numpy.org/doc/stable/user/basics.indexing.html#basic-indexing)
|
||||||
*
|
*
|
||||||
* This is function very similar to performing `dst_ndarray = src_ndarray[indices]` in Python (where the variables
|
* This function is very similar to performing `dst_ndarray = src_ndarray[indices]` in Python.
|
||||||
* can all be found in the parameter of this function).
|
|
||||||
*
|
*
|
||||||
* In other words, this function takes in an ndarray (`src_ndarray`), index it with `indices`, and return the
|
* This function also does proper assertions on `indices` to check for out of bounds access.
|
||||||
* indexed array (by writing the result to `dst_ndarray`).
|
|
||||||
*
|
|
||||||
* This function also does proper assertions on `indices`.
|
|
||||||
*
|
*
|
||||||
* # Notes on `dst_ndarray`
|
* # Notes on `dst_ndarray`
|
||||||
* The caller is responsible for allocating space for the resulting ndarray.
|
* The caller is responsible for allocating space for the resulting ndarray.
|
||||||
|
|
Loading…
Reference in New Issue