Showing content from https://cplusplus.com/valarray below:
class template
<valarray>
std::valarray
template <class T> class valarray;
Valarray class
A valarray object is designed to hold an array of values, and easily perform mathematical operations on them. It also allows special mechanisms to refer to subsets of elements in the arrays (see its operator[] overload).
Most mathematical operations can be applied directly to valarray objects, including arithmetical and comparison operators, affecting all its elements.
The valarray specification allows for libraries to implement it with several efficiency optimizations, such as parallelization of certain operations, memory recycling or support for copy-on-reference / copy-on-write optimizations. Implementations may even replace valarray as the return type for standard functions described below, provided they behave as, and can be converted to, valarray objects.
Template parameters
-
T
-
Type of the elements contained in the valarray.
This shall be a value type: i.e., an arithmetic type, a pointer, or a class that behaves like these (such as complex or another level of valarray).
Member types member type definition description value_type The first template parameter (T) The type of the elements in the valarray
Member functions
-
(constructor)
-
valarray constructor (public member function)
-
(destructor)
-
Valarray destructor (public member function)
-
valarray operators
-
Valarray operators (function)
-
apply
-
Apply function (public member function)
-
cshift
-
Circularly shift elements (public member function)
-
max
-
Return greatest value (public member function)
-
min
-
Return smallest value (public member function)
-
operator=
-
Assign content (public member function)
-
operator[]
-
Access element or subscript (public member function)
-
resize
-
Resize valarray (public member function)
-
shift
-
Shift elements (public member function)
-
size
-
Return size (public member function)
-
sum
-
Return sum of elements (public member function)
-
swap
-
Swap valarray contents (public member function)
Non-member overloads
-
valarray operators
-
Valarray operators (function)
-
swap
-
Swap valarrays (function template)
-
begin
-
Iterator to beginning (function template)
-
end
-
Iterator to end (function template)
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4