|
530 | 530 | //! ------|-----------|------
|
531 | 531 | //! `a[:] = 3.` | [`a.fill(3.)`][.fill()] | set all array elements to the same scalar value
|
532 | 532 | //! `a[:] = b` | [`a.assign(&b)`][.assign()] | copy the data from array `b` into array `a`
|
533 |
| -//! `np.concatenate((a,b), axis=1)` | [`stack![Axis(1), a, b]`][stack!] or [`stack(Axis(1), &[a.view(), b.view()])`][stack()] | concatenate arrays `a` and `b` along axis 1 |
534 |
| -//! `np.stack((a,b), axis=1)` | [`stack_new_axis![Axis(1), a, b]`][stack_new_axis!] or [`stack_new_axis(Axis(1), vec![a.view(), b.view()])`][stack_new_axis()] | stack arrays `a` and `b` along axis 1 |
| 533 | +//! `np.concatenate((a,b), axis=1)` | [`concatenate![Axis(1), a, b]`][concatenate!] or [`concatenate(Axis(1), &[a.view(), b.view()])`][concatenate()] | concatenate arrays `a` and `b` along axis 1 |
| 534 | +//! `np.stack((a,b), axis=1)` | [`stack![Axis(1), a, b]`][stack!] or [`stack(Axis(1), vec![a.view(), b.view()])`][stack()] | stack arrays `a` and `b` along axis 1 |
535 | 535 | //! `a[:,np.newaxis]` or `np.expand_dims(a, axis=1)` | [`a.insert_axis(Axis(1))`][.insert_axis()] | create an array from `a`, inserting a new axis 1
|
536 | 536 | //! `a.transpose()` or `a.T` | [`a.t()`][.t()] or [`a.reversed_axes()`][.reversed_axes()] | transpose of array `a` (view for `.t()` or by-move for `.reversed_axes()`)
|
537 | 537 | //! `np.diag(a)` | [`a.diag()`][.diag()] | view the diagonal of `a`
|
|
585 | 585 | //! [.ncols()]: ../../struct.ArrayBase.html#method.ncols
|
586 | 586 | //! [.column()]: ../../struct.ArrayBase.html#method.column
|
587 | 587 | //! [.column_mut()]: ../../struct.ArrayBase.html#method.column_mut
|
| 588 | +//! [concatenate!]: ../../macro.concatenate.html |
| 589 | +//! [concatenate()]: ../../fn.concatenate.html |
588 | 590 | //! [CowArray]: ../../type.CowArray.html
|
589 | 591 | //! [::default()]: ../../struct.ArrayBase.html#method.default
|
590 | 592 | //! [.diag()]: ../../struct.ArrayBase.html#method.diag
|
|
641 | 643 | //! [.shape()]: ../../struct.ArrayBase.html#method.shape
|
642 | 644 | //! [stack!]: ../../macro.stack.html
|
643 | 645 | //! [stack()]: ../../fn.stack.html
|
644 |
| -//! [stack_new_axis!]: ../../macro.stack_new_axis.html |
645 |
| -//! [stack_new_axis()]: ../../fn.stack_new_axis.html |
646 | 646 | //! [.strides()]: ../../struct.ArrayBase.html#method.strides
|
647 | 647 | //! [.index_axis()]: ../../struct.ArrayBase.html#method.index_axis
|
648 | 648 | //! [.sum_axis()]: ../../struct.ArrayBase.html#method.sum_axis
|
|
0 commit comments