build/modelscript.umd.js
function(matrix) {
            	if(typeof(matrix) == 'number') {
            	    return this.map(function(x, i, j) { return x + matrix});
            	} else {
            	    var M = matrix.elements || matrix;
            	    if (typeof(M[0][0]) == 'undefined') { M = Matrix$b.create(M).elements; }
            	    if (!this.isSameSizeAs(M)) { return null; }
            	    return this.map(function(x, i, j) { return x + M[i - 1][j - 1]; });
            	}
                }
function(matrix) {
            	if(typeof(matrix) == 'number') {
            	    return this.map(function(x, i, j) { return x + matrix});
            	} else {
            	    var M = matrix.elements || matrix;
            	    if (typeof(M[0][0]) == 'undefined') { M = Matrix$b.create(M).elements; }
            	    if (!this.isSameSizeAs(M)) { return null; }
            	    return this.map(function(x, i, j) { return x + M[i - 1][j - 1]; });
            	}
                }
function ( matrix ) { if ( typeof ( matrix ) == 'number' ) { return this . map ( function ( x , i , j ) { return x + matrix } ) ; } else { var M = matrix . elements || matrix ; if ( typeof ( M [ 0 ] [ 0 ] ) == 'undefined' ) { M = Matrix$b . create ( M ) . elements ; } if ( ! this . isSameSizeAs ( M ) ) { return null ; } return this . map ( function ( x , i , j ) { return x + M [ i - 1 ] [ j - 1 ] ; } ) ; } }
Returns the result of adding the argument to the matrix
Returns the result of adding the argument to the matrix