# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

a = np.matrix('1 0 0; 0 1 0; 0 0 1')

a

a.H

b=np.array([[1,5],[3,2],[5,6]])

b

x = np.matrix(b)

x

a.dot(b)

np.dot(a,b)

np.cross(a,b)

np.linalg.det(a)

np.linalg.eig(a)[0]

vec1 = np.array([1, 2, 3])
print(vec1)

vec2 = np.array([[3, 2], [2, 1], [1, 0]])
print(vec2)
vec2 = vec2.transpose()
print(vec2)

vec1 * vec2

vec2 * vec1

vec1.diagonal()



StarcoderdataJupyterScriptsDedupFiltered