std::valarray

< cpp‎ | numeric

Bibliothèque Numerics
Fonctions mathématiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numériques
La génération de nombres pseudo-aléatoires
Moment de la compilation arithmétique rationnelle (C++11)
Génériques des opérations numériques
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 iota (C++11)
 accumulate
 inner_product
 partial_sum

`std::valarray`
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 valarray::valarray
 valarray::~valarray
 valarray::operator=
 valarray::operator[]
 valarray::swap
 valarray::size
 valarray::resize
 valarray::sum
 valarray::min
 valarray::max
 valarray::shift
 valarray::cshift
 valarray::apply
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 swap (C++11)
 begin (C++11)
 end (C++11)
 abs
 exp
 log
 log10
 pow
 sqrt
 sin
 cos
 tan
 asin
 acos
 atan
 atan2
 sinh
 cosh
 tanh
Classes d'aide
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 slice_array
 gslice_array
 indirect_array
 slice
 gslice

 Defined in header template< class T > class valarray;
std::valarray est la classe qui représente et permet de manipuler des tableaux de valeurs. Il prend en charge des opérations mathématiques et diverses formes d'opérateurs utilisables sur l'ensemble du tableau, sur une tranche (slice) et en accès indirect .
Original:
std::valarray is the class for representing and manipulating arrays of values. It supports element-wise mathematical operations and various forms of generalized subscript operators, slicing and indirect access.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier]Notes

Les classes std::valarray et aide sont définis pour être à l'abri de certaines formes de l'aliasing, ce qui permet des opérations sur ces classes d'optimiser semblable à l'effet du mot-clé `restrict` dans le langage de programmation C. En outre, les fonctions et les opérateurs qui prennent des arguments `valarray` sont autorisés à retourner des objets proxy pour permettre au compilateur d'optimiser une expression telle que v1 = a*v2 + v3; comme une simple boucle qui exécute v1[i] = a*v2[i] + v3[i]; éviter toute temporaires ou des passes multiples. Toutefois, modèles d'expression faire la même technique d'optimisation disponibles pour chaque conteneur C + +, et la majorité des bibliothèques numériques préfère modèles d'expression de valarrays de flexibilité. Certaines implémentations C + + bibliothèque standard utilisent des modèles d'expression pour mettre en œuvre des opérations efficaces sur `std::valarray` (par exemple libstdc + + GNU libc et LLVM + +), et rarement valarrays sont optimisés plus loin, par exemple, dans Intel Parallel Studio .
Original:
std::valarray and helper classes are defined to be free of certain forms of aliasing, thus allowing operations on these classes to be optimized similar to the effect of the keyword `restrict` in the C programming language. In addition, functions and operators that take `valarray` arguments are allowed to return proxy objects to make it possible for the compiler to optimize an expression such as v1 = a*v2 + v3; as a single loop that executes v1[i] = a*v2[i] + v3[i]; avoiding any temporaries or multiple passes. However, modèles d'expression make the same optimization technique available for any C++ container, and the majority of numeric libraries prefer expression templates to valarrays for flexibility. Some C++ standard library implementations use expression templates to implement efficient operations on `std::valarray` (e.g. GNU libstdc++ and LLVM libc++), and only rarely valarrays are optimized any further, e.g. in Intel Parallel Studio.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier]Types de membres

 Type du membre Définition `value_type` `T`

[modifier]Fonctions annexes

l'algorithme spécialisé
Original:
specializes the algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
std::begin spécialisée
Original:
specializes std::begin
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
std::end spécialisée
Original:
specializes std::end
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
des opérateurs binaires s'applique à chaque élément de valarrays deux, ou un valarray et une valeur
Original:
applies binary operators to each element of two valarrays, or a valarray and a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
compare deux valarrays ou un valarray avec une valeur
Original:
compares two valarrays or a valarray with a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::abs à chaque élément de valarray
Original:
applies the function std::abs to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
Les fonctions exponentiellesOriginal: Exponential functionsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
applique la fonction std::exp à chaque élément de valarray
Original:
applies the function std::exp to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::log à chaque élément de valarray
Original:
applies the function std::log to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::log10 à chaque élément de valarray
Original:
applies the function std::log10 to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
Les fonctions de puissanceOriginal: Power functionsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
applique la fonction à deux std::pow valarrays ou un valarray et une valeur
Original:
applies the function std::pow to two valarrays or a valarray and a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::sqrt à chaque élément de valarray
Original:
applies the function std::sqrt to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
Les fonctions trigonométriquesOriginal: Trigonometric functionsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
applique la fonction std::sin à chaque élément de valarray
Original:
applies the function std::sin to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::cos à chaque élément de valarray
Original:
applies the function std::cos to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::tan à chaque élément de valarray
Original:
applies the function std::tan to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::asin à chaque élément de valarray
Original:
applies the function std::asin to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::acos à chaque élément de valarray
Original:
applies the function std::acos to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::atan à chaque élément de valarray
Original:
applies the function std::atan to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction de std::atan2 un valarray et une valeur
Original:
applies the function std::atan2 to a valarray and a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
Fonctions hyperboliquesOriginal: Hyperbolic functionsThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
applique la fonction std::sinh à chaque élément de valarray
Original:
applies the function std::sinh to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::cosh à chaque élément de valarray
Original:
applies the function std::cosh to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique) 
applique la fonction std::tanh à chaque élément de valarray
Original:
applies the function std::tanh to each element of valarray
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction générique)