-
矩阵运算
// 矩阵乘法: 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%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-07 01:39:24下载
- 积分:1
-
C++实现的MMAS蚁群算法工程
一种基于c++实现的MMAS蚁群算法,主要改进如下:1.采用精英策略,只对最优路径上的蚂蚁信息素进行更新;2.通过最大最小信息素值修剪信息素矩阵;
- 2022-11-12 12:55:03下载
- 积分:1
-
c++ 8 puzzle code
编写一个程序来求解8-
- 2022-05-05 01:35:33下载
- 积分:1
-
3D-FDTD垂直双阵子程序,可以调整阵子半径。以达到设计一定方向图的目的。-3D-FDTD vertical-stream procedures can be adjusted stream radius. Designed to achieve certain objectives in the direction of the map.
- 2022-01-20 22:54:18下载
- 积分:1
-
本代码是《计算机常用数值计算算法与程序 C++版》一书的配套数值拟合与逼近代码,这些C++程序已经在Virsual C++ 6.0环境下通过。注意,在VC++...
本代码是《计算机常用数值计算算法与程序 C++版》一书的配套数值拟合与逼近代码,这些C++程序已经在Virsual C++ 6.0环境下通过。注意,在VC++ 6.0中设置好路径,特别是include目录(文件夹)的路径,否则在编译时会出现找不到头文件的错误,使编译无法正常进行。-the code is "commonly used computer numerical algorithms and procedures C version," a book supporting numerical approximation fitted with the code, these procedures have been in C C 6.0 Virsual environment through. The attention of the VC 6.0 installed path, in particular include directory (folder) path, otherwise there will be compiled header files could not find the mistakes and the compiler not normal.
- 2022-06-27 07:38:27下载
- 积分:1
-
修正单纯型方法程序
修正单纯型方法程序-modified simplex methods and procedures-
- 2023-05-21 07:45:03下载
- 积分:1
-
acm中的导弹防御算法
acm中的导弹防御算法-acm of missile defense Algorithm
- 2022-10-19 01:10:03下载
- 积分:1
-
长整数类,数据成员有一个指针,一个整数size,可以存放100位以上整数,可以做加法乘法运算...
长整数类,数据成员有一个指针,一个整数size,可以存放100位以上整数,可以做加法乘法运算-long integer, data members of a pointer, an integer size, can be kept above 100 integer, the additive can do multiplication
- 2023-01-31 02:00:03下载
- 积分:1
-
c++成员指针的例子
c++成员指针的例子-members pointer example
- 2022-07-07 10:39:12下载
- 积分:1
-
数值分析中的高斯消去法解方程组问题,含输入输出界面。
数值分析中的高斯消去法解方程组问题,含输入输出界面。-Numerical analysis of Gaussian elimination solution of the problem equations, including input and output interface.
- 2022-07-04 00:10:45下载
- 积分:1