CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - col
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - col - List
[
JSP/Java
]
matrix
DL : 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()等内容。
Date
: 2008-10-13
Size
: 7.63kb
User
:
fangfei
[
JSP/Java
]
matrix
DL : 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()等内容。-(1) design and preparation on behalf of Matrix Class Matrix. Including the ranks of such matrices int rows and the number of variables int cols, matrix data array double data [][], constructor Matrix (), Matrix (int rows, int cols), Matrix (int rows, int cols, double data [] []), to obtain the value of a certain element method getData (int row, int col), set the value of a certain element method setData (int row, int col, double value), the product of two matrices calculation method multiply (Matrix m) as well as the toString () and so on.
Date
: 2025-12-27
Size
: 7kb
User
:
fangfei
[
JSP/Java
]
Matrix
DL : 0
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()等内容。-Matrix class. This class includes matrix, int rows, and the ranks of the number of variables int cols, matrix data array double data [][], constructor Matrix (), Matrix (int rows, int cols), Matrix (int rows, int cols, double data [] []), to obtain the value of an element methods getData (int row, int col), set the value of an element methods setData (int row, int col, double value), the calculation method of the product of two matrices multiply (Matrix m) as well as the toString () and so on.
Date
: 2025-12-27
Size
: 1kb
User
:
艾枫
[
JSP/Java
]
java-
DL : 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()等内容。-(1) design matrix and write on behalf of the Matrix class. This category includes the number of variables int rows matrix ranks and int cols, matrix array of data double data [][], constructor Matrix (), Matrix (int rows, int cols), Matrix (int rows, int cols, double data [] []) method to obtain the value of an element getData (int row, int col), set the value of an element of the method setData (int row, int col, double value), the calculation of two matrices method multiply (Matrix m) and toString () and so on.
Date
: 2025-12-27
Size
: 53kb
User
:
王晓菲
[
JSP/Java
]
juzhenlei
DL : 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.
Date
: 2025-12-27
Size
: 1kb
User
:
刘凯
[
JSP/Java
]
连连看javafx
DL : 0
连连看,用javafx实现, this.setOnMouseClicked(e -> { if (e.getButton() == MouseButton.PRIMARY) { x2 = (int) ((e.getX() - w) / w); y2 = (int) ((e.getY() - w) / w); g.drawImage(new Image("llkpics/checked.png"), x2 * w + w, y2 * w + w, w/6,w/6); if (check == false) { x1 = x2; y1 = y2; }//2次一循环 else { int grade = 0; if (isSame(x1, y1, x2, y2) && isCut(x1, y1, x2, y2) && map[y1 * COL + x1] != BLANK && map[y2 * COL + x2] != BLANK) { grade = Integer.parseInt(MainFrame.tf.getText()) + 2; MainFrame.tf.setText(String.valueOf(grade)); //不同的点击 if (x1 != x2 || y1 != y2) { map[y1 * COL + x1] = BLANK; map[y2 * COL + x2] = BLANK; myRepaint(); } } } check = !check; } });(this.setOnMouseClicked(e -> { if (e.getButton() == MouseButton.PRIMARY) { x2 = (int) ((e.getX() - w) / w); y2 = (int) ((e.getY() - w) / w); g.drawImage(new Image("llkpics/checked.png"), x2 * w + w, y2 * w + w, w/6,w/6); if (check == false) { x1 = x2; y1 = y2; } else { int grade = 0; if (isSame(x1, y1, x2, y2) && isCut(x1, y1, x2, y2) && map[y1 * COL + x1] != BLANK && map[y2 * COL + x2] != BLANK) { grade = Integer.parseInt(MainFrame.tf.getText()) + 2; MainFrame.tf.setText(String.valueOf(grade)); if (x1 != x2 || y1 != y2) { map[y1 * COL + x1] = BLANK; map[y2 * COL + x2] = BLANK; myRepaint(); } } } check = !check; } });)
Date
: 2025-12-27
Size
: 240kb
User
:
谭先生456
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.