std::valarray::cshift
来自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; |
||
返回一个新的valarray的每个元素的新的位置是错开圆
count元素的元素的位置的大小相同。(i−count) mod si是先前的位置和ssize().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.
目录 |
[编辑] 参数
| count | - | 位置转移元素
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. |
[编辑] 返回值
与循环移位的元素将所得的valarray.
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.
[编辑] 注释
该功能可以实现从std::valarray不同的返回类型。在这种情况下,替换类型具有以下属性:
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.
- const提供的所有std::valarray成员函数.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可以由更换型.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. - 所有的函数接受一个参数的类型const std::valarray&也应接受替换类型.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. - 接受两个参数的类型const std::valarray&应该接受所有的功能const std::valarray&的每个组合和置换型.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.
-
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 零填充的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. (公共成员函数) | |