09. 12. 2018
I started to work on my libraries documentation today. In these documentations, there were so many kinds of functions and examples, so I just took a quick look in general and trying to get familiar with these functions first.
Get Hanning Su’s stories in your inbox
Join Medium for free to get updates from this writer.
The first thing I need to adjust myself is that the array in NumPy is not the same as vector we used to talk in linear algebra, even they are looked same. This has confused me for a long time until I knew that I was thinking too complicated.
[[ 1., 0., 0.],
[ 0., 1., 2.]]So the rules are pretty simple. Take the array above as an example. There are two tuples in the array, we say this array has two axes. There are two elements in the first axis, so we say it has a length of two. Similarly, the second axis has the length of three. And then there are a lot of functions that can modify these arrays, like changing the type of the element or pulling out a set of elements from the array etc.







