⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comp_cantight_fac.cc

📁 Matlab时频分析工具箱,希望能对大家有所帮助啊
💻 CC
字号:
#include <octave/oct.h>#include "config.h"#include "../src/ltfat_blas.c"#include "../src/ltfat_lapack.c"#include "../src/cantight_fac.c"#include "../src/gcd.c"DEFUN_DLD (comp_cantight_fac, args, ,  "This function calls the C-library\n\  gtightf=comp_cantight_fac(gf,L,a,M);\n\  Yeah."){  ComplexMatrix gf = args(0).complex_matrix_value();  const int L = args(1).int_value();  const int a = args(2).int_value();  const int M = args(3).int_value();  const int R = gf.rows()*gf.columns()/L;  const int N = L/a;  int h_a, h_m;  const int c=gcd(a, M,&h_a, &h_m);  const int p=a/c;  const int q=M/c;  const int d=N/q;  ComplexMatrix gtightf(p*q*R,c*d);    cantight_fac((ltfat_complex*)gf.data(),L,R,a,M,	 (ltfat_complex*)gtightf.data());    return octave_value (gtightf);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -