utils#

block_matrix(M)[source]#

Horizontal stack of vectors.

concatenate(vectors)[source]#

Concatenate vectors.

get_slice(x, start=0, end=None, step=None)[source]#

Get a slice x[start:end:step].

hstack(arrays)[source]#

Vertical stack of vectors/matrix.

tail(x)[source]#

Get the tail x[1:] of a vector.

to_list(a, n=1)[source]#

Transform a to list of length n.

vstack(arrays)[source]#

Vertical stack of vectors/matrix.