NumPy Commands ==================== +-----------------------------------+-------------------------------------------------------------+ | NumPy command | Note | +===================================+=============================================================+ | a.ndim | returns the num. of dimensions or the **rank** | +-----------------------------------+-------------------------------------------------------------+ | a.shape | returns the num. of rows and colums | +-----------------------------------+-------------------------------------------------------------+ | a.size | returns the num. of rows and colums | +-----------------------------------+-------------------------------------------------------------+ | arange(start,stop,step) | returns a sequence vector | +-----------------------------------+-------------------------------------------------------------+ | linspace(start,stop,steps) | returns a evenly spaced sequence in the specificed interval | +-----------------------------------+-------------------------------------------------------------+ | dot(a,b) | matrix multiplication | +-----------------------------------+-------------------------------------------------------------+ | vstack([a,b]) | stack arrays a and b vertically | +-----------------------------------+-------------------------------------------------------------+ | hstack([a,b]) | stack arrays a and b horizontally | +-----------------------------------+-------------------------------------------------------------+ | where(a>x) | returns elements from an array depending on condition | +-----------------------------------+-------------------------------------------------------------+ | argsort(a) | returns the sorted indices of an input array | +-----------------------------------+-------------------------------------------------------------+