- 需要用 HTML 中的 Anchor(如下代码所示)给相应的节、字节、段落创建链接的 Anchor
在 Numpy 数组中,size 和 shape 都是属性,而非函数,所以调用的时候不要加括号,size 返回的是 里面的元素数,shape 返回的是真正的尺寸
RESHAPE and LINEAR INDEXING: Matlab always allows multi-dimensional arrays to be accessed using scalar or linear indices, NumPy does not. Linear indices are common in Matlab programs, e.g. find() on a matrix returns them, whereas NumPy’s find behaves differently.
When converting Matlab code it might be necessary to first reshape a matrix to a linear sequence, perform some indexing operations and then reshape back. As reshape (usually) produces views onto the same storage, it should be possible to do this fairly efficiently. Note that the scan order used by reshape in NumPy defaults to the ‘C’ order, whereas Matlab uses the Fortran order. If you are simply converting to a linear sequence and back this doesn’t matter. But if you are converting reshapes from Matlab code which relies on the scan order, then this Matlab code: z = reshape(x,3,4); should become z = x.reshape(3,4,order=’F’).copy() in NumPy.
矩阵既可以用单个坐标,可以用(行,列)两个坐标,ind2sub
是转换的函数
最好的方法是按照
http://tex.stackexchange.com/questions/169978/subfigure-removing-and-controlling-label-numbering
里给出的 \addtocounter{subfigure}{-1} 可以把这个 1 换成你要的
https://gist.github.com/YimianDai/7dcf6340fc435323a328634df0666f5e
$ curl -u "{:username}" https://api.github.com/repos/{:organization}/{:repository}
把花括号内的包括花括号替换成相应的内容即可,比如我的 curl -u "yimiandai" https://api.github.com/repos/yimiandai/images
没有 {:organization}
就跳过,在输出的最后倒数 30 行附近,有一个 size,后面的数字就是这个 repo 的大小,单位是 KB。