Numpy numpy.matrix.A () method we can get the same matrix as self. This means that with this method we can get the same matrix.
numpy.matrix.A ()p >
Return: Return self matrix
Example # 1:
B In this example, we can see that using the
matrix.A () method we can get our own matrix.
p> Exit: b>
# import an important module into python
numpy as np
# make a matrix with NumPy
'[1, 2, 3, 4]'
# applying the matrix.A () method
[[1 2 3 4]]
Example # 2:
[[1 2 3] [4 5 6] [7 8 9]]