std::valarray::shift
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
- Todas las funciones miembro de const std::valarray se proporcionan .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 std::indirect_array y puede ser construida a partir del tipo de reemplazo .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. - Todas las funciones que aceptan un argumento de tipo const std::valarray& también deben aceptar el tipo de reemplazo .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. - Todas las funciones que aceptan dos argumentos de tipo const std::valarray& debe aceptar todas las combinaciones de const std::valarray& y el tipo de reemplazo .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.
-
[editar] Ejemplo
Esta sección está incompleta Razón: sin 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) |