@@ -227,42 +227,6 @@ class SMatrixView
227
227
template <class TScalar , int M>
228
228
using SVectorView = SMatrixView<TScalar, M, 1 >;
229
229
230
- template <CMatrix TMatrix, int RepeatRows, int RepeatCols>
231
- class TiledView
232
- {
233
- public:
234
- using NestedType = TMatrix;
235
- using ScalarType = typename NestedType::ScalarType;
236
- using SelfType = TiledView<NestedType, RepeatRows, RepeatCols>;
237
-
238
- static auto constexpr kRows = RepeatRows * NestedType::kRows ;
239
- static auto constexpr kCols = RepeatCols * NestedType::kCols ;
240
- static bool constexpr bRowMajor = NestedType::bRowMajor;
241
-
242
- PBAT_HOST_DEVICE TiledView (NestedType const & A) : A(A) {}
243
-
244
- PBAT_HOST_DEVICE ScalarType operator ()(auto i, auto j) const
245
- {
246
- return A (i % NestedType::kRows , j % NestedType::kCols );
247
- }
248
-
249
- // Vector(ized) access
250
- PBAT_HOST_DEVICE ScalarType operator ()(auto i) const { return (*this )(i % kRows , i / kRows ); }
251
- PBAT_HOST_DEVICE ScalarType operator [](auto i) const { return (*this )(i); }
252
-
253
- PBAT_MINI_READ_API (SelfType)
254
-
255
- private:
256
- NestedType const & A;
257
- };
258
-
259
- template <auto RepeatRows, auto RepeatCols, class /* CMatrix*/ TMatrix>
260
- PBAT_HOST_DEVICE auto Repeat (TMatrix&& A)
261
- {
262
- using MatrixType = std::remove_cvref_t <TMatrix>;
263
- return TiledView<MatrixType, RepeatRows, RepeatCols>(std::forward<TMatrix>(A));
264
- }
265
-
266
230
template <class TScalar , int M>
267
231
PBAT_HOST_DEVICE auto Unit (auto i)
268
232
{
0 commit comments