Advertisement
isotonicq

lol

Jan 29th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.   public static Matrix operator +(Matrix arg1, double arg2)
  2.         {
  3.                var result = new Matrix(arg1.Table.GetLength(0), arg1.Table.GetLength(1));
  4.  
  5.                 for (int x = 0; x < arg1.Table.GetLength(0); x++)
  6.                 {
  7.                     for (int y = 0; y < arg1.Table.GetLength(1); y++)
  8.                     {
  9.                         result[x, y] = arg1[x, y] + arg2;
  10.                     }
  11.                 }
  12.                 return result;
  13.         }
  14.  
  15. json // http://www.newtonsoft.com/json/help/html/DeserializeObject.htm  
  16.      // http://www.newtonsoft.com/json/help/html/SerializeObject.htm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement