Add missing constructors for Scalar_accessor class. (#1792)

Этот коммит содержится в:
kpyzhov authored and Rahul Garg committed 2020-01-14 11:30:21 -08:00
1 родитель c29b3ea1fa
Коммит fae85cf6d2
1 file changed
+8
+8
Просмотреть файл
@@ -105,6 +105,14 @@ THE SOFTWARE.
// Idea from https://t0rakka.silvrback.com/simd-scalar-accessor
Vector data;
__host__ __device__
Scalar_accessor() = default;
__host__ __device__
Scalar_accessor(T x) {
data[idx] = x;
}
__host__ __device__
operator T() const noexcept { return data[idx]; }
__host__ __device__