We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 429f80f + 906f6b6 commit 31f4086Copy full SHA for 31f4086
1 file changed
include/libpy/ndarray_view.h
@@ -220,7 +220,7 @@ class ndarray_view {
220
return ndim;
221
}
222
223
- /** The number of bytes to go from one element to the next.
+ /** The shape of this array.
224
*/
225
const std::array<std::size_t, ndim>& shape() const {
226
return m_shape;
@@ -815,10 +815,10 @@ class any_ref_ndarray_view {
815
816
817
818
819
820
821
- return m_strides;
+ return m_shape;
822
823
824
/** The number of bytes to go from one element to the next.
0 commit comments