Linyuan Shi
Linyuan Shi
Home
Posts
Publications
Contact
English
中文 (简体)
Posts
C++ and Python exchange Numpy data via Pybind11
Pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. We could use it to expose our CPP function to Python
Last updated on Mar 3, 2020
1 min read
C++
Boost Graph Library(BGL)
Graphs are mathematical abstractions that are useful for solving many types of problems in computer science.
Last updated on Mar 2, 2020
1 min read
C++
,
Coding
CMAKE
CMake is tool for automatically compiling C++ programs
Last updated on Apr 8, 2021
1 min read
C++
,
Coding
Add Text On Ovitos Overlay
# This user-defined function gets called by OVITO to make it draw text and graphics on top of the viewport. # The 'args' parameter provides various information such as the viewport being rendered and the target # canvas the function should paint onto. Refer to the documentation of the ovito.vis.PythonViewportOverlay class # for further information. def render(args): font=args.painter.font() font.setPointSize(8) args.painter.setFont(font) # This demo code prints the current animation frame into the upper left corner of the viewport.
Last updated on Mar 3, 2020
1 min read
Ovito
Beancount
Beancount is a double-entry bookkeeping computer language.
Last updated on Jun 8, 2021
2 min read
finance
«
Cite
×