Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In Python, matrices are not it's own thing, but rather a list of list/nested lists. Let's look at an example:

Our matrix of choice is will be 

. To represent this matrix in python, we will consider the matrix as two independent lists (


put together in one list.




Code Block
languagepy
titleCreating a matrix
a = np.array([[1,2],[3,4]])

...