std::valarray::cshift
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
valarray<T> cshift(int count )const; | ||
Gibt ein neues valarray der gleichen Größe mit Elementen, deren Positionen kreisförmig von
count
Elemente verschoben. Die neue Position der einzelnen Elemente ist (i−count) mod s wo i die vorherige Position ist und s ist size() .Original:
Returns a new valarray of the same size with elements whose positions are shifted circularly by
count
elements. The new position of each element is (i−count) mod s where i is the previous position and s is size().The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten]Parameter
count | - | Anzahl der Positionen, um die Elemente zu verschieben Original: number of positions to shift the elements by 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
Die daraus resultierende valarray mit zirkular verschoben Elementen .
Original:
The resulting valarray with circularly shifted elements.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Notes
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.
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 conststd::valarray& sollten auch akzeptieren, den Austausch Typ .Original:All functions accepting a arguments of type conststd::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 conststd::valarray& sollten akzeptieren, jede Kombination von conststd::valarray& und den Ersatz Typ .Original:All functions accepting two arguments of type conststd::valarray& should accept every combination of conststd::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.
[Bearbeiten]Beispiel
This section is incomplete Reason: no example |
[Bearbeiten]Siehe auch
Nullfüllung verschieben die Elemente des valarray Original: zero-filling shift the elements of the valarray The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |