CSet++
Set of defined functions to work with sets
Loading...
Searching...
No Matches
CSet++ Project

Introduction

This is a simple project that aims to provide some simple and fast methods for working with mathematical sets on std::vectors.
At the moment it only includes a handful of functions in the set namespace. The library may be expanded at a future time depending on my needs.

Installation

The project comes with a folder with some bash files that complete some Meson related tasks.
All bash files must be executed from the project's root directory to work properly.
To install the project, there is only need to execute two of them files.
Once installed just include the set.h header file in your code.

Step one: Setup the Project

To setup the Meson project run the setup.sh bash file:

bash ./scripts/setup.sh

Step two: Install the Library

To install the cset library run the install.sh bash file:

bash ./scripts/install.sh
Note
You will need a privileged user's credentials

Testing

The project comes with some test files located in the test folder.
To test that the library code works properly run the following bash file:

bash ./scripts/test.sh

Benchmarking

The project comes with some benchmark files located in the benchmark folder.
To benchmark every library function in microseconds and nanoseconds run the following bash file:

bash ./scripts/benchmark.sh
void benchmark(std::string name, std::function< void()> function, int n)
Manages the benchmarking of a passed function.
Definition: set.cpp:43