| 1 | initial version |
Hi,
Say A is a matrix. It seems that min(A) just returns the "minimum row" ordered lexicographically, which may not necessarily contain the minimum entry.
You can use the A's list function to get a list of its entries and then take the minimum over that, so min(A.list()) gets the minimum entry of A.
| 2 | No.2 Revision |
Hi,
Say A is a matrix. It seems that min(A) just returns the "minimum row" ordered lexicographically, which may not necessarily contain the minimum entry.
You can use the A's list function to get a list of its entries and then take the minimum over that, so min(A.list()) gets the minimum entry of A.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.