The Numerical Library

Using the Numerical Library

To use HIPP’s NUMERICAL module, include the header <hippnumerical.h>. A minimal cpp source file is like numerical-minimal-example.cpp:

// numerical-minimal-example.cpp

#include <hippnumerical.h>                  // [1]

using namespace HIPP;
using namespace std;
namespace nu = HIPP::NUMERICAL;             // [2]

int main(int argc, char const *argv[])
{
    // use the library
    return 0;
}

Debrief:

  • [1]: all the NUMERICAL components are declared within the header file <hippnumerical.h>.

  • [2]: all the NUMERICAL objects are defined within the namespace HIPP::NUMERICAL. We alias it as nu for clarity throughout this tutorial.

To compile and execute, run:

g++ -std=c++17 numerical-minimal-example.cpp -lhippnumerical -lhippcntl -lgsl -lgslcblas
./a.out

Each componenet in this library is detailed in one of the following sections: