summaryrefslogtreecommitdiff
path: root/getting-started-with-arrays/quickref.tex
diff options
context:
space:
mode:
Diffstat (limited to 'getting-started-with-arrays/quickref.tex')
-rw-r--r--getting-started-with-arrays/quickref.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/getting-started-with-arrays/quickref.tex b/getting-started-with-arrays/quickref.tex
new file mode 100644
index 0000000..10714c4
--- /dev/null
+++ b/getting-started-with-arrays/quickref.tex
@@ -0,0 +1,14 @@
+Creating an array:\\
+{\ex \lstinline| a = array([[1,2,3,4],[5,6,7,8]])|}
+
+Finding shape of array:\\
+{\ex \lstinline| a.shape|}
+
+Reshape an array:\\
+{\ex \lstinline| a.reshape(4,2)|}
+
+Creating identity matrix:\\
+{\ex \lstinline| identity(3)|}
+
+Creating matrix with all zeros:\\
+{\ex \lstinline| z = zeros((4,2))|}