{{alias}}( [options] ) Returns a one-dimensional unsigned 8-bit integer ndarray. Parameters ---------- options: Object (optional) Options. options.order: string (optional) Specifies whether an array is row-major (C-style) or column-major (Fortran-style). Default: 'row-major'. options.mode: string (optional) Specifies how to handle indices which exceed array dimensions. If equal to 'throw', an ndarray instance throws an error when an index exceeds array dimensions. If equal to 'normalize', an ndarray instance normalizes negative indices and throws an error when an index exceeds array dimensions. If equal to 'wrap', an ndarray instance wraps around indices exceeding array dimensions using modulo arithmetic. If equal to 'clamp', an ndarray instance sets an index exceeding array dimensions to either `0` (minimum index) or the maximum index. Default: 'throw'. options.readonly: boolean (optional) Boolean indicating whether an array should be read-only. Default: false. Returns ------- out: ndarray A one-dimensional ndarray. Examples -------- > var arr = {{alias}}() {{alias}}( length[, options] ) Returns a one-dimensional unsigned 8-bit integer ndarray having a specified length. Parameters ---------- length: integer Number of elements. options: Object (optional) Options. options.order: string (optional) Specifies whether an array is row-major (C-style) or column-major (Fortran-style). Default: 'row-major'. options.mode: string (optional) Specifies how to handle indices which exceed array dimensions. If equal to 'throw', an ndarray instance throws an error when an index exceeds array dimensions. If equal to 'normalize', an ndarray instance normalizes negative indices and throws an error when an index exceeds array dimensions. If equal to 'wrap', an ndarray instance wraps around indices exceeding array dimensions using modulo arithmetic. If equal to 'clamp', an ndarray instance sets an index exceeding array dimensions to either `0` (minimum index) or the maximum index. Default: 'throw'. options.readonly: boolean (optional) Boolean indicating whether an array should be read-only. Default: false. Returns ------- out: ndarray A one-dimensional ndarray. Examples -------- > var arr = {{alias}}( 5 ) > var len = {{alias:@stdlib/ndarray/numel}}( arr ) 5 {{alias}}( obj[, options] ) Creates a one-dimensional unsigned 8-bit integer ndarray from an array-like object or iterable. Parameters ---------- obj: Object Array-like object or iterable from which to generate an ndarray. options: Object (optional) Options. options.order: string (optional) Specifies whether an array is row-major (C-style) or column-major (Fortran-style). Default: 'row-major'. options.mode: string (optional) Specifies how to handle indices which exceed array dimensions. If equal to 'throw', an ndarray instance throws an error when an index exceeds array dimensions. If equal to 'normalize', an ndarray instance normalizes negative indices and throws an error when an index exceeds array dimensions. If equal to 'wrap', an ndarray instance wraps around indices exceeding array dimensions using modulo arithmetic. If equal to 'clamp', an ndarray instance sets an index exceeding array dimensions to either `0` (minimum index) or the maximum index. Default: 'throw'. options.readonly: boolean (optional) Boolean indicating whether an array should be read-only. Default: false. Returns ------- out: ndarray A one-dimensional ndarray. Examples -------- > var v = [ 1, 2, 3 ]; > var arr = {{alias}}( v ) > var len = {{alias:@stdlib/ndarray/numel}}( arr ) 3 {{alias}}( buffer[, byteOffset[, length]][, options] ) Returns a one-dimensional unsigned 8-bit integer ndarray view of an ArrayBuffer. Parameters ---------- buffer: ArrayBuffer Underlying ArrayBuffer. byteOffset: integer (optional) Integer byte offset specifying the location of the first indexed element. Default: 0. length: integer (optional) View length. If not provided, the view spans from the byteOffset to the end of the underlying ArrayBuffer. options: Object (optional) Options. options.order: string (optional) Specifies whether an array is row-major (C-style) or column-major (Fortran-style). Default: 'row-major'. options.mode: string (optional) Specifies how to handle indices which exceed array dimensions. If equal to 'throw', an ndarray instance throws an error when an index exceeds array dimensions. If equal to 'normalize', an ndarray instance normalizes negative indices and throws an error when an index exceeds array dimensions. If equal to 'wrap', an ndarray instance wraps around indices exceeding array dimensions using modulo arithmetic. If equal to 'clamp', an ndarray instance sets an index exceeding array dimensions to either `0` (minimum index) or the maximum index. Default: 'throw'. options.readonly: boolean (optional) Boolean indicating whether an array should be read-only. Default: false. Returns ------- out: ndarray A one-dimensional ndarray. Examples -------- > var buf = new {{alias:@stdlib/array/buffer}}( 32 ); > var arr = {{alias}}( buf, 0, 4 ) > var len = {{alias:@stdlib/ndarray/numel}}( arr ) 4 See Also --------