qttools.kernels.operator#
source module qttools.kernels.operator
Functions
-
operator_inverse — Computes the inverse of a matrix polynomial at sample points.
source operator_inverse(a_xx: tuple[NDArray, ...], z: NDArray, contour_type: xp.dtype, in_type: xp.dtype, num_threads: int = 1024) → NDArray
Computes the inverse of a matrix polynomial at sample points.
Parameters
-
a_xx : tuple[NDArray, ...] — The coefficients of the matrix polynomial.
-
z : NDArray — The sample points at which to compute the inverse.
-
contour_type : xp.dtype — The data type for the contour integration.
-
in_type : xp.dtype — The data type for the input matrices.
-
num_threads : int, optional — The number of cuda threads to use for the kernel. Only relevant for GPU computations.
Returns
-
NDArray — The inverse of the matrix polynomial.