登录
首页 » 算法 » 矩阵运算

矩阵运算

于 2022-04-07 发布 文件大小:1.51 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

// 矩阵乘法: C=AB, A[m×v],  B[v×n],  C[m×n] ... for row-major matrices   // 允许A,B,C 带入相同参数. double* matr_x(double*C, const double*Ao, const double*Bo, const int m,const int v, const int n){ if(!Ao || !Bo) return 0;    if(!C) C=new double[m*n];  double* A=new double[m*v], * B=new double[v*n];  memcpy(A,Ao,m*v*sizeof(double)); memcpy(B,Bo,v*n*sizeof(double));  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 基本遗传学习分类系统源程序
    基本遗传学习分类系统源程序-basic genetic classification system source
    2023-09-04 12:25:03下载
    积分:1
  • 使用的谱分析C语言代码
    该代码用于进行谱分析,是用C语言描述的,很实用的一段代码,对此有需要求的可以看看
    2022-07-16 16:57:58下载
    积分:1
  • 中值滤波,利用intel的mmx技术,速度比普通快上几十倍
    中值滤波算法,利用intel的mmx技术,速度比普通快上几十倍-median filter, using the MMX technique from Intel, the speed is quite promising when compared to normal one
    2022-06-27 10:50:46下载
    积分:1
  • 经典排序
    经典排序算法-Classical sorting algorithm
    2022-02-04 23:33:21下载
    积分:1
  • 最精简的C++队列, 覆盖各种方
    队列特性:先进先出(FIFO)——先进队列的元素先出队列。来源于我们生活中的队列(先排队的先办完事)。队列有下面几个操作:InitQueue()   ——初始化队列EnQueue()        ——进队列DeQueue()        ——出队列IsQueueEmpty()——判断队列是否为空IsQueueFull()    ——判断队列是否已满
    2022-11-07 10:10:04下载
    积分:1
  • 竞选
    原创优化算法,类似于粒子群算法,收敛速度快,适用于前段近似解的求解,可以与牛顿法结合两段求解优化问题。 只完成算法本身程序,与其他算法的对比未完成。
    2022-03-10 10:29:01下载
    积分:1
  • 列主元高斯消去
    列主元高斯消去法-out PCA Gaussian Elimination
    2023-01-28 03:45:04下载
    积分:1
  • dxf 读取
    应用背景Build Instructions: Make sure you have autoconf, swig, texinfo, python-dev, build-essential packages or equivalent installed via your package manager. cd libredwg ./autogen.sh && ./configure && make && sudo make install cd ../dxflib ./configure && make && sudo make install cd .. Once the above dependencies have been built, edit /usr/local/include/dwg.h, and rename the THICKNESS constant (or add _ to end). It conflicts with another constant included in the converter, but is not used itself. After that, just run "make". That"s it! 关键技术GNU LibreDWG 是一个免费开源的 C 库用来处理 DWG 文件,这
    2022-12-18 16:30:03下载
    积分:1
  • 一维伽辽金型无网格MATLAB程序 无网格方采用基于点的近似,可以彻底或部分地消除网格,不需要网格的初始划分和重构,不仅可以保证计的精度,而且可以大大...
    一维伽辽金型无网格法MATLAB程序 无网格方法采用基于点的近似,可以彻底或部分地消除网格,不需要网格的初始划分和重构,不仅可以保证计算的精度,而且可以大大减小计算的难度。然而,由于目前的无网格近似一般没有解析表达式,且大都基于伽辽金原理,因此计算量很大,要超出传统的有限元法;另外,无网格近似大都是拟合,因此对于位移边界的处理比较困难,多采用拉格朗日乘子法处理。-1维伽Galerkin-type meshless method MATLAB procedures meshless method based on the point of approximation, can be completely or partially eliminate the grid, the grid does not require the initial division and reconstruction, not only can guarantee the accuracy of the calculation, and can greatly reduce the difficulty of calculation. However, due to the current meshless approximation there is no analytic expression in general, and mostly based on the Galerkin principle, the calculation of a large volume, it is necessary to go beyond the traditional finite element method In addition, the meshless approximation are fitted, so displacement of the border more difficult to deal with, the use of Lagrange law.
    2022-06-18 16:46:39下载
    积分:1
  • 粒子群
    粒子群算法,gbest,和pbest,轻松实现,十分实用
    2022-05-16 16:19:06下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载