This commit is contained in:
Hauke Heibel 2010-06-14 14:33:10 +02:00
parent 8673f68fd8
commit a54772250f
2 changed files with 10 additions and 0 deletions

View File

@ -536,4 +536,11 @@ EIGEN_STRONG_INLINE Derived& MatrixBase<Derived>::operator=(const MatrixBase& ot
return ei_assign_selector<Derived,Derived>::run(derived(), other.derived());
}
template<typename Derived>
template <typename OtherDerived>
EIGEN_STRONG_INLINE Derived& MatrixBase<Derived>::operator=(const MatrixBase<OtherDerived>& other)
{
return ei_assign_selector<Derived,OtherDerived>::run(derived(), other.derived());
}
#endif // EIGEN_ASSIGN_H

View File

@ -153,6 +153,9 @@ template<typename Derived> class MatrixBase
*/
Derived& operator=(const MatrixBase& other);
template <typename OtherDerived>
Derived& operator=(const MatrixBase<OtherDerived>& other);
#ifndef EIGEN_PARSED_BY_DOXYGEN
template<typename ProductDerived, typename Lhs, typename Rhs>
Derived& lazyAssign(const ProductBase<ProductDerived, Lhs,Rhs>& other);