![]() |
NumCpp
2.12.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
This example assumes you have followed the steps for installing NumCpp on your system. You will also need to have CMake installed.
main.cpp
Alternative using cmake fetch content
SRC_DIRECTORY = directory containing main.cpp
and CMakeLists.txt
files
NumCpp is a header only library so you can of course simply add the NumCpp include directory to your build system's include directories and build that way. However, find_package(NumCpp)
takes care of finding and linking in the Boost headers automatically, so if you add the NumCpp headers manually you will need to manually include the Boost headers as well.