Miscellaneous tools from Yeti

Some math and I/O tools. The original set of functions provided by this module were originally translated from Yeti (now a dead language) to Python.

Math/utility routines

axis_equal_3d(ax[, buffer_space])

Set equal axes for 3d plot

compmat(a, b[, filterval, method, ...])

Compare two matrices term-by-term.

eig_si(K, M, *[, Xk, f, p, mu, tol, pmax, ...])

Perform subspace iteration to calculate eigenvalues and eigenvectors.

fit_circle_2d(x, y[, makeplot])

Find radius and center point of x-y data points

fit_circle_3d(basic[, makeplot])

Fit a circle through data points in 3D space

gensweep(ppc, fstart, fstop, rate)

Generate a unity amplitude sine-sweep time domain signal.

histogram(data, binsize)

Calculate a histogram

isdiag(A[, tol])

Checks contents of square matrix A to see if it is approximately diagonal.

mattype(A[, mtype, return_cholesky])

Checks contents of square matrix A to see if it is symmetric, hermitian, positive-definite, diagonal, and identity.

max_complex_vector_sum(x, y)

Compute maximum complex vector from x and y components

mkpattvec(start, stop, inc)

Make a pattern "vector".

multmd(a, b)

Multiply a matrix and a diagonal, or two diagonals, in either order.

np_printoptions(*args, **kwargs)

Defines a context manager for numpy.set_printoptions()

numba_interp(x, xp, fp)

Apply np.interp to each row of 2d array.

reorder_dict(ordered_dict, keys, where)

Copy and reorder an ordered dictionary

sturm(A, lam)

Count number of eigenvalues <= lam of symmetric matrix A.

I/O helper routines

load(name)

Load an object from a pickle file.

save(name, obj)

Save an object to a file via pickling.