@@ -38,7 +38,7 @@ class ConstTransposeSubMatrix
38
38
static auto constexpr kCols = N;
39
39
static bool constexpr bRowMajor = NestedType::bRowMajor;
40
40
41
- PBAT_HOST_DEVICE ConstTransposeSubMatrix (NestedType const & A, auto ib = 0 , auto jb = 0 )
41
+ PBAT_HOST_DEVICE ConstTransposeSubMatrix (NestedType const & A, int ib = 0 , int jb = 0 )
42
42
: A(A), ib(ib), jb(jb)
43
43
{
44
44
static_assert (
@@ -56,12 +56,12 @@ class ConstTransposeSubMatrix
56
56
PBAT_HOST_DEVICE ScalarType operator [](auto i) const { return (*this )(i); }
57
57
58
58
template <auto S, auto T>
59
- PBAT_HOST_DEVICE auto Slice (auto i, auto j) const
59
+ PBAT_HOST_DEVICE auto Slice (int i, int j) const
60
60
{
61
61
return ConstTransposeSubMatrix<SelfType, S, T>(*this , i, j);
62
62
}
63
- PBAT_HOST_DEVICE auto Col (auto j) const { return Slice<kRows , 1 >(0 , j); }
64
- PBAT_HOST_DEVICE auto Row (auto i) const { return Slice<1 , kCols >(i, 0 ); }
63
+ PBAT_HOST_DEVICE auto Col (int j) const { return Slice<kRows , 1 >(0 , j); }
64
+ PBAT_HOST_DEVICE auto Row (int i) const { return Slice<1 , kCols >(i, 0 ); }
65
65
PBAT_HOST_DEVICE auto Transpose () const { return ConstTransposeView<SelfType>(*this ); }
66
66
67
67
private:
@@ -81,7 +81,7 @@ class TransposeSubMatrix
81
81
static auto constexpr kCols = N;
82
82
static bool constexpr bRowMajor = NestedType::bRowMajor;
83
83
84
- PBAT_HOST_DEVICE TransposeSubMatrix (NestedType& A, auto ib = 0 , auto jb = 0 )
84
+ PBAT_HOST_DEVICE TransposeSubMatrix (NestedType& A, int ib = 0 , int jb = 0 )
85
85
: A(A), ib(ib), jb(jb)
86
86
{
87
87
static_assert (
@@ -109,20 +109,20 @@ class TransposeSubMatrix
109
109
PBAT_HOST_DEVICE ScalarType& operator [](auto i) { return (*this )(i); }
110
110
111
111
template <auto S, auto T>
112
- PBAT_HOST_DEVICE auto Slice (auto i, auto j)
112
+ PBAT_HOST_DEVICE auto Slice (int i, int j)
113
113
{
114
114
return TransposeSubMatrix<SelfType, S, T>(*this , i, j);
115
115
}
116
- PBAT_HOST_DEVICE auto Col (auto j) { return Slice<kRows , 1 >(0 , j); }
117
- PBAT_HOST_DEVICE auto Row (auto i) { return Slice<1 , kCols >(i, 0 ); }
116
+ PBAT_HOST_DEVICE auto Col (int j) { return Slice<kRows , 1 >(0 , j); }
117
+ PBAT_HOST_DEVICE auto Row (int i) { return Slice<1 , kCols >(i, 0 ); }
118
118
119
119
template <auto S, auto T>
120
- PBAT_HOST_DEVICE auto Slice (auto i, auto j) const
120
+ PBAT_HOST_DEVICE auto Slice (int i, int j) const
121
121
{
122
122
return ConstTransposeSubMatrix<SelfType, S, T>(*this , i, j);
123
123
}
124
- PBAT_HOST_DEVICE auto Col (auto j) const { return Slice<kRows , 1 >(0 , j); }
125
- PBAT_HOST_DEVICE auto Row (auto i) const { return Slice<1 , kCols >(i, 0 ); }
124
+ PBAT_HOST_DEVICE auto Col (int j) const { return Slice<kRows , 1 >(0 , j); }
125
+ PBAT_HOST_DEVICE auto Row (int i) const { return Slice<1 , kCols >(i, 0 ); }
126
126
127
127
PBAT_HOST_DEVICE auto Transpose () { return TransposeView<SelfType>(*this ); }
128
128
PBAT_HOST_DEVICE auto Transpose () const { return ConstTransposeView<SelfType>(*this ); }
0 commit comments