资源简介
两个矩阵的加减乘除运算以及矩阵转置,计算行列式等操作。VS2005下编译通过。

代码片段和文件信息
//两个矩阵的加减乘 及 矩阵转置
#include
#include
#include “matrix.h“
#include
#include
using namespace std;
void main()
{
matrixobj abc;
float x;
cout<<“Enter a 3 by 3 matrix (A): \n“;
a.readMatrix();
cout<<“Enter a 3 by 3 matrix (B): \n“;
b.readMatrix();
cout<<“Matrix (A) is : \n“;
a.displayMatrix();
cout<<“Matrix (B) is : \n“;
b.displayMatrix();
cout<<“Matrices (A) + (B) is : \n“;
c = a + b;
c.displayMatrix();
getchar();
cout<<“Matrices (A) - (B) is : \n“;
c = a - b;
c.displayMatrix();
getchar();
cout<<“Matrices (A) * (B) is : \n“;
c = a * b;
c.displayMatrix();
getchar();
x = a.matrixDeterminant(); //矩阵行列式
getchar();
//c = a.matrixInverse();
c=a.matrixTranspose();
//cout<<“The Inversed Matrix of (A) is : \n“;
cout<<“The Transposed Matrix of (A) is : \n“;
c.displayMatrix();
getchar();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3057 2009-06-21 04:01 Matrix.h
文件 961 2009-06-22 18:46 MatrixOperation.cpp
----------- --------- ---------- ----- ----
4018 2
相关资源
- bp神经网络源代码,可直接运行
- Wolfram Mathematica 矩阵初等变换函数(
- 随机森林R语言代码
- 计算机图形学 边填充算法实现代码
- 直流无刷电机方波驱动 stm32 例程代码
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- 周立功开发板ProASIC3实验-syn_FIFO代码
- IMX385驱动代码.zip
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- dotnet 写字板 实验 源代码 不好请要不
- 使用选择性重传协议实现UDP可靠通信
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 交通咨询模拟系统完整代码
- http请求状态代码
- 数值分析所有实验代码
- VC 获得文件属性 获取文件的创建时
- 网上拍卖系统完整源代码
- 音乐代码转换软件 单片机编程时用
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- 用51单片机实现G代码翻译
- 合同管理系统的源代码(附数据库)
- 旋转矩阵求欧拉角的简单算法
- 用VC 编写的仿QQ聊天室程序源代码
评论
共有 条评论