qlat_utils.interp

qlat_utils.interp(data_arr, i_arr, axis=-1)[source]

return approximately data_arr[..., i_arr] if axis=-1. Note that i_arr can be non-integer. i_arr can be either an 1-D array-like object or a single number.