title: Differences between matrix multiplication and array dot
body: <p>I am new to Python. I have a trouble doing matrix multiplication. I have two lists:</p>
  
  <pre><code>      A =[3.0,3.0]    
        # 1 by 2 matrix
  
        B =[[ 50.33112583, -49.66887417],
             [-49.66887417,  50.33112583]]
        # 2 by 2 matrix 
  
        Result should be :
        # 1 by 2 matrix
        c = [1.9867549668874176, 1.986754966887446] 
  
  
        Right now I am doing:
       &gt;&gt; A = numpy.matrix(A)
       &gt;&gt; B = numpy.matrix(B)
  
       &gt;&gt; C =A * B  
       &gt;&gt; C
          matrix([[ 1.98675497,  1.98675497]])
  
       &gt;&gt;C.tolist()
         [[1.9867549668874176, 1.986754966887446]]
  </code></pre>
  
  <p>If I do dot product then, </p>
  
  <pre><code>    &gt;&gt;&gt; B =numpy.array(B)
      &gt;&gt;&gt; B
      array([[ 50.33112583, -49.66887417],
     [-49.66887417,  50.33112583]])
      &gt;&gt;&gt; A = [ 3.,  3.]
      &gt;&gt;&gt; A =numpy.array(A)
      &gt;&gt;&gt; A
        array([ 3.,  3.])
      &gt;&gt;&gt; C = numpy.dot(A,B)
      &gt;&gt;&gt; C
      array([ 1.98675497,  1.98675497])
      &gt;&gt;&gt; C.tolist()
      [1.9867549668874176, 1.986754966887446]
  </code></pre>
  
  <p>Why I am getting two brackets when I use matrix multiplication?? Whether dot product and matrix multiplication are same here? Can some one explain me this??</p>