Skip to content

Commit 7cb50f5

Browse files
authored
Add complex float to setitem (#760)
* Add complex<float> to dparray::set_item() because FFT
1 parent 582b56e commit 7cb50f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpnp/dparray.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ cdef class dparray:
430430
( < int * > self._dparray_data)[lin_idx] = <int > value
431431
elif self.dtype == numpy.bool:
432432
( < cpp_bool * > self._dparray_data)[lin_idx] = < cpp_bool > value
433+
elif self.dtype == numpy.complex64:
434+
( < float complex * > self._dparray_data)[lin_idx] = <float complex > value
433435
elif self.dtype == numpy.complex128:
434436
( < double complex * > self._dparray_data)[lin_idx] = <double complex > value
435437
else:

0 commit comments

Comments
 (0)