#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 24 14:10:31 2024

@author: sam
"""

import numpy as np
from scipy import linalg as la

a = np.array([[1,0,2,3]]) # creates 1x4
b = np.array([[1],[3],[-1],[2]]) # creates 4x1

#print(np.shape(a))



'''a)'''

print(a @ b) # prints the vector product



'''b)'''

print(a.dot(b)) # also prints the vector product



'''c)'''

print(a.T) # prints 4x1 vector a transposed



'''d)'''

print(b.T @ b) # prints the length of b squared



'''e)'''

print(la.norm(a,2)) # prints the euclidean norm of a