class_docstr: Hessian update strategy with full dimensional internal representation.
      
docstr: Return the current internal matrix.
  
  Returns
  -------
  M : ndarray, shape (n, n)
      Dense matrix containing either the Hessian or its inverse
      (depending on how `approx_type` was defined).
docstr_tok: ["Return","the","current","internal","matrix",".","Returns","--","--","--","-","M",":","ndarray",",","shape","(","n",",","n",")","Dense","matrix","containing","either","the","Hessian","or","its","inverse","(","depending","on","how","`","approx_type","`","was","defined",")","."]
code: def get_matrix(self):
      """Return the current internal matrix.
  
      Returns
      -------
      M : ndarray, shape (n, n)
          Dense matrix containing either the Hessian or its inverse
          (depending on how `approx_type` was defined).
      """
      if self.approx_type == "hess":
          M = np.copy(self.B)
      else:
          M = np.copy(self.H)
      li = np.tril_indices_from(M, k=-1)
      M[li] = M.T[li]
      return M
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.linalg import norm
  from scipy.linalg import get_blas_funcs
  from warnings import warn
label_desc: Use image node_id 7 for calling the FullHessianUpdateStrategy obj's underlying member method code with example usage: obj.get_matrix() and returns: M