qttools.kernels.inplace.numba#
source package qttools.kernels.inplace.numba
Functions
source iadd(a: NDArray, b: NDArray, inds: NDArray) → None
Adds array b to array a at indices inds in-place.
Parameters
-
a : NDArray — The array to be updated.
-
b : NDArray — The array to be added to
a. -
inds : NDArray — The indices at which to add
btoa.
source iadd_obc(a: NDArray, b: NDArray, inds: NDArray, k: tuple[float, float], transverse_repetition_grid: tuple[int, int])
Adds array b to array a at indices ind in-place with OBC repetitions.
Parameters
-
a : NDArray — The array to be updated.
-
b : NDArray — The array to be subtracted from
a. -
inds : NDArray — The indices at which to subtract
bfroma. -
k : tuple[float, float] — The transverse wavevector components.
-
transverse_repetition_grid : tuple[int, int] — The transverse repetition grid of the contact.
source isub(a: NDArray, b: NDArray, inds: NDArray) → None
Subtracts array b from array a at indices inds in-place.
Parameters
-
a : NDArray — The array to be updated.
-
b : NDArray — The array to be subtracted from
a. -
inds : NDArray — The indices at which to subtract
bfroma.
source isub_obc(a: NDArray, b: NDArray, inds: NDArray, k: tuple[float, float], transverse_repetition_grid: tuple[int, int])
Subtracts array b from array a at indices ind in-place with OBC repetitions.
Parameters
-
a : NDArray — The array to be updated.
-
b : NDArray — The array to be subtracted from
a. -
inds : NDArray — The indices at which to subtract
bfroma. -
k : tuple[float, float] — The transverse wavevector components.
-
transverse_repetition_grid : tuple[int, int] — The transverse repetition grid of the contact.