Namensräume
Varianten
Aktionen

std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>=

Aus cppreference.com
< cpp‎ | numeric‎ | valarray

 
 
Numerik-Bibliothek
Gemeinsame mathematischen Funktionen
Floating-Point-Umgebung
Komplexe Zahlen
Numerische Arrays
Pseudo-Zufallszahlen
Compile-time rationale Arithmetik (C++11)
Generische numerische Operationen
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
adjacent_difference
partial_sum
 
std::valarray
Member-Funktionen
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::operator+
valarray::operator-
valarray::operator~
valarray::operator!
valarray::operator+=
valarray::operator-=
valarray::operator*=
valarray::operator/=
valarray::operator%=
valarray::operator&=
valarray::operator|=
valarray::operator^=
valarray::operator<<=
valarray::operator>>=
Non-Member-Funktionen
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.
Helper-Klassen
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.
 
valarray<T> operator+=( const valarray<T>& v );

valarray<T> operator-=( const valarray<T>& v );
valarray<T> operator*=( const valarray<T>& v );
valarray<T> operator/=( const valarray<T>& v );
valarray<T> operator%=( const valarray<T>& v );
valarray<T> operator&=( const valarray<T>& v );
valarray<T> operator|=( const valarray<T>& v );
valarray<T> operator^=( const valarray<T>& v );
valarray<T> operator<<=( const valarray<T>& v );

valarray<T> operator>>=( const valarray<T>& v );
(1)
valarray<T> operator+=( const T& val );

valarray<T> operator-=( const T& val );
valarray<T> operator*=( const T& val );
valarray<T> operator/=( const T& val );
valarray<T> operator%=( const T& val );
valarray<T> operator&=( const T& val );
valarray<T> operator|=( const T& val );
valarray<T> operator^=( const T& val );
valarray<T> operator<<=( const T& val );

valarray<T> operator>>=( const T& val );
(2)
Gilt Verbindung Zuweisungsoperatoren für jedes Element in der numerischen Array .
Original:
Applies compound assignment operators to each element in the numeric array.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Jedes Element wird durch Anwenden des entsprechenden Bedieners auf den vorherigen Wert des Elements und entsprechende Element aus v erhaltenen zugeordnet .
Original:
Each element is assigned value obtained by applying the corresponding operator to the previous value of the element and corresponding element from v.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Das Verhalten ist, wenn size() != v.size() undefiniert
Original:
The behavior is undefined if size() != v.size()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Das Verhalten ist nicht definiert, wenn einer der Werte in v während der Zuweisung berechnet wird und abhängig von einem der Werte in *this, das heißt, der Ausdruck auf der rechten Seite der Zuweisung bezieht sich auf eine Variable in der linken Seite der Zuweisung.
Original:
The behavior is undefined if any of the values in v is computed during the assignment and depends on any of the values in *this, that is, the expression on the right side of the assignment refers to a variable in the left side of the assignment.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Jedes Element wird durch Anwenden des entsprechenden Bedieners auf den vorherigen Wert des Elementes und dem Wert des erhaltenen val zugeordnet .
Original:
Each element is assigned value obtained by applying the corresponding operator to the previous value of the element and the value of val.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

v -
ein weiteres numerisches Array
Original:
another numeric array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
val -
ein Wert
Original:
a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Rückgabewert

*this

[Bearbeiten] Ausnahmen

(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Notes

Jeder der Operatoren können nur instanziiert, wenn folgende Voraussetzungen erfüllt sind:
Original:
Each of the operators can only be instantiated if the following requirements are met:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Der angegebene Operator angewendet T einzugeben
    Original:
    The indicated operator can be applied to type T
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Der resultierende Wert kann eindeutig T (1-3) oder bool (4) umgewandelt werden .
    Original:
    The result value can be unambiguously converted to T (1-3) or bool (4).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Die Funktion kann mit dem Rückgabetyp anders std::valarray umgesetzt werden. In diesem Fall weist die Ersetzungsart die folgenden Eigenschaften:
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Alle const Elementfunktionen std::valarray bereitgestellt werden .
    Original:
    All const member functions of std::valarray are provided.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • std::valarray, std::slice_array, std::gslice_array, std::mask_array und std::indirect_array kann aus dem Ersatz-Typ gebaut werden .
    Original:
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Alle Funktionen Annehmen eines Argumente des Typs const std::valarray& sollten auch akzeptieren, den Austausch Typ .
    Original:
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Alle Funktionen mit zwei Parametern vom Typ const std::valarray& sollten akzeptieren, jede Kombination von const std::valarray& und den Ersatz Typ .
    Original:
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.