lib/ops.js
function empty(arg0, datatype) {
    var A;
    if (Array.isArray(arg0)) {
        A = new ndarray_1.NDArray({ shape: arg0, datatype: datatype });
    }
    else {
        A = new ndarray_1.NDArray({ shape: [arg0], datatype: datatype });
    }
    return A;
}
function empty(arg0, datatype) {
    var A;
    if (Array.isArray(arg0)) {
        A = new ndarray_1.NDArray({ shape: arg0, datatype: datatype });
    }
    else {
        A = new ndarray_1.NDArray({ shape: [arg0], datatype: datatype });
    }
    return A;
}
function empty ( arg0 , datatype ) { var A ; if ( Array . isArray ( arg0 ) ) { A = new ndarray_1 . NDArray ( { shape : arg0 , datatype : datatype } ) ; } else { A = new ndarray_1 . NDArray ( { shape : [ arg0 ] , datatype : datatype } ) ; } return A ; }
Creates empty NDArray of given shape or of given length if argument is
a number
Creates empty NDArray of given shape or of given length if argument is a number