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

# %matplotlib inline
import numpy as np


u = np.array([1.,2.,3.])
v = np.array([4.,5.,6.])
print u*v
print np.dot(u, v)
print np.outer(u, v)

C = np.random.randn(5, 5)
print np.linalg.det(C)
print np.trace(C)

w, v = np.linalg.eig(np.diag((1, 2, 3)))
print v, u



StarcoderdataJupyterScriptsDedupFiltered