Python  1.0
Variables
_02_matrix Namespace Reference

Numpy is a module mainly written in C, which will be much faster than programming in pure python. More...

Variables

 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])
 

Detailed Description

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

Variable Documentation

◆ A

_02_matrix.A = matrix([[1, 2, 3], [11, 12, 13], [21, 22, 23]])

◆ B

_02_matrix.B = matrix([[27, 9, 3], [64, 16, 4], [125, 25, 5]])

◆ p

_02_matrix.p = poly1d([3, 4, 5])

◆ x

_02_matrix.x = matrix([[1], [2], [3]])

◆ y

_02_matrix.y = matrix([[1, 2, 3]])

◆ z

_02_matrix.z = matrix([[10], [20], [35]])