# HG changeset patch # User Anoop Jacob Thomas # Date 1289129197 -19800 # Node ID 4aea9ed0998345e45e457c05199a7c52b531d4b1 # Parent f0c97fd60e5c43c0bf583f6de29c9236b5e44674 made changes to matrix questions. diff -r f0c97fd60e5c -r 4aea9ed09983 matrices/questions.rst --- 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