3 ms·
I generally use python when manipulating lists, and C++ for floating point oriented tasks.
by frozenport 11y ago
I generally use python when manipulating lists, and C++ for floating point oriented tasks.
- Dobiasd 11y agoWhat do you do if your application needs to do both?
- frozenport 11y agoThats a great question! In one case I used a python wrapper around a C++ core, but when it came time to re-write it we switched to pure python and have so far hit our performance benchmarks - mostly because libraries like OpenCV or PyCuda are now able to efficiently wrap our critical paths.
- Ace17 11y agoThe OP's work shows it clearly is possible to manipulate lists in C++, in a simple and concise way.