Skip to content

Benchmarking some math-related stuff, like vector buffers, matmuls etc. This is for PERSONAL use only.

License

Notifications You must be signed in to change notification settings

PrasannaMaddila/math-test-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathTest.cpp

This is a personal repository for my experiments with C++ Math. I want to explore the different trade-offs of doing simple things like Vector/Buffer Allocation, Matrix and Vector operations, maps, the like. The other learning goal is for me to re-familiarise myself with modern C++ (with which I've had a love-hate relationship with for a long time).

Installation

The project has a CMake system in place to make things as easy as possible. It might be overkill, but I did not want to install C++ dependencies without it. As all good CMake projects, we start in an empty build directory and trigger CMake.

(ROOTDIR) $ mkdir build && cd build
(ROOTDIR/build) $ cmake ../
(ROOTDIR/build) $ make 

Running the Code

Running the install steps detailed above will place the created binaries in ROOTDIR/bin. For example, running the vector creation test is done as:

(ROOTDIR) $ ./bin/allocation_test

My personal code of honour - all created tests will have the same name as their corresponding source files in src/. I say this because for now, GTest and GBenchmark are automatically built in Debug mode, and will also create lots of other binaries in bin/ - this is something I'll eventually fix.

About

Benchmarking some math-related stuff, like vector buffers, matmuls etc. This is for PERSONAL use only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published