Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
C++ Standard Library
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Numerics library=== Components that C++ programs may use to perform seminumerical or mathematical operations. {| class="wikitable" ! Name !! Description |- | {{code|<bit>}} || Added in [[C++20]]. Provides bit manipulation facilities. |- | {{code|<complex>}} || Defines a class template <code>std::complex</code>, and numerous functions for representing and manipulating complex numbers. |- | {{code|<linalg>}} || Added in [[C++26]]. Provides [[linear algebra]] facilities. |- | {{code|<numbers>}} || Added in [[C++20]]. Provides mathematical constants defined in namespace <code>std::numbers</code>. |- | {{code|<simd>}} || Added in [[C++26]]. Provides data-parallel types and operations on these types. |- | {{code|<random>}} || Added in [[C++11]]. Facility for generating (pseudo-)random numbers and distributions. |- | {{code|<ratio>}} || Added in [[C++11]]. Provides compile-time rational arithmetic based on class templates. |- | {{code|<valarray>}} || Defines five class templates (<code>std::valarray</code>, <code>std::slice_array</code>, <code>std::gslice_array</code>, <code>std::mask_array</code>, and <code>std::indirect_array</code>), two classes (<code>std::slice</code> and <code>std::gslice</code>), and a series of related function templates for representing and manipulating arrays of values. |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)