Пример #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);
     }
 }
Пример #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()));
        }
Пример #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()));
 }