Fixed deprecation warning

This commit is contained in:
udlbook
2024-04-17 14:10:33 -04:00
parent 36e3a53764
commit 80732b29bc

View File

@@ -269,7 +269,7 @@
"# Compute with vector/matrix form\n", "# Compute with vector/matrix form\n",
"y_vec = beta_vec+np.matmul(omega_mat, x_vec)\n", "y_vec = beta_vec+np.matmul(omega_mat, x_vec)\n",
"print(\"Matrix/vector form\")\n", "print(\"Matrix/vector form\")\n",
"print('y1= %3.3f\\ny2 = %3.3f'%((y_vec[0],y_vec[1])))\n" "print('y1= %3.3f\\ny2 = %3.3f'%((y_vec[0][0],y_vec[1][0])))\n"
] ]
}, },
{ {