author | bhanu |
Mon, 15 Nov 2010 15:00:34 +0530 | |
changeset 503 | a858141ad884 |
parent 398 | 36295bb91766 |
permissions | -rw-r--r-- |
398
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
1 |
Creating an array:\\ |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
2 |
{\ex \lstinline| a = array([[1,2,3,4],[5,6,7,8]])|} |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
3 |
|
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
4 |
Finding shape of array:\\ |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
5 |
{\ex \lstinline| a.shape|} |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
6 |
|
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
7 |
Reshape an array:\\ |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
8 |
{\ex \lstinline| a.reshape(4,2)|} |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
9 |
|
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
10 |
Creating identity matrix:\\ |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
11 |
{\ex \lstinline| identity(3)|} |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
12 |
|
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
13 |
Creating matrix with all zeros:\\ |
36295bb91766
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
14 |
{\ex \lstinline| z = zeros((4,2))|} |