title: Making a matrix square and padding it with desired value in numpy
body: <p>In general we could have matrices of arbitrary sizes. For my application it is necessary to have square matrix. Also the dummy entries should have a specified value. I am wondering if there is anything built in numpy?</p>
  
  <p>Or the easiest way of doing it</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>The matrix X is already there and it is not squared. We want to pad the value to make it square. Pad it with the dummy given value. All the original values will stay the same.</p>
  
  <p>Thanks a lot</p>