Skip to content

conjugate_gradient

esta.general.conjugate_gradient

conjugate_grad(A, b, x=None)

Description

Solve a linear equation Ax = b using conjugate gradient method.

Parameters:

  • A
  • b
  • x

Returns:

  • 1d numpy.array x such that Ax = b