Closed slayoo closed 2 years ago
Fixed in 0.3.17 release, current behavior:
>>> import ThrustRTC as trtc
>>> trtc.device_vector('double', 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\workspace\ThrustRTC_local\install\test_python\ThrustRTC\DVVector.py", line 62, in device_vector
raise ValueError("0-size vector not allowed")
ValueError: 0-size vector not allowed
Also merged pull request #22
Thank you, @fynv !
as of now, passing a zero value for vector size causes the following behaviour: