Espacios de nombres
Variantes
Acciones

std::valarray::cshift

De cppreference.com
< cpp‎ | numeric‎ | valarray
 
 
 
 
valarray<T> cshift( int count ) const;
Devuelve un valarray nuevo del mismo tamaño con elementos cuyas posiciones se desplazan circularmente por elementos count. La nueva posición de cada elemento es (i−count) mod s donde i es la posición anterior y s es 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.

Contenido

[editar] Parámetros

count -
número de posiciones para desplazarse por los elementos
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.

[editar] Valor de retorno

valarray La resultante con elementos desplazados circularmente .
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.

[editar] Notas

La función se puede implementar con el tipo de retorno diferente de std::valarray. En este caso, el tipo de reemplazo tiene las siguientes propiedades:
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.

[editar] Ejemplo

[editar] Ver también

cero llenado desplazar los elementos de la 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.

(función miembro pública) [editar]