title: Importing Linear Algebra Numpy
body: <p>I'm trying to use the following </p>
  
  <pre><code>
  import numpy as np
  from scipy import linalg as LA
  from np.LA import matrix_power
  from np.LA  import multi_dot
  
  </code></pre>
  
  <p>But am getting the following error:</p>
  
  <p><code>File "comp_functions.py", line 9, in &lt;module&gt;
      from np.LA import matrix_power
  ModuleNotFoundError: No module named 'np'</code></p>
  
  <p>It's not due to a faulty location as the code in question as I've found to be solution to most other cases on this site as  prior to me adding <code>from np.LA  import multi_dot</code>  has been working fine for the following function:</p>
  
  <pre><code>
  def N_eigenvalue(N):
      '''
      Calculates the eigenvalues and eigenvectors of a matrix (N) using the linalg module in scipy
  
      '''
  
  
      eigenvalues, eigenvectors = LA.eig(N)
      print(eigenvalues)
      print(eigenvectors)
      return eigenvalues, eigenvectors
  </code></pre>