| 591 | |
| 592 | template<int Dims = InputSize> |
| 593 | __device__ CUMAT_STRONG_INLINE Scalar coeff(Index row, Index col, Index batch, Index index) const |
| 594 | { |
| 595 | CUMAT_STATIC_ASSERT(Dims <= 4, "Cwise-evaluation of the determinant is only supported for matrices of size <= 4x4"); |
| 596 | typedef internal::kernels::DeviceMatrix<Scalar, Dims, internal::traits<_Child>::Flags> Mat_t; |
| 597 | Mat_t in = internal::kernels::loadMat<Dims, _Child, Scalar>(matrix_, batch); |
| 598 | Scalar det = internal::kernels::DeterminantFunctor<Scalar, Dims, Mat_t>::run(in); |
| 599 | return det; |
| 600 | } |
| 601 | }; |
| 602 | |
| 603 | template<typename _Child> |