搜索资源列表
matrix
- (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),计算两个矩阵的乘积的方法mul
eglish
- 设计一个造成矩阵类Matrix,包含一个元素类型为int的二维数组,分别设计一个静态方法和实例方法把矩阵转置,分别设计静态方法和实例方法实现二个矩阵相加、相乘。重写方法toString(),使其能输出此矩阵。-english.txt
Matrix
- 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
CalculateTheSummary
- 1. 编写一个程序打印数出有10个元素的浮点数组a1中最大值和最小值。 2.将有10个元素的数组a1 拷贝至含有15个元素的数组b1的一段位置。 3.将一个已存入数组中的值45,89,7,6,0,按0,6,7,89,45的次序打印出来。 4. 求一个3*3矩阵对角线元素之和。 5.设某个一维数组中有25个元素,编写一个顺序查找程序,从中查找值为80的元素在数组中的位置。 -1. Write a program that prints out a number of floa
Sum
- 系统首先会让你输入一个3*3矩阵,然后利用数组和下标值来计算矩阵对角线上的值的和。并输出结果-first ,the program will make you input an array,then count the sum of the number.
java-
- (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),计算两个矩阵的乘积的方法mul
matrix
- 矩阵操作小程序,用于练习数组及其简单变换。包含源程序和class中间码文件。-Matrix operation small program for practicing an array of simple transformations. Intermediate code that contains the source and class files.
juzhenlei
- (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),计算两个矩阵的乘积的方法mul
Matrix
- 个人原创代码:编写Java Application程序的方法,声明一个矩阵类Matrix,成员变量是一个二维数组,设数组元素类型为int,请设计方法: (1)构造方法: Matrix() //构造一个10X10个元素的矩阵,没有数据 Matrix(int n,int m) //构造一个nXm个元素的矩阵,数据由随机数产生 Matrix(int table[][]) //以一个整型的二维数组构造一个矩阵 要求使用 this (2) 实例方法: public void
1d
- 使用二维数组实现Matrix(矩阵)。定义Matrix(矩阵)类,要求实现两个矩阵的加、减、乘法,所有方法将返回操作后的结果矩阵。-Use a 2 d array realize Matrix (the Matrix).
p_6
- 编程求一个3×3矩阵的对角线元素之和,学会运用数组-Programming and a 33 matrix diagonal elements and learn how to use an array of
transpose
- java代码,二维数组矩阵转置实现,输入原矩阵可自行更改-java code, two-dimensional array matrix transpose achieve, enter the original matrix can make changes
java
- 掌握一维数组和二维数组的定义、初始化方法。编写程序实现两个矩阵的相加、相乘-The definition of one-dimensional and two-dimensional arrays of arrays, initialization method to master. Write a program to achieve the sum of two matrices are multiplied.
huawei_oj
- 华为OJ平台5个Java源码,测试通过。1、查找组成一个偶数最接近的两个素数2、矩阵乘法3、输入整型数组和排序标识,对其元素按照升序或降序进行排序4、质数因子5、字符串合并处理-Huawei OJ five Java platform source code, test passed
Matrix
- 实现数据按照二维螺旋矩阵的形式形式来输出顺序的序列1,2,3,4,5……。例如把数据1放在二维数组的第一个位置,然后顺时针把二维数组的剩下的位置用2,3,4,5,……等填满。-Data in the form of a matrix to form a two-dimensional helical output sequence order of 1,2,3,4,5 ....... For example, on a two-dimensional array of data a first