curver.kernel.utilities module¶
A module of useful, generic functions; including input and output formatting.
-
curver.kernel.utilities.
alphanum_key
(strn)[source]¶ Return a list of string and number chunks from a string.
-
curver.kernel.utilities.
cyclic_slice
(L, x, y)[source]¶ Return the sublist of L from x (inclusive) to y (exclusive).
L may be cyclically permuted if needed.
-
curver.kernel.utilities.
matrix_vector
(M, v)[source]¶ Return M*v where v is interpreted as a column vector.
-
curver.kernel.utilities.
maximum
(iterable, key=<function <lambda>>, upper_bound=None)[source]¶ Return the maximum of iterable but terminate early when given an upper_bound.