private void button2_Click(object sender, EventArgs e) { try { Matrix R = new Matrix(RES.ToDoubleArray()); B.ToDisplay(R); } catch (Exception err) { MessageBox.Show(err.Message); } }
//UNARY OPERATIONS private Matrix Transpose(DataGridView M) { try { Matrix temp = new Matrix(M.ToDoubleArray()); temp = temp.Transpose(); return(temp); } catch (Exception err) { MessageBox.Show(err.Message); } return(new Matrix(RES.ToDoubleArray())); }
private Matrix MultiplyNum(DataGridView M, double n) { try { Matrix temp = new Matrix(M.ToDoubleArray()); temp = temp * n; return(temp); } catch (Exception err) { MessageBox.Show(err.Message); } return(new Matrix(RES.ToDoubleArray())); }