made changes to matrix questions.
--- a/matrices/questions.rst Sun Nov 07 16:51:41 2010 +0530
+++ b/matrices/questions.rst Sun Nov 07 16:56:37 2010 +0530
@@ -3,14 +3,14 @@
.. A mininum of 8 questions here (along with answers)
-1. ``matrix(A) * matrix(B)`` and ``array(A) * array(B)`` are the same.
+1. ``array(A) * array(B)`` does matrix multiplication.
a. True
#. False
Answer: False
-2. ``matrix(A) * array(B)`` does,
+2. ``array(A) * array(B)`` does,
a. Element wise multiplication.
#. Matrix multiplication.
@@ -19,9 +19,9 @@
multiplication will be done, otherwise element wise
multiplication.
-Answer: Matrix multiplication
+Answer: Element wise multiplication.
-3. A and B are two matrix objects. Element wise multiplication in
+3. A and B are two array objects. Element wise multiplication in
matrices are done by,
a. A * B
@@ -29,7 +29,7 @@
#. ``dot(A, B)``
#. ``element_multiply(A,B)``
-Answer: multiply(A, B)
+Answer: dot(A, B)
4. ``norm(A)`` method determines the,
@@ -50,7 +50,7 @@
6. The code snippet will work without an error,
::
- A = matrix([[1, 2, 3, 4], [5, 6, 7, 8]])
+ A = array([[1, 2, 3, 4], [5, 6, 7, 8]])
inv(A)
a. True