@@ -13,16 +13,13 @@ const_nums<double>::const_nums()
1313{
1414 base_device::memory::resize_memory_op<double , base_device::DEVICE_CPU>()(
1515 this ->cpu_ctx , this ->zero , 1 );
16- base_device::memory::set_memory_op<double , base_device::DEVICE_CPU>()(
17- this ->cpu_ctx , this ->zero , 0.0 , 1 );
16+ *this ->zero = 0.0 ;
1817 base_device::memory::resize_memory_op<double , base_device::DEVICE_CPU>()(
1918 this ->cpu_ctx , this ->one , 1 );
20- base_device::memory::set_memory_op<double , base_device::DEVICE_CPU>()(
21- this ->cpu_ctx , this ->one , 1.0 , 1 );
19+ *this ->one = 1.0 ;
2220 base_device::memory::resize_memory_op<double , base_device::DEVICE_CPU>()(
2321 this ->cpu_ctx , this ->neg_one , 1 );
24- base_device::memory::set_memory_op<double , base_device::DEVICE_CPU>()(
25- this ->cpu_ctx , this ->neg_one , -1.0 , 1 );
22+ *this ->neg_one = -1.0 ;
2623}
2724
2825// Specialize templates to support double types
@@ -31,16 +28,13 @@ const_nums<float>::const_nums()
3128{
3229 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
3330 this ->cpu_ctx , this ->zero , 1 );
34- base_device::memory::set_memory_op<float , base_device::DEVICE_CPU>()(
35- this ->cpu_ctx , this ->zero , 0.0 , 1 );
31+ *this ->zero = 0.0 ;
3632 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
3733 this ->cpu_ctx , this ->one , 1 );
38- base_device::memory::set_memory_op<float , base_device::DEVICE_CPU>()(
39- this ->cpu_ctx , this ->one , 1.0 , 1 );
34+ *this ->one = 1.0 ;
4035 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
4136 this ->cpu_ctx , this ->neg_one , 1 );
42- base_device::memory::set_memory_op<float , base_device::DEVICE_CPU>()(
43- this ->cpu_ctx , this ->neg_one , -1.0 , 1 );
37+ *this ->neg_one = -1.0 ;
4438}
4539
4640// Specialized templates to support std:: complex<double>types
0 commit comments