{{alias}}( x, dim, stop[, options] ) Returns a read-only truncated view of an input ndarray along a specified dimension. Parameters ---------- x: ndarray Input array. dim: integer Index of dimension to slice. If less than zero, the index is resolved relative to the last dimension, with the last dimension corresponding to the value `-1`. stop: integer Ending index (exclusive). If less than zero, the corresponding element along the specified dimension is resolved relative to the last element along that dimension. For negative integers, the last element corresponds to the value `-1`. options: Object (optional) Options. options.strict: boolean (optional) Boolean indicating whether to enforce strict bounds checking. Default: true. Returns ------- out: ndarray Output array view. Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] ) > x.shape [ 2, 2 ] > var y = {{alias}}( x, 1, 1 ) > y.shape [ 2, 1 ] > {{alias:@stdlib/ndarray/to-array}}( y ) [ [ 1 ], [ 3 ] ] See Also --------