 
 floor = Math.floor
 
-newEmpty = (width, height) -> new Matrix new Array(width * height), width
+newEmpty = (width, height) ->
+  new Matrix new Array(width * height), width
+
 
 class Matrix
   constructor: (@array, @width = Math.sqrt array.length) ->

      for j in [0...@height] by 1
        T.array[j + i * @height] = @array[i + j * @width]
    T

  toString: ->
    str = ''

    if @height != floor(@height) or @width != floor(@width)
      fail 'invalid array size'


  get: (row, col) ->
    @array[row * @width + col]

  set: (row, col, val) ->
    @array[row * @width + col] = val
    @

  isSameSize: (B) ->
    @height == B.height and @width == B.width
