This commit is contained in:
mhjensen
2018-05-27 09:43:21 -04:00
parent f90a232c25
commit 17afb32e08
2 changed files with 59 additions and 39 deletions
+17
View File
@@ -291,6 +291,23 @@ print(Eigvals)
!ec
!bc pycod
import numpy as np
import matplotlib.pyplot as plt
from scipy import sparse
eye = np.eye(4)
print(eye)
sparse_mtx = sparse.csr_matrix(eye)
print(sparse_mtx)
x = np.linspace(-10,10,100)
y = np.sin(x)
plt.plot(x,y,marker='x')
plt.show()
!ec
!split
===== Matrix Handling in C/C++, Static and Dynamical allocation =====