Add nvcc support for small eigenvalues decompositions and workaround lack of support for std::swap and std::numeric_limits

This commit is contained in:
Gael Guennebaud
2013-08-01 16:26:57 +02:00
parent 55b57fcba6
commit ddf7753631
14 changed files with 234 additions and 29 deletions

View File

@@ -391,7 +391,8 @@ template<typename Derived> class DenseBase
/** swaps *this with the expression \a other.
*
*/
template<typename OtherDerived> EIGEN_DEVICE_FUNC
template<typename OtherDerived>
EIGEN_DEVICE_FUNC
void swap(const DenseBase<OtherDerived>& other,
int = OtherDerived::ThisConstantIsPrivateInPlainObjectBase)
{
@@ -401,7 +402,8 @@ template<typename Derived> class DenseBase
/** swaps *this with the matrix or array \a other.
*
*/
template<typename OtherDerived> EIGEN_DEVICE_FUNC
template<typename OtherDerived>
EIGEN_DEVICE_FUNC
void swap(PlainObjectBase<OtherDerived>& other)
{
SwapWrapper<Derived>(derived()).lazyAssign(other.derived());