Fix SVD for MSVC+CUDA.

This commit is contained in:
Antonio Sánchez
2022-03-01 21:35:22 +00:00
parent bf6726a0c6
commit b48922cb5c
3 changed files with 15 additions and 14 deletions

View File

@@ -300,13 +300,13 @@ template<typename T> EIGEN_DEVICE_FUNC inline T* construct_elements_of_array(T *
EIGEN_TRY
{
for (i = 0; i < size; ++i) ::new (ptr + i) T;
return ptr;
}
EIGEN_CATCH(...)
{
destruct_elements_of_array(ptr, i);
EIGEN_THROW;
}
return ptr;
}
/*****************************************************************************