Skip to content

alkuzin/torus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Torus

Torus - math library for own projects

Dependencies

  • gnuplot (software for generation plots of functions, data, and data fits)

Installation of gnuplot in Debian, Ubuntu and etc.

sudo apt install gnuplot

Installation

First clone this repository:

git clone https://github.com/alkuzin/torus.git

Then move to library directory and build library:

cd torus/ && make all

Then include the header file in your project (e.g. statistics.hpp):

#include <torus/statistics.hpp>
// project code here

Finaly compile and run your project, including libtorus.a file:

g++ -I include/ <your-source-files> libtorus.a -o <executable-name> && ./<executable-name>

To return everything to original state:

make fclean

Tests

  • gtest (library for writing test programs) installation:
sudo apt-get install libgtest-dev

To run tests use:

make tests

To return everything to original state:

make clean_tests