Return the minimum value along an axis. Parameters ---------- See `amin` for complete descriptions. See Also -------- amin, ndarray.min Notes ----- This is the same as `ndarray.min`, but returns a `matrix` object
(self, axis=None, out=None)
| 684 | return N.ndarray.argmax(self, axis, out)._align(axis) |
| 685 | |
| 686 | def min(self, axis=None, out=None): |
| 687 | """ |
| 688 | Return the minimum value along an axis. |
| 689 | |
| 690 | Parameters |
| 691 | ---------- |
| 692 | See `amin` for complete descriptions. |
| 693 | |
| 694 | See Also |
| 695 | -------- |
| 696 | amin, ndarray.min |
| 697 | |
| 698 | Notes |
| 699 | ----- |
| 700 | This is the same as `ndarray.min`, but returns a `matrix` object |
| 701 | where `ndarray.min` would return an ndarray. |
| 702 | |
| 703 | Examples |
| 704 | -------- |
| 705 | >>> x = -np.matrix(np.arange(12).reshape((3,4))); x |
| 706 | matrix([[ 0, -1, -2, -3], |
| 707 | [ -4, -5, -6, -7], |
| 708 | [ -8, -9, -10, -11]]) |
| 709 | >>> x.min() |
| 710 | -11 |
| 711 | >>> x.min(0) |
| 712 | matrix([[ -8, -9, -10, -11]]) |
| 713 | >>> x.min(1) |
| 714 | matrix([[ -3], |
| 715 | [ -7], |
| 716 | [-11]]) |
| 717 | |
| 718 | """ |
| 719 | return N.ndarray.min(self, axis, out, keepdims=True)._collapse(axis) |
| 720 | |
| 721 | def argmin(self, axis=None, out=None): |
| 722 | """ |