406 文字
2 分
Toy Box

Repositories#

In this section, repositories are summarized by programming languages.

C++#

Libraries#

“dualcomplex” is a cross-platform C++ template library that provides operations for dual complex numbers. It can be used as a header-only library and supports C++11 or later.

“dualquat” is a cross-platform C++ template library that provides operations on dual quaternions using Eigen. It can be used as a header-only library and supports C++11 and later.

“plucker” is a cross-platform C++ template library that provides operations on Plücker coordinates of lines. It can be used as a header-only library and supports C++11 and later.

Examples#

This is a collection of examples that use CMake for each case of a C++ project.

This is a collection of examples that use C++11.

  • BitonicSort
  • ComparingFloatingPointNumbers
  • ConvertString
  • ExpressionTemplate
  • HalfPrecisionFloatingPoint
  • LUDecomposition
  • Logger
  • PimplIdiom
  • ParseFntFile
  • Range
  • ServiceLocator
  • Singleton
  • SpecificInterface
  • ThreadPool
  • Other

This is a collection of examples that use C++14 or C++17.

  • circular_buffer

    Circular buffer implemented using only the standard library.

  • stack_resource

    A stack memory allocator using only the standard library.

  • pubsub_event

    This is a Publish-Subscribe messaging model implemented using only the standard library.

  • dual

    Header-only class template for dual numbers using only the standard library.

This is an example of a simple mark-and-sweep garbage collection using C++.

This is a collection of examples of real-time rendering techniques using OpenGL.

It supports C++11 or later and OpenGL 4.x.

  • AdaptiveTerrainTessellation
  • BillboardBeam
  • Bloom
  • Dithering
  • KawaseBlur
  • LightStreak
  • RadialBlur
  • ToneMapping
  • Other

Java#

Examples#

This is an example of Recursive Dimensional Clustering, one of the fast algorithms for finding collisions or clusters in a dataset.

Python#

Modules#

This package provides modules for manipulating floating point numbers quantization using NumPy.

Pack multiple images of different sizes or formats into one image.

This is a debugging tool for tracing malloc that occurs inside a function or class.

perfbench measures execution time of code snippets with Timeit and uses Plotly to visualize the results.

Examples#

A simple example of how to use pyenv + poetry + tox + pytest.

This package provides a class for manipulating quaternion objects.

Code snippets#

This section summarizes code snippets by themes/topics.

Mathematics#

TopicLinksLanguage / Libraries
Complex numberRepresentation and interpolation of rotationsC++
GeometryDelaunay triangulationPython
Normal vectors to a 2D curvePython (matplotlib / numpy / sympy)
Normal vectors to a surfacePython (matplotlib / numpy / sympy)
AnalysisTaylor seriesPython (matplotlib / numpy / sympy)
Vector calculusLaplacian (utils)Python (matplotlib / numpy)
Frenet–Serret formulas in 2DPython (matplotlib / numpy / sympy)
Frenet–Serret formulasPython (matplotlib / numpy / sympy)
Set theoryPairing functionPython (matplotlib / numpy)
Probability theoryInverse transform samplingPython (matplotlib / numpy)
Monte Carlo IntegrationPython (matplotlib / numpy / scipy)

Physics#

TopicLinksLanguage / Libraries
Rigid body dynamicsTranslational and rotational motionsPython (numpy)
Translational and rotational motions (using quaternion)Python (numpy)

Computer science#

TopicLinksLanguage / Libraries
Floating point numberFloating-point comparisonC++
ColorCIE1931_color_space
CIE_daylight_components, BabelColor_spectral_data
Python (matplotlib / numpy / pandas / scipy)
NoisePerlin noise - 1D/2D/3D/4DPython (matplotlib / numpy)
SortBitonic sortC++

Python#

TopicLinksLanguage / Libraries
PythonHow to limit concurrency with asyncio
How to hook properties with Python3 dataclasses
matplotlibCustomized colormap
Discrete colormap
pytorchDifferential
Confusion matrix
Toy Box
https://hasenpfote.netlify.app/posts/toy-box/
作者
Hasenpfote
公開日
1970-01-01
ライセンス
CC BY-SA 4.0