Click here to Skip to main content
15,902,445 members
Articles / Programming Languages / C++17

How To Do Math in C++ using morph::vvec

Rate me:
Please Sign up or sign in to vote.
5.00/5 (14 votes)
19 Sep 2023Apache8 min read 19.4K   12  
morph::vvec allows you to do vector math without any external libraries
The header-only library morphologica provides a header called vvec.h which gives you a variable-sized container based on std::vector with a useful set of math functions. Easily add, subtract, element-wise multiply/divide your vectors and apply functions such as renormalisation, randomisation, exponentials and more.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Research Associate in Computational Neuroscience at The University of Sheffield. I build developmental biology simulations in C++. I use high performance OpenGL visualisation to help.

Comments and Discussions