Next:
Adding a constant to
Up:
A sampling of useful
Previous:
Array shape
Multiplying an array by a constant
When we multiply an array by a constant, each element is multiplied by that constant.
>>> print(2*M) [[ 2. -4. 2.] [ 4. -8. 4.] [ 6. -12. 6.] [ 8. -16. 8.] [ 10. -20. 10.]]
Carleton DeTar 2018-02-12