class_docstr: Check that some Jacobian approximations satisfy the secant condition
class_docstr_tok: ["Check","that","some","Jacobian","approximations","satisfy","the","secant","condition"]
code: def test_anderson(self):
      # Anderson mixing (with w0=0) satisfies secant conditions
      # for the last M iterates, see [Ey]_
      #
      # .. [Ey] V. Eyert, J. Comp. Phys., 124, 271 (1996).
      self._check_secant(nonlin.Anderson, M=3, w0=0, npoints=3)
  
imports: from numpy.testing import assert_
  import pytest
  from scipy.optimize import nonlin, root
  from numpy import diag, dot
  from numpy.linalg import inv
  import numpy
  from .test_minpack import pressure_network
label_desc: Use image node_id 6 for calling the TestSecant obj's underlying member method code with example usage: obj.test_anderson() without return types