Change the element-wise multiply operator to the matrix multiply operator.
parent
bcfb8e9656
commit
510273cfa1
|
@ -51,7 +51,7 @@
|
|||
"# x = regress(b,A)\n",
|
||||
"\n",
|
||||
"# Alternative 2:\n",
|
||||
"x = np.linalg.pinv(A)*b"
|
||||
"x = np.linalg.pinv(A)@b"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue