• Stars
    star
    245
  • Rank 164,359 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mathematical tools (interpolation, dimensionality reduction, optimization, etc.) written in C++11 with Eigen

mathtoolbox

GitHub

Mathematical tools (interpolation, dimensionality reduction, optimization, etc.) written in C++11 and Eigen.

Algorithms

Scattered Data Interpolation and Function Approximation

Dimensionality Reduction and Low-Dimensional Embedding

Numerical Optimization

Linear Algebra

Utilities

Dependencies

Main Library

Python Bindings

Examples

Use as a C++ Library

mathtoolbox uses CMake https://cmake.org/ for building source codes. This library can be built, for example, by

git clone https://github.com/yuki-koyama/mathtoolbox.git --recursive
cd mathtoolbox
mkdir build
cd build
cmake ../
make

and optionally it can be installed to the system by

make install

When the CMake parameter MATHTOOLBOX_BUILD_EXAMPLES is set ON, the example applications are also built. (The default setting is OFF.) This is done by

cmake ../ -DMATHTOOLBOX_BUILD_EXAMPLES=ON
make

When the CMake parameter MATHTOOLBOX_PYTHON_BINDINGS is set ON, the example applications are also built. (The default setting is OFF.) This is done by

cmake ../ -DMATHTOOLBOX_PYTHON_BINDINGS=ON
make

Prerequisites

macOS:

brew install eigen

Ubuntu:

sudo apt install libeigen3-dev

Use as a Python Library

pymathtoolbox is a (sub)set of Python bindings of mathtoolbox. Tested on Python 3.8 and 3.9.

It can be installed via PyPI:

pip install git+https://github.com/yuki-koyama/mathtoolbox

Prerequisites

macOS

brew install cmake eigen

Ubuntu 16.04/18.04

sudo apt install cmake libeigen3-dev

Examples

See python-examples.

Gallery

Bayesian optimization (bayesian-optimization) solves a one-dimensional optimization problem using only a small number of function-evaluation queries.

Classical multi-dimensional scaling (classical-mds) is applied to pixel RGB values of a target image to embed them into a two-dimensional space.

Self-organizing map (som) is also applicable to pixel RGB values of a target image to learn a two-dimensional color manifold.

Projects Using mathtoolbox

Contributing

Bug reports, suggestions, feature requests, and PRs are highly welcomed.

Licensing

The MIT License.

More Repositories

1

blender-cli-rendering

Blender Python scripts for rendering images directly from command-line interface
Python
692
star
2

elasty

A research-oriented elastic body simulator
C++
323
star
3

tinycolormap

A header-only, single-file library for colormaps written in C++11
C++
285
star
4

bigger

bigg (bgfx + imgui + glfw + glm) + utils
C++
196
star
5

unblending

Decomposing an input image into layers via "color unblending"
C++
162
star
6

position-based-fluids

Position Based Fluids [SIGGRAPH 2013] in C++
C++
125
star
7

color-util

A header-only C++11 library for colors; color space converters for RGB, HSL, XYZ, Lab, etc. and perceptual color difference calculators such as CIEDE2000
C++
89
star
8

sequential-line-search

A Preferential Bayesian optimization library for C++/Python [SIGGRAPH 2017]
C++
43
star
9

bvh11

A tiny C++11 library for reading BVH motion capture data
C++
36
star
10

optimo

Keyframe-based motion editing system using numerical optimization [CHI 2018]
C++
30
star
11

parallel-util

Simple header-only implementation of "parallel_for" and "parallel_map" for C++11
C++
30
star
12

btoon

Blender Addon for Toon Rendering
Python
21
star
13

sequential-gallery

Sequential Gallery for Interactive Visual Design Optimization [SIGGRAPH 2020]
C++
20
star
14

hello-bgfx

Hello-world project for bgfx + GLFW managed by CMake
C++
15
star
15

split-toning

A Blender addon for simulating the Split Toning effect in Adobe Lightroom/Photoshop
Python
14
star
16

real-time-example-based-elastic-deformation

Real-Time Example-Based Elastic Deformation [SCA 2012]
C
14
star
17

nlopt-util

A header-only wrapper library for calling NLopt optimization in a single line using Eigen::VectorXd
C++
14
star
18

visoptslider

Qt-based implementation of VisOpt Slider widget [UIST 2014] for C++ & Python
C++
12
star
19

nodelayout

A Blender add-on for automatic layout of nodes
Python
9
star
20

cc0assetsloader

A Blender add-on for loading CC0 assets (PBR textures, HDR images, etc.)
Python
8
star
21

enhancer

A C++11 / GLSL library for enhancing photographs (adjusting brightness, contrast, etc.)
C++
8
star
22

latexie

Utilities for writing papers with LaTeX
TeX
6
star
23

constrained-optimization-tests

Simple implementation of constrained optimization methods, including the penalty method and the augmented Lagrangian method
C++
5
star
24

rbf-interpolator

[deprecated] Radial Basis Function (RBF) Interpolation written in C++11. This can be used for fitting a non-linear function from scattered data.
C++
5
star
25

siggraph-jp-papers

SIGGRAPH Papers by Japanese Researchers
HTML
4
star
26

selph

Machine learning-based photo color enhancement system [CHI 2016]
C++
4
star
27

three-dim-util

A utility library for prototyping 3D applications based on Qt, Eigen, and legacy OpenGL
C++
4
star
28

armature-proxy-mesh

A Blender add-on for easy creation of proxy meshes for a selected armature object
Python
4
star
29

imagedistance

Given two images, calculate their distance in several criteria
C++
3
star
30

pycolormap

A self-contained colormap library for Python
Python
3
star
31

hello-tbb-cmake

A hello-world project for testing "parallel_for" in Intel TBB. The whole project (including TBB) is built using CMake.
C++
3
star
32

multidimensional-scaling

[deprecated] A header-only C++ library of the multidimensional scaling (MDS)
C++
2
star
33

academic-illustration-assets

Assets for creating illustrative figures (and video figures) released under CC0 (public domain)
2
star
34

filesystem-util

C++11 utility functions for handling files (currently only for UNIX/Linux)
C++
2
star
35

timer

Execution timer for measuring elapsed times for code blocks written in C++11
C++
1
star
36

cgi-2019-program

List of the papers presented at CGI 2019
Python
1
star
37

hello-alembic

Just a hello-world project to start learning the Alembic library
C++
1
star
38

pyenhancer

A tiny NumPy-based library for image color enhancement
Python
1
star
39

hello-trello-api

Toy Python scripts using Trello's REST API
Python
1
star
40

rand-util

Utility functions for <random> in c++11
C++
1
star
41

optimization-test-functions

A set of test functions to evaluate optimization algorithms written in C++11
C++
1
star
42

string-util

Utility functions for <string> in C++11
C++
1
star
43

qt-animated-layout-example

A custom animated layout example in Qt5
C++
1
star
44

easy-qhull

A helper repository to use qhull in cmake-based c++ projects
CMake
1
star