parameters: (self, dim, df, scale)
return_statement: return var
docstring: Parameters
          ----------
          dim : int
              Dimension of the scale matrix
          %(_doc_default_callparams)s
  
          Notes
          -----
          As this function does no argument checking, it should not be
          called directly; use 'var' instead.
docstring_summary: Parameters
          ----------
          dim : int
              Dimension of the scale matrix
          %(_doc_default_callparams)s
docstring_tokens: Parameters ---------- dim : int Dimension of the scale matrix % ( _doc_default_callparams ) s
function: def _var(self, dim, df, scale):
          """
          Parameters
          ----------
          dim : int
              Dimension of the scale matrix
          %(_doc_default_callparams)s
  
          Notes
          -----
          As this function does no argument checking, it should not be
          called directly; use 'var' instead.
  
          """
          var = scale**2
          diag = scale.diagonal()  # 1 x dim array
          var += np.outer(diag, diag)
          var *= df
          return var
function_tokens: def _var ( self , dim , df , scale ) : var = scale ** 2 diag = scale . diagonal ( ) # 1 x dim array var += np . outer ( diag , diag ) var *= df return var