@@ -617,8 +617,8 @@ struct NthStrideOffset
617
617
618
618
template <int nd> struct FixedDimStridedIndexer
619
619
{
620
- FixedDimStridedIndexer (const std::array<ssize_t , nd> _shape,
621
- const std::array<ssize_t , nd> _strides,
620
+ FixedDimStridedIndexer (const std::array<ssize_t , nd> & _shape,
621
+ const std::array<ssize_t , nd> & _strides,
622
622
ssize_t _offset)
623
623
: _ind(_shape), strides(_strides), starting_offset(_offset)
624
624
{
@@ -642,15 +642,15 @@ template <int nd> struct FixedDimStridedIndexer
642
642
private:
643
643
dpctl::tensor::strides::CIndexer_array<nd, ssize_t > _ind;
644
644
645
- const std::array<ssize_t , nd> strides;
645
+ std::array<ssize_t , nd> strides;
646
646
ssize_t starting_offset;
647
647
};
648
648
649
649
template <int nd> struct TwoOffsets_FixedDimStridedIndexer
650
650
{
651
- TwoOffsets_FixedDimStridedIndexer (const std::array<ssize_t , nd> _shape,
652
- const std::array<ssize_t , nd> _strides1,
653
- const std::array<ssize_t , nd> _strides2,
651
+ TwoOffsets_FixedDimStridedIndexer (const std::array<ssize_t , nd> & _shape,
652
+ const std::array<ssize_t , nd> & _strides1,
653
+ const std::array<ssize_t , nd> & _strides2,
654
654
ssize_t _offset1,
655
655
ssize_t _offset2)
656
656
: _ind(_shape), strides1(_strides1), strides2(_strides2),
@@ -684,21 +684,22 @@ template <int nd> struct TwoOffsets_FixedDimStridedIndexer
684
684
private:
685
685
dpctl::tensor::strides::CIndexer_array<nd, ssize_t > _ind;
686
686
687
- const std::array<ssize_t , nd> strides1;
688
- const std::array<ssize_t , nd> strides2;
687
+ std::array<ssize_t , nd> strides1;
688
+ std::array<ssize_t , nd> strides2;
689
689
ssize_t starting_offset1;
690
690
ssize_t starting_offset2;
691
691
};
692
692
693
693
template <int nd> struct ThreeOffsets_FixedDimStridedIndexer
694
694
{
695
- ThreeOffsets_FixedDimStridedIndexer (const std::array<ssize_t , nd> _shape,
696
- const std::array<ssize_t , nd> _strides1,
697
- const std::array<ssize_t , nd> _strides2,
698
- const std::array<ssize_t , nd> _strides3,
699
- ssize_t _offset1,
700
- ssize_t _offset2,
701
- ssize_t _offset3)
695
+ ThreeOffsets_FixedDimStridedIndexer (
696
+ const std::array<ssize_t , nd> &_shape,
697
+ const std::array<ssize_t , nd> &_strides1,
698
+ const std::array<ssize_t , nd> &_strides2,
699
+ const std::array<ssize_t , nd> &_strides3,
700
+ ssize_t _offset1,
701
+ ssize_t _offset2,
702
+ ssize_t _offset3)
702
703
: _ind(_shape), strides1(_strides1), strides2(_strides2),
703
704
strides3 (_strides3), starting_offset1(_offset1),
704
705
starting_offset2(_offset2), starting_offset3(_offset3)
@@ -738,9 +739,9 @@ template <int nd> struct ThreeOffsets_FixedDimStridedIndexer
738
739
private:
739
740
dpctl::tensor::strides::CIndexer_array<nd, ssize_t > _ind;
740
741
741
- const std::array<ssize_t , nd> strides1;
742
- const std::array<ssize_t , nd> strides2;
743
- const std::array<ssize_t , nd> strides3;
742
+ std::array<ssize_t , nd> strides1;
743
+ std::array<ssize_t , nd> strides2;
744
+ std::array<ssize_t , nd> strides3;
744
745
ssize_t starting_offset1;
745
746
ssize_t starting_offset2;
746
747
ssize_t starting_offset3;
0 commit comments