You have a C++ std::vector and you want to convert it to a Boost.Python Numpy ndarray.
But, once the ndarray got, you want to get back to the C++ array.
How to do that?
Let's see that in this Boost.Python tutorial.
If you are using Python then NumPy is quite interesting for manipulating arrays.
But how do we do that with C++ and Boost.Python NumPy extension?
If you are a scientist and interested in Python, you certainly already know the NumPy package.
In this tutorial I'll propose to explain how to install it on Windows in order to be used with the Boost.Python library.
We'll also make an Hello world example.
Communication between 2 different language isn't so easy.
It's often possible to find libraries to help us achieve this behaviour.
That's what we are going to see in this Boost.Python tutorial for Windows.
Let's get started.
Boost libraries are some of the famous ones in the C++ world.
They contain tons of functionalities but aren't so easy to use or even understand.
First things first, let's try to install it in on our dear Windows 10 operating system.
Python 3 has become an important language nowadays.
So if you haven't installed it yet on your Windows 10 operating system, it's time.
We are going to setup a complete installation in order to be ready using it later.
Let's see that in this Python 3 setting up tutorial.
Adding text and numbers in an QAbstractItemModel was the easy part of the Qt Model/View design.
Creating a .DLL is an interesting process that allows a better comprehension how a dynamic-link library works on Windows.
No need to say that we'll use Visual Studio for that.
Ready to dynamic linking?
Let's link.
The QAbstractItemModel is usually used with views like QTableView, QTreeView or QListView.
We’re going to see how to use this class in a very easy example.
Creating get and set can be a tough task.
Indeed if you have like dozen of new properties to add to new classes, it could take hours.
So what about generating them in few minutes with a script?
Let’s see that in this Python scripting tutorial for the C++ language.