NUMCXX
0.13.20181108
Numerical library for small projects and teaching purposes
|
The library has been tested under Linux, MacOSX, Win10/Cygwin
Installation of the python components is currently not necessary.
The following packages should be installed using the Linux package manager (from system to system, they have different names)
We need the same packages as on Linux.
install
Thanks to the autor of this post for showing the way for matplotlib.
/usr/bin
(which is C:\cygwin64\usr\bin
from the DOS prompt). Then you can install all the packages using apt-cyg install
.lapack
Here, the current version of numcxx, without the examples, is installed in the directory /net/wir The example subdirectories can be copied separately as a whole.
The debian-numcxx virtual machine can be downloaded from the course home page. Load this machine into VirtualBox and start it. Vtk, numcxx and vtkfig and codeblocks are installed on this machine. Examples can be run with the numcxx-build utility.
Go to the numcxx root directory and set up the cmake project:
This should compile the library and make it findeable by depending projects via an entry im the user CMake project registry found under .cmake
in your home directory.
First, copy an example directory to your working directory
Each of the example subdirectories has its own CMakeLists.txt which looks for an installed numcxx during the setup phase.
Set up a build subdirectory and compile the project:
Set up a build subdirectory for codeblocks:
In codeblocks, select a target under "Build/Select Target". In the management pane (left), select the corresponding source file. Now you can build and run via the correspondin menu items of codeblocks.
Many of them should work. Like with code blocks, find out the name of the generator via cmake -G
. If you don't find your IDE name there, there might be some chance that your IDE supports cmake directly (as e.g. QTCreator does).