diag() {
                var min = Math.min(this.rows, this.columns);
                var diag = new Array(min);
                for (var i = 0; i < min; i++) {
                    diag[i] = this.get(i, i);
                }
                return diag;
            }
Returns an array containing the diagonal values of the matrix
@return {Array}