xoa.core.krig.MatrixSolver

xoa.core.krig.MatrixSolver#

class xoa.core.krig.MatrixSolver(a, spd=False)[source]#

Factorize a kriging matrix once to solve for many right-hand sides

  • A positive definite matrix, like the covariance matrix of the simple kriging, is factorized with Cholesky.

  • Otherwise, like the variogram matrix of the ordinary kriging which is indefinite, it is factorized with LU.

  • Singular or ill-conditioned matrices, for instance with duplicate points and no nugget, are solved with a pseudo inverse.

Parameters:
  • a (numpy.ndarray) – Square matrix

  • spd (bool) – Is the matrix expected to be symmetric positive definite?

__init__(a, spd=False)[source]#

Methods

solve(b)

Solve a @ x = b