| 480 | __host__ __device__ CUMAT_STRONG_INLINE Index batches() const { return child_.batches(); } |
| 481 | |
| 482 | __device__ CUMAT_STRONG_INLINE Scalar coeff(Index row, Index col, Index batch, Index index) const |
| 483 | { |
| 484 | using Functor = internal::ExtractDiagonalFunctor<MatrixType>; |
| 485 | return Functor::extractDiagonal(child_.derived().coeff(row, row, batch, index)); |
| 486 | } |
| 487 | }; |
| 488 | |
| 489 |