Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
//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()));
        }
Esempio n. 3
0
 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()));
 }