| Common mathematical functions | |||||||||||||||||||||||||||||||
| Mathematical special functions(C++17) | |||||||||||||||||||||||||||||||
| Mathematical constants(C++20) | |||||||||||||||||||||||||||||||
| Basic linear algebra algorithms(C++26) | |||||||||||||||||||||||||||||||
| Data-parallel types (SIMD)(C++26) | |||||||||||||||||||||||||||||||
| Floating-point environment(C++11) | |||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||
Numeric array (valarray) | |||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||
| Bit manipulation(C++20) | |||||||||||||||||||||||||||||||
| Saturation arithmetic(C++26) | |||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
valarray(); | (1) | |
explicit valarray(std::size_t count); | (2) | |
valarray(const T& val,std::size_t count); | (3) | |
valarray(const T* vals,std::size_t count); | (4) | |
valarray(const valarray& other); | (5) | |
valarray( valarray&& other)noexcept; | (6) | (since C++11) |
valarray(conststd::slice_array<T>& sa); | (7) | |
valarray(conststd::gslice_array<T>& gsa); | (8) | |
valarray(conststd::mask_array<T>& ma); | (9) | |
valarray(conststd::indirect_array<T>& ia); | (10) | |
valarray(std::initializer_list<T> il); | (11) | (since C++11) |
Constructs new numeric array from various sources.
| count | - | the number of elements to construct |
| val | - | the value to initialize the elements with |
| vals | - | pointer to a C array to use as source to initialize the contents |
| other | - | another numeric array to use as source to initialize the contents |
| sa | - | slice array to initialize the elements with |
| gsa | - | generic slice array to initialize the elements with |
| ma | - | mask array to initialize the elements with |
| ia | - | indirect array to initialize the elements with |
| il | - | initializer list to initialize the elements with |
| This section is incomplete Reason: no example |