mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Remove internal::smart_copy and replace with std::copy
This commit is contained in:
@@ -96,7 +96,7 @@ class TensorStorage<T, DSizes<IndexType, NumIndices_>, Options_>
|
||||
: m_data(internal::conditional_aligned_new_auto<T,(Options_&DontAlign)==0>(internal::array_prod(other.m_dimensions)))
|
||||
, m_dimensions(other.m_dimensions)
|
||||
{
|
||||
internal::smart_copy(other.m_data, other.m_data+internal::array_prod(other.m_dimensions), m_data);
|
||||
std::copy(other.m_data, other.m_data+internal::array_prod(other.m_dimensions), m_data);
|
||||
}
|
||||
EIGEN_DEVICE_FUNC Self& operator=(const Self& other)
|
||||
{
|
||||
|
||||
@@ -67,13 +67,11 @@ class array : public std::array<T, N> {
|
||||
: Base{{v1, v2, v3, v4, v5, v6, v7, v8}} {
|
||||
EIGEN_STATIC_ASSERT(N == 8, YOU_MADE_A_PROGRAMMING_MISTAKE);
|
||||
}
|
||||
#if EIGEN_HAS_VARIADIC_TEMPLATES
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||
array(std::initializer_list<T> l) {
|
||||
eigen_assert(l.size() == N);
|
||||
internal::smart_copy(l.begin(), l.end(), &this->front());
|
||||
std::copy(l.begin(), l.end(), &this->front());
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
namespace internal {
|
||||
|
||||
Reference in New Issue
Block a user