Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between numpy array and matrix

import numpy as np

a = np.array([[4, 3], [2, 1]])
b = np.array([[1, 2], [3, 4]])
print(a@b)
# [[13 20]
#  [ 5  8]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #difference #numpy #array #matrix
ADD COMMENT
Topic
Name
6+4 =