This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 1516 | Differences between
and this patch

Collapse All | Expand All

(-)a/Eigen/src/Core/Diagonal.h (+1 lines)
Lines 208-223 MatrixBase<Derived>::diagonal() const Link Here
208
  * Example: \include MatrixBase_diagonal_int.cpp
208
  * Example: \include MatrixBase_diagonal_int.cpp
209
  * Output: \verbinclude MatrixBase_diagonal_int.out
209
  * Output: \verbinclude MatrixBase_diagonal_int.out
210
  *
210
  *
211
  * \sa MatrixBase::diagonal(), class Diagonal */
211
  * \sa MatrixBase::diagonal(), class Diagonal */
212
template<typename Derived>
212
template<typename Derived>
213
EIGEN_DEVICE_FUNC inline typename MatrixBase<Derived>::DiagonalDynamicIndexReturnType
213
EIGEN_DEVICE_FUNC inline typename MatrixBase<Derived>::DiagonalDynamicIndexReturnType
214
MatrixBase<Derived>::diagonal(Index index)
214
MatrixBase<Derived>::diagonal(Index index)
215
{
215
{
216
  eigen_assert(index < MaxColsAtCompileTime && (-index) < MaxRowsAtCompileTime);
216
  return DiagonalDynamicIndexReturnType(derived(), index);
217
  return DiagonalDynamicIndexReturnType(derived(), index);
217
}
218
}
218
219
219
/** This is the const version of diagonal(Index). */
220
/** This is the const version of diagonal(Index). */
220
template<typename Derived>
221
template<typename Derived>
221
EIGEN_DEVICE_FUNC inline typename MatrixBase<Derived>::ConstDiagonalDynamicIndexReturnType
222
EIGEN_DEVICE_FUNC inline typename MatrixBase<Derived>::ConstDiagonalDynamicIndexReturnType
222
MatrixBase<Derived>::diagonal(Index index) const
223
MatrixBase<Derived>::diagonal(Index index) const
223
{
224
{

Return to bug 1516