{{alias}}( arrays ) Concatenates a list of ndarrays along the last dimension. The data type of the output ndarray is determined by applying type promotion rules to the list of input ndarrays. If provided ndarrays having different memory layouts, the output ndarray has the default order. Parameters ---------- arrays: ArrayLikeObject List of input ndarrays. Each input ndarray must have a shape which is broadcast-compatible with the other input ndarrays along all dimensions other than the last dimension. Returns ------- out: ndarray Output ndarray. Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ); > var y = {{alias:@stdlib/ndarray/array}}( [ [ 5.0, 6.0 ], [ 7.0, 8.0 ] ] ); > var out = {{alias}}( [ x, y ] ) [ [ 1.0, 2.0, 5.0, 6.0 ], [ 3.0, 4.0, 7.0, 8.0 ] ] {{alias}}.assign( arrays, out ) Concatenates a list of ndarrays along the last dimension and assigns results to a provided output ndarray. Input ndarrays must promote to a data type which can be (mostly) safely cast to the data type of the output ndarray. Parameters ---------- arrays: ArrayLikeObject List of input ndarrays. Each input ndarray must have a shape which is broadcast-compatible with the other input ndarrays along all dimensions other than the last dimension. out: ndarray Output ndarray. Must have a data type to which the input ndarrays can be (mostly) safely cast. Returns ------- out: ndarray Output ndarray. Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ); > var y = {{alias:@stdlib/ndarray/array}}( [ [ 5.0, 6.0 ], [ 7.0, 8.0 ] ] ); > var z = {{alias:@stdlib/ndarray/zeros}}( [ 2, 4 ] ); > var out = {{alias}}.assign( [ x, y ], z ) [ [ 1.0, 2.0, 5.0, 6.0 ], [ 3.0, 4.0, 7.0, 8.0 ] ] > var bool = ( out === z ) true See Also --------