📄 permuta.c
字号:
/********************************************************/
/*Permuta */
/*Maritza Rodr韌uez Mart韓ez */
/*Computational Signal Processing Group - march-98 */
/*CSPG - Dr. Domingo Rodr韌uez - Coordinator */
/*Description: */
/*The effect of function perm(n,m) is equivalent to */
/*multiply an m-stride permutation.This means that the */
/*elements of x will be permuted. In this function, the */
/*permutation,that is, the m-stride permutation matrix */
/*is not generated. */
/********************************************************/
COMPLEX **Permuta(int N,int s)
{
COMPLEX **per;
int k, inicio=0;
int pos=inicio;
per = getComplexMatrix(N);
for( k=0; k < N; ++k){
per[k][pos].real=1;
pos=pos+s;
if(pos >= N){
pos=inicio+1;
inicio=inicio+1;
}
}
return per;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -