Skip to content

Commit 5356b3b

Browse files
authored
Update 08-linear-algebra.md (#722) - closes #721
1 parent 949ef17 commit 5356b3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎01-intro/08-linear-algebra.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ Let's test it:
153153

154154
```python
155155
>>> matrix_vector_multiplication(U, v)
156-
array([14., 5., 5.])
156+
[20. , 6. , 8.5]
157157
```
158158

159159
We get a one-dimensional array - a vector. And again, in NumPy we don't want to write this function every time: we use `dot` again. Because we invoke it on a two-dimensional array, NumPy knows it needs to do a matrix-vector product:
160160

161161
```python
162162
>>> U.dot(v)
163-
array([14, 5, 5])
163+
array([20. , 6. , 8.5])
164164
```
165165

166166
Same result.

0 commit comments

Comments
 (0)