summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_creation_functions.py
diff options
context:
space:
mode:
authoroleksiyskononenko <35204136+oleksiyskononenko@users.noreply.github.com>2022-07-07 18:19:23 -0700
committerGitHub <noreply@github.com>2022-07-07 18:19:23 -0700
commitb7add1b5215575536809a3d961134d31edd0d3d5 (patch)
tree37f88aef771ab710bc946149d69d7bdc22d43982 /numpy/array_api/tests/test_creation_functions.py
parentc9b5893039759f08ad949a43f7ad8dbabb322b62 (diff)
downloadnumpy-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_creation_functions.py')
0 files changed, 0 insertions, 0 deletions