文件名称:juzhenlei
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 刘*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 设计和编写代表矩阵的Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算两个矩阵的乘积的方法multiply(Matrix m)以及toString()等内容。
(2) 编写测试类MatrixTest,并在该类中创建两个矩阵对象,计算其乘积。
(3) 程序调试通过后填写实验报告。
-( 1) the design and preparation of matrix representing a class Matrix. This category includes matrix ranks number variable int rows and int cols, double data matrix data array [ ] [ ], tectonic method Matrix ( ), Matrix ( int rows, int cols ), Matrix ( int rows, int cols, double data [ ] [ ] ), to obtain an element value method of the getData ( int row, int Col ), set a certain element value method of the setData ( int row, int col, double value ), calculate the product of two matrices method for multiply ( Matrix m ) and toString ( ) etc..( 2 ) preparation of class MatrixTest, and in this class to create a two matrix object, computing the product.( 3) through debugging procedures after completing the experiment report.
(2) 编写测试类MatrixTest,并在该类中创建两个矩阵对象,计算其乘积。
(3) 程序调试通过后填写实验报告。
-( 1) the design and preparation of matrix representing a class Matrix. This category includes matrix ranks number variable int rows and int cols, double data matrix data array [ ] [ ], tectonic method Matrix ( ), Matrix ( int rows, int cols ), Matrix ( int rows, int cols, double data [ ] [ ] ), to obtain an element value method of the getData ( int row, int Col ), set a certain element value method of the setData ( int row, int col, double value ), calculate the product of two matrices method for multiply ( Matrix m ) and toString ( ) etc..( 2 ) preparation of class MatrixTest, and in this class to create a two matrix object, computing the product.( 3) through debugging procedures after completing the experiment report.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Matrix.java
MatrixTest.java
MatrixTest.java