* move cwise *= and /= to Core (like * and /)

* tidy the StdVector module
* fix warnings (especially a | instead of ||) in stdvector test
This commit is contained in:
Benoit Jacob
2009-01-12 13:41:40 +00:00
parent af5034b3c0
commit 336ad58213
6 changed files with 128 additions and 102 deletions

View File

@@ -418,43 +418,6 @@ inline ExpressionType& Cwise<ExpressionType>::operator+=(const Scalar& scalar)
return m_matrix.const_cast_derived() = *this + scalar;
}
//=============
/** \array_module
*
* Replaces this expression by its coefficient-wise product with \a other.
*
* Example: \include Cwise_times_equal.cpp
* Output: \verbinclude Cwise_times_equal.out
*
* \sa operator*(), operator/=()
*/
template<typename ExpressionType>
template<typename OtherDerived>
inline ExpressionType& Cwise<ExpressionType>::operator*=(const MatrixBase<OtherDerived> &other)
{
return m_matrix.const_cast_derived() = *this * other;
}
/** \array_module
*
* Replaces this expression by its coefficient-wise quotient with \a other.
*
* Example: \include Cwise_slash_equal.cpp
* Output: \verbinclude Cwise_slash_equal.out
*
* \sa operator/(), operator*=()
*/
template<typename ExpressionType>
template<typename OtherDerived>
inline ExpressionType& Cwise<ExpressionType>::operator/=(const MatrixBase<OtherDerived> &other)
{
return m_matrix.const_cast_derived() = *this / other;
}
//=============
/** \array_module
*
* \returns an expression of \c *this with each coeff decremented by the constant \a scalar