utility

Utilities mainly for internal use.

Functions

conj_exponent(exp)

Conjugate exponent exp / (exp - 1).

nd_iterator(shape)

Iterator over n-d cube with shape.

npy_random_seed(seed)

Context manager to temporarily set the NumPy random generator seed.

pkg_supports(feature, pkg_version, pkg_feat_dict)

Return bool indicating whether a package supports feature.

run_from_ipython()

If the process is run from IPython.

unique(seq)

Return the unique values in a sequence.

writable_array(obj[, must_be_contiguous])

Context manager that casts obj to a backend-specific array and saves changes made on that array back into obj.