| 490 | */ |
| 491 | template<typename Derived> |
| 492 | EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename internal::traits<Derived>::Scalar |
| 493 | DenseBase<Derived>::prod() const |
| 494 | { |
| 495 | if(SizeAtCompileTime==0 || (SizeAtCompileTime==Dynamic && size()==0)) |
| 496 | return Scalar(1); |
| 497 | return derived().redux(Eigen::internal::scalar_product_op<Scalar>()); |
| 498 | } |
| 499 | |
| 500 | /** \returns the trace of \c *this, i.e. the sum of the coefficients on the main diagonal. |
| 501 | * |
no test coverage detected