示例#1
0
 /// <summary>
 /// Returns new matrix whose elements are the quotients m1[ij]/m2[ij].
 /// </summary>
 /// <param name="m1"></param>
 /// <param name="m2"></param>
 /// <returns></returns>
 public MatrixFixed ElementQuotient (MatrixFixed m1, MatrixFixed m2) 
 {
     MatrixFixed result = new MatrixFixed(m1.Rows, m1.Columns);
     for (int i = 0; i < m1.Rows; i++)
         for (int j = 0; j < m1.Columns; j++)
             result.Put(i,j, m1.Get(i,j) / m2.Get(i,j) );
     return result;
 }