Numpy is a module mainly written in C, which will be much faster than programming in pure python.
More...
|
| A = matrix([[1, 2, 3], [11, 12, 13], [21, 22, 23]]) |
|
| x = matrix([[1], [2], [3]]) |
|
| y = matrix([[1, 2, 3]]) |
|
| B = matrix([[27, 9, 3], [64, 16, 4], [125, 25, 5]]) |
|
| z = matrix([[10], [20], [35]]) |
|
| p = poly1d([3, 4, 5]) |
|
Numpy is a module mainly written in C, which will be much faster than programming in pure python.
Here is an example of how to invert a matrix, and do other matrix manipulation.
You can also have a look at the array module, which is a much more efficient implementation of lists, when you have to deal with only one data type.
- Author
- Paulo Roma
- Since
- 03/08/2009