搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
矩阵运算
- 线性代数中的矩阵运算。现在用C实现了,自己编写的
C++程序设计语言实验三
- 实验三:C++编程入门 一、实验内容 1. 类模版。 2. 运算符重载。 3. 友元。 4. 继承。 二、实验题目 1, 设计一个类SavingsAccount,定义一个静态数据成员记录存款的年利率(rate),该类的每个成员都包含一个私有的数据成员balance,表示该成员当前的存款数额。提供一个成员函数CalMonthlyInterest(),用以计算月利息(用balance乘以rate再除以12),并将这个月利息加入balance中。提供一个静态成员函数ModifyRate(
找鞍点
- 在一个矩阵中寻找鞍点,若一个元素是所在行的最大值,且是所在列的最小值,则为鞍点
matrix.rar
- 2、 矩阵(二) 编写C++程序完成以下功能: (1) 假定矩阵大小为4×5(整型); (2) 矩阵空间采用new动态申请,保存在指针中; (3) 定义矩阵初始化函数,可以从cin中输入矩阵元素; (4) 定义矩阵输出函数,将矩阵格式化输出到cout; (5) 定义矩阵相加的函数,实现两个矩阵相加的功能,结果保存在另一个矩阵中; (6) 定义矩阵相减的函数,实现两个矩阵相减的功能,结果保存在另一个矩阵中; (7) 动态申请三个矩阵:A1、A2、A3; (8) 初始化A1、A2;
LDL-2.0.1.tar
- 对基于稀疏矩阵存储技术的对称正定稀疏矩阵进行LDL分解,C++编写-LDL is a set of concise routines for factorizing symmetric positive-definite sparse matrices, with some applicability to symmetric indefinite matrices. Its primary purpose is to illustrate much of the basic theory of
LU
- 数值分析中LU分解法解结构矩阵问题,Visual C#源代码-Numerical analysis of LU decomposition method solution of the problem structure matrix, Visual C# Source code
graph_
- //有向图:有向图,无向图基本操作 //运行环境:VC //有向图,无向图基本操作,包括: //1、邻接矩阵 //2、邻接表 //3、深度优先遍历 //4、广度优先遍历 //5、最小生成树 //6、拓扑排序 //7、每一对顶点之间的最短路径(Dijkstra,Floyd两种算法)-//Directed graph: directed graph, undirected graph basic operation// Operating Environme
00
- 该程序利用C++实现了求稀疏矩阵的转置矩阵。整个程序运用了3次函数的调用。-The program using C++ Achieved for sparse matrix transpose matrix. Use of the whole process 3 times function call.
juzhengyilist
- 用C++先压缩稀疏矩阵于链表,再解压缩链表还原为稀疏矩阵-C++, the first compressed sparse matrix in the list, and then extract the list reduced to sparse matrix
求逆矩阵的C代码
- 该函数代码实现求一个N阶方阵的逆矩阵的功能(The function code to achieve a N order inverse function of the square matrix)
4.矩阵按键
- 8051单片机的矩阵按键程序,基于C编写。(8051 singlechip matrix button program)
CUMCM-2017-problem-C
- c题,利用模糊矩阵求解最大最小值,并利用神经网络来进行训练,来预测和分析待测值。(C problem, using fuzzy matrix to solve maximum and minimum)
矩阵连乘
- 以几个矩阵为例,使用C++实现矩阵连乘动态规划(With a few matrix as an example, the use of C++ to achieve the matrix with dynamic programming)
稀疏矩阵
- 稀疏矩阵用C++来实现加减乘功能并可以输出矩阵(C++ implementation of sparse matrix addition and subtraction)
矩阵快速幂
- c++封装的矩阵快速幂,ACM常用!快速幂算法在矩阵的扩展。(C++ encapsulation of matrix fast power, ACM commonly used! The expansion of a fast power algorithm in a matrix.)
01矩阵交换行
- 描述 给定一个5*5的矩阵(数学上,一个r×c的矩阵是一个由r行c列元素排列成的矩形阵列),将第n行和第m行交换,输出交换后的结果。 输入 输入共6行,前5行为矩阵的每一行元素,元素与元素之间以一个空格分开。 第6行包含两个整数m、n,以一个空格分开。(1 <= m,n <= 5) 输出 输出交换之后的矩阵,矩阵的每一行元素占一行,元素之间以一个空格分开 样例输入 1 2 2 1 2 5 6 7 8 3 9 3 0 5 3 7 2 1 4 6 3 0 8
C语言常用算法集
- C语言基本算法,有数值计算,矩阵,微分方程,以及各种滤波算法(Basic algorithm of C language)
C++矩阵运算类库(很实用)
- 该资料是使用c++语言实现矩阵运算类的运算过程,代码完整,可以完成调用,非常适合初学者学习(The information is the use of c++ language to achieve matrix operation class operation process, code integrity, can complete the call, very suitable for beginners to learn.)
C语言矩阵转置
- 问题描述 编写一个程序,将一个3行3列的矩阵转置。(Problem descr iption Write a program to transpose a matrix of three rows and three columns.)