Espacios de nombres
Variantes
Acciones

Diferencia entre revisiones de «cpp/numeric/valarray/shift»

De cppreference.com
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (Bot Añadido: de, en, fr, it, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Línea 9: Línea 9:
  
 
===Parámetros===
 
===Parámetros===
{{param list begin}}
+
{{begin}}
{{param list item | count |{{tr| número de posiciones para desplazarse por los elementos| number of positions to shift the elements by}}}}
+
{{| count |{{tr| número de posiciones para desplazarse por los elementos| number of positions to shift the elements by}}}}
{{param list end}}
+
{{end}}
  
 
===Valor de retorno===
 
===Valor de retorno===
Línea 26: Línea 26:
  
 
===Ver también===
 
===Ver también===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/valarray/dcl list cshift}}
+
{{| cpp/numeric/valarray/cshift}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/valarray/shift]]
 
[[de:cpp/numeric/valarray/shift]]

Última revisión de 00:14 2 jul 2013

 
 
 
 
valarray<T> shift( int count ) const;
Devuelve una valarray nuevo del mismo tamaño con elementos cuyas posiciones se desplazan por elementos count. La nueva posición de cada elemento es i−count donde i es la posición anterior. El valor de los elementos es desplazado en T() .
Original:
Returns a new valarray of the same size with elements whose positions are shifted by count elements. The new position of each element is i−count where i is the previous position. The value of shifted in elements is T().
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

El valarray resultante con elementos desplazado .
Original:
The resulting valarray with 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

desplazamiento circular de los elementos de la valarray
Original:
circular shift of 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]