Scientific methods on top of NP library.
Any C++20-compatible compiler:
- gcc 10 or higher
- clang 6 or higher
- Visual Studio 2019 or higher
git clone https://github.com/mgorshkov/scipy.git
mkdir build && cd build
cmake ..
cmake --build .
mkdir build && cd build
cmake ..
cmake --build . --config Release
cmake --build . --target doc
Open scipy/build/doc/html/index.html in your browser.
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=~/scipy_install
cmake --build . --target install
#include <iostream>
#include <np/Creators.hpp>
#include <scipy/stats/mode.hpp>
int main(int, char **) {
using namespace np;
using namespace scipy;
// Mode calculation
Size size = 10000000;
auto r = random::rand(size);
auto m = stats::mode(r);
std::cout << "mode=" << m.first << " " << m.second;
return 0;
}
- Clone the repo
git clone https://github.com/mgorshkov/scipy.git
- cd samples/stats
cd samples/stats
- Make build dir
mkdir -p build-release && cd build-release
- Configure cmake
cmake -DCMAKE_BUILD_TYPE=Release ..
- Build
cmake --build .
cmake --build . --config Release
- Run the app
$./stats
- C++ numpy-like template-based array implementation: https://github.com/mgorshkov/np
- Methods from pandas library on top of NP library: https://github.com/mgorshkov/pd
- ML Methods from scikit-learn library: https://github.com/mgorshkov/sklearn