What are the differences between numpy arrays and matrices? Which one should I use?
Asked 07 September, 2021
Viewed 567 times
  • 62
Votes

What are the advantages and disadvantages of each?

From what I've seen, either one can work as a replacement for the other if need be, so should I bother using both or should I stick to just one of them?

Will the style of the program influence my choice? I am doing some machine learning using numpy, so there are indeed lots of matrices, but also lots of vectors (arrays).

5 Answer