cholesky分解的实现
    
            
摘要:Cholesky 分解是把一个对称正定的矩阵表示成一个下三角矩阵L和其转置的乘积的分解。 它要求矩阵的所有特征值必须大于零,故分解的下三角的对角元也是大于零的。 Cholesky分解法又称平方根法,是当A为实对称正定矩阵时,LU三角分解法的变形。 通过直接比较A=L*L^T两边的对应元素来计算L,其
        
阅读全文
 
        
            
    稀疏矩阵的一些运算C实现(转)
    
            
摘要:#include <iostream>#include <iomanip>using namespace std; const int MAXSIZE = 100; //定义非零元素的最多个数const int MAXROW = 10; //定义数组行数的最大值const int SIZENUM =
        
阅读全文
 
        
            
    PCA分析,及c++代码实现
    
            
摘要:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/fengbingchun/article/details/79235028 主成分分析(Principal Components Analysis, PCA)简介可以参考: http://blog.csdn.ne
        
阅读全文
 
        
            
    c++获取时间戳
    
            
摘要:#include #include #include using namespace std; struct NowDate { char tmp0[16]; //年月日 char tmp1[16]; //时分秒 char tmp2[4]; //毫秒 }; NowDate getTime() { time_t timep; time (&tim...
        
阅读全文
 
        
            
    指针数组学习
    
            
摘要:int Rawdata_PreProcess(const void **in_frame, int n, int frame_size, void *out_frame) { const short **iframe = (const short **)in_frame; short *oframe = (short *)out_frame; int member = f...
        
阅读全文
 
        
            
    指针
    
            
摘要:int Rawdata_PreProcess(void * ptr_rawdata_addr_header[],int N,int data_length,void *out_data) { //int rpp_valid_flag = -1; int temp_length = 0; temp_length = data_length;//>>1; int32_t *...
        
阅读全文
 
        
            
    低通滤波参数
    
            
摘要://不会用的请参考我的博客: #include "stdafx.h" #include #include #include //必需包含下面两个头文件 #include "complex.h" #include double pi = 3.1415926535897932384626433832795; //20181224 typedef struct _C_double_c...
        
阅读全文
 
        
            
    c++ string 转double
    
            
摘要:#include <iostream>#include <sstream>	//使用stringstream需要引入这个头文件using namespace std; Type stringToNum(const string& str){	istringstream iss(str);	Type 
        
阅读全文
 
        
            
    结构体变量的 extern 使用方法,转--
    
            
摘要:要求如下,在.h文件中这样定义: 同时需要在多个.c文件中使用该struct, 但是多次include 该.h文件提示重复定义,应该修改如下: 新建一个xx.h和xx.c文件 在xx.h文件中定义该结构体,同时对结构体变量作extern: 在xx.c文件中include该.h文件,同时作结构体变量的
        
阅读全文
 
        
            
    c++ 生成dll文件并调用-转
    
            
摘要:.h(头文件) .lib(库文件) .dll(动态链接库文件) 之间的关系和作用的区分 .h头文件是编译时必须的,lib是链接时需要的,dll是运行时需要的。附加依赖项的是.lib不是.dll,若生成了DLL,则肯定也生成 LIB文件。如果要完成源代码的编译和链接,有头文件和lib就够了。如果也使动
        
阅读全文
 
        
            
    基2时域抽取FFT、IFFT的C++实现代码,另附DFT与IDFT的原始实现--转1
    
            
摘要:介绍网络上的原理介绍非常丰富,具体请自行搜索网络资源。 本算法依靠FFT流图进行布置。 算法 ##进行完所有的原理推导后,我们可以得到如下的16点FFT流图: 通过上图可以看出整个流图输入序列的顺序已经被颠倒,这实际上是输入序列中元素的序号进行了比特位的逆序排列,即其二进制比特位发生了镜像,例如00
        
阅读全文
 
        
            
    c++ 生成dll文件并调用
    
            
摘要:2 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18.
        
阅读全文
 
        
            
    C++ ofstream和ifstream详细用法
    
            
摘要:原文出自【比特网】,转载请保留原文链接:http://soft.chinabyte.com/database/460/11433960.sh https://www.cnblogs.com/batman425/p/3179520.html [导读] ofstream是从内存到硬盘,ifstream是
        
阅读全文
 
        
            
    c++中关于预编译头的设置问题
    
            
摘要:在运行代码时会遇到缺少预编译pch.c 或者stadfx.h之类的, 这个时候,先查看有没有包含, 然后看一下预编译头设置中, 是否正确设置。
        
阅读全文
 
        
            
    快速排序算法
    
            
摘要:转自 http://cprogramminglanguage.net/quicksort-algorithm-c-source-code.aspx 补充
        
阅读全文
 
        
            
    C++读取xml文件
    
            
摘要:网上有很多C++读取xml文件的, 但是针对性较强,读的文件属性特征详细,针对属性特征不详细,且数据之间关系为多个并列的情况,很少有说明,这里给出自己研究的过程, 代码附上!仅供参考!原创文章,非法使用必究! 忘了添加,准备工作了, 需要上网下载。 tinyXml是一个免费开源的C++库,可以到官网
        
阅读全文