Skip to content

Instantly share code, notes, and snippets.

'''
Code to plot Rs measurements.
Use ChatGPT to arrange the data from the spreadsheet into python arrays. Put in informative label on each trace
Adrian Salustri
'''
import pandas as pd
import matplotlib.pyplot as plt
strain_s1 = [0, 5, 10, 15, 20]
import torch
import matplotlib.pyplot as plt
def matmul_viz(A, x):
Ax = A @ x
# Get dimensions of matrices
rows_A, cols_A = A.shape
rows_x, cols_x = x.shape
rows_Ax, cols_Ax = Ax.shape