@@ -13,13 +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- * this ->zero = 0.0 ;
16+ this ->zero [ 0 ] = 0.0 ;
1717 base_device::memory::resize_memory_op<double , base_device::DEVICE_CPU>()(
1818 this ->cpu_ctx , this ->one , 1 );
19- * this ->one = 1.0 ;
19+ this ->one [ 0 ] = 1.0 ;
2020 base_device::memory::resize_memory_op<double , base_device::DEVICE_CPU>()(
2121 this ->cpu_ctx , this ->neg_one , 1 );
22- * this ->neg_one = -1.0 ;
22+ this ->neg_one [ 0 ] = -1.0 ;
2323}
2424
2525// Specialize templates to support double types
@@ -28,13 +28,13 @@ const_nums<float>::const_nums()
2828{
2929 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
3030 this ->cpu_ctx , this ->zero , 1 );
31- * this ->zero = 0.0 ;
31+ this ->zero [ 0 ] = 0.0 ;
3232 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
3333 this ->cpu_ctx , this ->one , 1 );
34- * this ->one = 1.0 ;
34+ this ->one [ 0 ] = 1.0 ;
3535 base_device::memory::resize_memory_op<float , base_device::DEVICE_CPU>()(
3636 this ->cpu_ctx , this ->neg_one , 1 );
37- * this ->neg_one = -1.0 ;
37+ this ->neg_one [ 0 ] = -1.0 ;
3838}
3939
4040// Specialized templates to support std:: complex<double>types
@@ -43,13 +43,13 @@ const_nums<std::complex<double>>::const_nums()
4343{
4444 base_device::memory::resize_memory_op<std::complex <double >, base_device::DEVICE_CPU>()(
4545 this ->cpu_ctx , this ->zero , 1 );
46- * this ->zero = std::complex <double >(0.0 , 0.0 );
46+ this ->zero [ 0 ] = std::complex <double >(0.0 , 0.0 );
4747 base_device::memory::resize_memory_op<std::complex <double >, base_device::DEVICE_CPU>()(
4848 this ->cpu_ctx , this ->one , 1 );
49- * this ->one = std::complex <double >(1.0 , 0.0 );
49+ this ->one [ 0 ] = std::complex <double >(1.0 , 0.0 );
5050 base_device::memory::resize_memory_op<std::complex <double >, base_device::DEVICE_CPU>()(
5151 this ->cpu_ctx , this ->neg_one , 1 );
52- * this ->neg_one = std::complex <double >(-1.0 , 0.0 );
52+ this ->neg_one [ 0 ] = std::complex <double >(-1.0 , 0.0 );
5353}
5454
5555// Specialized templates to support std:: complex<float>types
@@ -58,11 +58,11 @@ const_nums<std::complex<float>>::const_nums()
5858{
5959 base_device::memory::resize_memory_op<std::complex <float >, base_device::DEVICE_CPU>()(
6060 this ->cpu_ctx , this ->zero , 1 );
61- * this ->zero = std::complex <float >(0.0 , 0.0 );
61+ this ->zero [ 0 ] = std::complex <float >(0.0 , 0.0 );
6262 base_device::memory::resize_memory_op<std::complex <float >, base_device::DEVICE_CPU>()(
6363 this ->cpu_ctx , this ->one , 1 );
64- * this ->one = std::complex <float >(1.0 , 0.0 );
64+ this ->one [ 0 ] = std::complex <float >(1.0 , 0.0 );
6565 base_device::memory::resize_memory_op<std::complex <float >, base_device::DEVICE_CPU>()(
6666 this ->cpu_ctx , this ->neg_one , 1 );
67- * this ->neg_one = std::complex <float >(-1.0 , 0.0 );
67+ this ->neg_one [ 0 ] = std::complex <float >(-1.0 , 0.0 );
6868}
0 commit comments