ptypy.engines.utils#

Engine-specific utilities. This could be compiled, or GPU accelerated.

This file is part of the PTYPY package.

copyright:

Copyright 2014 by the PTYPY team, see AUTHORS.

license:

see LICENSE for details.

Functions

Cdot(c1, c2)

Compute the dot product on two containers c1 and c2.

Cnorm2(c)

Computes a norm2 on whole container c.

basic_fourier_update(diff_view[, pbound, ...])

* DEPRECATED * Backwards compatible function, for reference only.

basic_fourier_update_LEGACY(diff_view[, ...])

* DEPRECATED * Fourier update a single view using its associated pods.

dynamic_load(path, baselist[, fail_silently])

Load an derivatives of baselist dynamically from .py files in the given path.

log_likelihood(diff_view)

Calculates the log-likelihood for a diffraction view.

projection_update_DM_AP(diff_view[, alpha, ...])

Linear interpolation between Difference Map algorithm (a,b,c = -1,1,2) and Alternating Projections algorithm (a,b,c = 0,1,1) with coefficients a = -alpha, b = 1, c = 1 + alpha.

projection_update_generalized(diff_view, a, b, c)

Generalized projection update of a single view using its associated pods.

reduce_dimension(a, dim[, local_indices])

Apply a low-rank approximation on a.