Operations
Linear algebra operations for GPJax LinearOperators.
lower_cholesky
Compute the lower Cholesky decomposition of a positive semi-definite operator.
This function dispatches on the type of the input LinearOperator to provide efficient implementations for different operator structures.
Parameters:
-
A(LinearOperator) βA positive semi-definite LinearOperator.
Returns:
-
LinearOperatorβThe lower triangular Cholesky factor L such that A = L @ L.T.
solve
Solve the linear system A @ x = b for x.
This function dispatches on the type of the input LinearOperator to provide efficient implementations for different operator structures.
Parameters:
-
A(LinearOperator) βA LinearOperator representing the matrix A.
-
b(Union[Float[Array, ' N'], Float[Array, ' N M']]) βThe right-hand side vector or matrix.
Returns:
-
Union[Float[Array, ' N'], Float[Array, ' N M']]βThe solution x to the linear system.
logdet
Compute the log-determinant of a linear operator.
This function dispatches on the type of the input LinearOperator to provide efficient implementations for different operator structures.
Parameters:
-
A(LinearOperator) βA LinearOperator.
Returns:
-
ScalarFloatβThe log-determinant of A.
diag
Extract the diagonal of a linear operator.
This function dispatches on the type of the input LinearOperator to provide efficient implementations for different operator structures.
Parameters:
-
A(LinearOperator) βA LinearOperator.
Returns:
-
Float[Array, ' N']βThe diagonal elements of A as a 1D array.