private void button4_Click(object sender, EventArgs e) { var rowMatrix = new ind_matrix(); var rowA = (int)numericUpDown7.Value - 1; var rowMatrB = new ind_matrix(); var rowB = (int)numericUpDown5.Value - 1; rowMatrix.ind_matr = rowMatrix.row_matr(A.mtr, rowA); rowMatrB.ind_matr = rowMatrB.row_matr(B.mtr, rowB); MessageBox.Show(rowMatrix == rowMatrB ? "Rows are equal" : "Rows are different"); }
private void button5_Click(object sender, EventArgs e) { var row = (int)numericUpDown6.Value - 1; var im = new ind_matrix(); im.ind_matr = im.row_matr(A.mtr, row); im++; var s = ""; for (var i = 0; i < matrix.rang; i++) { s += im.ind_matr[i] + " "; } textBox2.Text = s; }