nl_tokens: ARRAY // FUNCTION : array ( x [ dtype ] ) Returns an array instance .
pl_tokens: function array ( x , dtype ) { /* jshint newcap:false */ var ctor , dt ; if ( isNumber ( x ) ) { if ( ! isNonNegativeInteger ( x ) ) { throw new TypeError ( 'invalid input argument. Array length must be a nonnegative integer. Value: `' + x + '`.' ) ; } if ( arguments . length === 1 ) { return new CTOR ( x ) ; } ctor = ctors ( dtype ) ; if ( ctor === null ) { throw new Error ( 'invalid input argument. Unrecognized/unsupported data type. Value: `' + dtype + '`.' ) ; } return new ctor ( x ) ; } if ( ! isArrayLike ( x ) ) { throw <mask> TypeError ( 'invalid input argument. Input data must be either a typed or generic array. Value: `' + x + '`.' ) ; } if ( arguments . length > 1 ) { dt = dtype ; } else { dt = 'float64' ; } return cast ( x , dt ) ; }