I am studying physics and numpy simultaneously. Numpy says my 3x3 matrix has 2-dimensions, but in my physics book or 3blue1brown 'Essence of linear Algebra' a 3x3 matrix is 3-D
#a '2d' array, created using identity
i2d = np.identity(3)
print(i2d)
print('this is a %s-D array, shape is %s with %s elements'%(i2d.ndim, i2d.shape, i2d.size))
YIELDS:
[[1. 0. 0.]
[0. 1. 0.]
[0. 0. 1.]]
this is a 2-D array, shape is (3, 3) with 9 elements
In linear algebra, this defines a 3-D space with 3 perpendicular basis vectors. Anyone know what I am missing.