covmats.CovKernelAsLinop#

class covmats.CovKernelAsLinop(*args, **kwargs)[source]#

Abstract class providing linear operator capability from a kernel definition.

__init__(pts: ndarray[tuple[Any, ...], dtype[float64]], kernel: Callable, len_scale: ndarray[tuple[Any, ...], dtype[float64]], nugget: float = 0.0, k: int = 100, is_use_preconditioner: bool = False) None[source]#

Initialize the instance.

Parameters:
  • pts (NDArrayFloat) – _description_

  • kernel (Callable) – _description_

  • nugget (float, optional) – _description_, by default 0.0

Properties

count

solvematvecs

H

Hermitian adjoint.

T

Transpose this linear operator.

n_pts

Return the number of points covered.

ndim

Methods

adjoint

Hermitian adjoint.

dot

Matrix-matrix or matrix-vector multiplication.

get_diagonal

Return the diagonal entries of the matrix (variances).

itercount

Return the number of counts.

matmat

Matrix-matrix multiplication.

matvec

Matrix-vector multiplication.

reset_comptors

Set the comptors to zero.

rmatmat

Adjoint matrix-matrix multiplication.

rmatvec

Adjoint matrix-vector multiplication.

solve

Solve Ax = b, with A, the current covariance matrix instance.

todense

Explicit dense representation of the covariance matrix.

transpose

Transpose this linear operator.