tricubic_interpolator_from_grid
rust_fun.tricubic_interpolator_from_grid(
egrid8,
extent_x=1.0,
extent_y=1.0,
extent_z=1.0,
)Build a tricubic energy interpolator from an 8-channel energy grid.
Parameters
egrid8 : ndarray, float64 Shape (8, nx, ny, nz) in C order. Channel 0 = energy, 1-3 = ∂E/∂s_{x,y,z}, 4-7 = mixed ∂²E / ∂³E. extent_x, extent_y, extent_z : float ASE fractional span per axis covered by egrid8 (1.0 = full cell). Query coordinates in ASE [0, 1) map directly to the grid (no folding); extent is handled at grid-build time and in derivative scaling.
Returns
TricubicField Rust-backed interpolator with .interpolate([fx, fy, fz]) -> float and .interpolate_batch(fracs) -> ndarray methods.
Notes
This is the Phase-1 evaluator only (no grid build). For the complete pipeline (build + interpolate), see egrid_tricubic_from_atoms_rust (Phase 2, planned).