@@ -374,7 +374,7 @@ namespace xt
374374 inner_shape_type m_shape;
375375 inner_strides_type m_strides;
376376 mutable inner_backstrides_type m_backstrides;
377- storage_type m_data ;
377+ storage_type m_storage ;
378378
379379 void init_array (const shape_type& shape, const strides_type& strides);
380380 void init_from_python ();
@@ -477,7 +477,7 @@ namespace xt
477477 shape_type shape = xtl::make_sequence<shape_type>(0 , size_type (1 ));
478478 strides_type strides = xtl::make_sequence<strides_type>(0 , size_type (0 ));
479479 init_array (shape, strides);
480- m_data [0 ] = T ();
480+ m_storage [0 ] = T ();
481481 }
482482
483483 /* *
@@ -488,47 +488,47 @@ namespace xt
488488 : base_type()
489489 {
490490 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
491- nested_copy (m_data .begin (), t);
491+ nested_copy (m_storage .begin (), t);
492492 }
493493
494494 template <class T >
495495 inline pyarray<T>::pyarray(nested_initializer_list_t <T, 1 > t)
496496 : base_type()
497497 {
498498 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
499- nested_copy (m_data .begin (), t);
499+ nested_copy (m_storage .begin (), t);
500500 }
501501
502502 template <class T >
503503 inline pyarray<T>::pyarray(nested_initializer_list_t <T, 2 > t)
504504 : base_type()
505505 {
506506 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
507- nested_copy (m_data .begin (), t);
507+ nested_copy (m_storage .begin (), t);
508508 }
509509
510510 template <class T >
511511 inline pyarray<T>::pyarray(nested_initializer_list_t <T, 3 > t)
512512 : base_type()
513513 {
514514 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
515- nested_copy (m_data .begin (), t);
515+ nested_copy (m_storage .begin (), t);
516516 }
517517
518518 template <class T >
519519 inline pyarray<T>::pyarray(nested_initializer_list_t <T, 4 > t)
520520 : base_type()
521521 {
522522 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
523- nested_copy (m_data .begin (), t);
523+ nested_copy (m_storage .begin (), t);
524524 }
525525
526526 template <class T >
527527 inline pyarray<T>::pyarray(nested_initializer_list_t <T, 5 > t)
528528 : base_type()
529529 {
530530 base_type::resize (xt::shape<shape_type>(t), layout_type::row_major);
531- nested_copy (m_data .begin (), t);
531+ nested_copy (m_storage .begin (), t);
532532 }
533533
534534 template <class T >
@@ -581,7 +581,7 @@ namespace xt
581581 strides_type strides (shape.size ());
582582 compute_strides (shape, l, strides);
583583 init_array (shape, strides);
584- std::fill (m_data .begin (), m_data .end (), value);
584+ std::fill (m_storage .begin (), m_storage .end (), value);
585585 }
586586
587587 /* *
@@ -596,7 +596,7 @@ namespace xt
596596 : base_type()
597597 {
598598 init_array (shape, strides);
599- std::fill (m_data .begin (), m_data .end (), value);
599+ std::fill (m_storage .begin (), m_storage .end (), value);
600600 }
601601
602602 /* *
@@ -730,8 +730,8 @@ namespace xt
730730 m_strides = inner_strides_type (reinterpret_cast <size_type*>(PyArray_STRIDES (this ->python_array ())),
731731 static_cast <size_type>(PyArray_NDIM (this ->python_array ())));
732732 m_backstrides = backstrides_type (*this );
733- m_data = storage_type (reinterpret_cast <pointer>(PyArray_DATA (this ->python_array ())),
734- this ->get_min_stride () * static_cast <size_type>(PyArray_SIZE (this ->python_array ())));
733+ m_storage = storage_type (reinterpret_cast <pointer>(PyArray_DATA (this ->python_array ())),
734+ this ->get_min_stride () * static_cast <size_type>(PyArray_SIZE (this ->python_array ())));
735735 }
736736
737737 template <class T >
@@ -759,13 +759,13 @@ namespace xt
759759 template <class T >
760760 inline auto pyarray<T>::storage_impl() noexcept -> storage_type&
761761 {
762- return m_data ;
762+ return m_storage ;
763763 }
764764
765765 template <class T >
766766 inline auto pyarray<T>::storage_impl() const noexcept -> const storage_type&
767767 {
768- return m_data ;
768+ return m_storage ;
769769 }
770770}
771771
0 commit comments