This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |