Skip to content

Commit a04cdf6

Browse files
committed
Use tip directive.
1 parent dd1ad14 commit a04cdf6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/tutorial-svd.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,13 @@ Since we are going to perform linear algebra operations on this data, it might b
120120
img_array = img / 255
121121
```
122122

123-
This operation, dividing an array by a scalar, works because of NumPy's [broadcasting rules](https://numpy.org/devdocs/user/theory.broadcasting.html#array-broadcasting-in-numpy). (Note that in real-world applications, it would be better to use, for example, the [img_as_float](https://scikit-image.org/docs/stable/api/skimage.html#skimage.img_as_float) utility function from `scikit-image`).
123+
This operation, dividing an array by a scalar, works because of NumPy's [broadcasting rules](https://numpy.org/devdocs/user/theory.broadcasting.html#array-broadcasting-in-numpy).
124+
125+
```{tip}
126+
In real-world applications, it may be better to use, for example, the
127+
[img_as_float](https://scikit-image.org/docs/stable/api/skimage.html#skimage.img_as_float)
128+
utility function from `scikit-image`.
129+
```
124130

125131
You can check that the above works by doing some tests; for example, inquiring
126132
about maximum and minimum values for this array:

0 commit comments

Comments
 (0)