mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
added optimized matrix times diagonal matrix product via Diagonal flag shortcut.
This commit is contained in:
@@ -76,6 +76,14 @@ MatrixBase<Derived>::cwisePow(const Scalar& exponent) const
|
||||
(derived(), ei_scalar_pow_op<Scalar>(exponent));
|
||||
}
|
||||
|
||||
/** \returns an expression of the coefficient-wise reciprocal of *this. */
|
||||
template<typename Derived>
|
||||
inline const CwiseUnaryOp<ei_scalar_inverse_op<typename ei_traits<Derived>::Scalar>, Derived>
|
||||
MatrixBase<Derived>::cwiseInverse() const
|
||||
{
|
||||
return derived();
|
||||
}
|
||||
|
||||
// -- binary operators --
|
||||
|
||||
/** \returns an expression of the coefficient-wise \< operator of *this and \a other
|
||||
|
||||
Reference in New Issue
Block a user