super_hydro.utils

Functions

contextmanager(func)

@contextmanager decorator.

dot2(A, x)

Return the matrix multiplication of A*x over the second index of A and the first index of x.

expm2(M)

Return the matrix exponential of M over the first two indices.

mstep(t, t1[, alpha])

Smooth step function that goes from 0 at time t=0 to 1 at time t=t1.

Classes

Logger([name, indent_amount])

Logging object.

MyFormatter()

Custom logging formatter for sending info to Jupyter console.

PrintLogger([name, indent_amount])