diff options
author | oleksiyskononenko <35204136+oleksiyskononenko@users.noreply.github.com> | 2022-07-07 18:19:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 18:19:23 -0700 |
commit | b7add1b5215575536809a3d961134d31edd0d3d5 (patch) | |
tree | 37f88aef771ab710bc946149d69d7bdc22d43982 /numpy/array_api/tests/test_elementwise_functions.py | |
parent | c9b5893039759f08ad949a43f7ad8dbabb322b62 (diff) | |
download | numpy-b7add1b5215575536809a3d961134d31edd0d3d5.tar.gz |
DOC: improve `ascontiguousarray()` and `asfortranarray()` examples (#21501)
Right now, example for ascontiguousarray() only demonstrates that the function is capable to change the dtype, but it doesn't really change the memory layout since x is already C_CONTIGUOUS. In this PR we make this example more relevant and be consistent with the example for asfortranarray().
* DOC: make examples for `ascontiguousarray()` and `asfortranarray()` to be consistent
* Add more examples
* Get rid of .reshape()
* Reduce line length to 79 chars
* Change order of examples, remove trailing comments
* Use two-space indent
* Change `::` to `:`, remove code indentation
Diffstat (limited to 'numpy/array_api/tests/test_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions