本帖最后由 huangzj121 于 2012-10-17 17:50 编辑
用于单片机的DSP算法库3(向量与矩阵)
大多数电子产品里面跑的还是MCU而不是DSP,由于经常要作一些信号处理,所以把一些通用算法做成模块,成本比DSP低了很多,效率上DSP没有乘法硬件也只是提供汇编库,这里所有操作用指针代替。
基于Cortex M3的芯片STM32L152为原型写的,.obj是上位机VC6编译的,大家可以下载测试,有问题留言,.o是商品,有需要的可以和我们联系,请注明编译环境和版本。
自适应LMS、RLS、kalman都是向量和矩阵运算。生成向量,向量极值,向量复制,向量加、减、乘、点乘,生成单位阵,复制矩阵,矩阵转置,矩阵加、减、乘、除、求逆(高斯约尔当法,很实用的东西)、点乘。
/*****************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_fmatrix
This program is include some basic calculate of real matrix.
Contain: creat integrate vector,
creat float point vector,
creat double vector,
print vector,
delete vector,
maximum of one vector,
minimize of one vector,
copy one vector,
vector's addition,
vector's substruction,
vector's multiplication,
vector multiply a real,
create zero matrix,
create one matrix,
create identity matrix,
print matrix,
delete matrix,
copy one matrix,
matrix's transform,
matrix's addition,
matrix's substruction,
matrix's multiplication,
matrix's inverse,
matrix's division,
matrix multiply a real.
Author: huang zhen jiang
Date: 2012 / 09 / 16
*****************************************************************/
......
http://www.math86a.icoc.cc/nd.jsp?id=10&moduleId=3&fromColId=4
http://www.math86a.icoc.cc/nd.jsp?id=10&moduleId=3&fromColId=4
http://www.math86a.icoc.cc/nd.jsp?id=10&moduleId=3&fromColId=4 |