compute_gv
compute_gv(xlylzl, omega, omegasign, wvln, wedge, chi, t, gv)
Categories: Scattering geometry
Layout: xlylzl and gv accept (n,3) AoS or (3,n) SoA See AoS/SoA guide.
Description
computes scattering vectors given thr positions of the spot in the laboratory in xlylzl[npks], the omega rotation[npks], and the rest of the parameters (wedge,wvln,chi,t[3] and omegasign)
Parameters
| Name | Description |
|---|---|
chi |
Chi angle (radians). |
gv |
Output g-vectors, (n,3) AoS or (3,n) SoA. |
omega |
Omega rotation per spot (radians), shape (n,). |
omegasign |
Omega rotation sign. |
t |
Translation vector (3 elements). |
wedge |
Wedge angle (radians). |
wvln |
Wavelength (angstroms). |
xlylzl |
Spot positions in lab frame, (n,3) AoS or (3,n) SoA. |
Constraints
xlylzl.ndim == 2t.n == 3gv.ndim == 2
Overloads
| C function | Condition |
|---|---|
compute_gv |
f64 |
compute_gv_f32 |
f32 |
compute_gv_soa_f64 |
f64 |
compute_gv_soa_f32 |
f32 |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)