diff --git a/doc/CustomizingEigen.dox b/doc/CustomizingEigen.dox index e4862b943..4dcb15c66 100644 --- a/doc/CustomizingEigen.dox +++ b/doc/CustomizingEigen.dox @@ -57,10 +57,10 @@ void makeFloor(const MatrixBase& other) { derived() = derived().cw template void makeCeil(const MatrixBase& other) { derived() = derived().cwise().max(other.derived()); } -const typename Cwise::ScalarAddReturnType +const const CwiseUnaryOp, Derived> operator+(const Scalar& scalar) const { return cwise() + scalar; } -friend const typename Cwise::ScalarAddReturnType +friend const CwiseUnaryOp, Derived> operator+(const Scalar& scalar, const MatrixBase& mat) { return mat + scalar; } \endcode