parameters: (x)
return_statement: return np.dot(x, x)
docstring: Squared Euclidean or Frobenius norm of x.
  
      Faster than norm(x) ** 2.
  
      Parameters
      ----------
      x : array_like
  
      Returns
      -------
      float
          The Euclidean norm when x is a vector, the Frobenius norm when x
          is a matrix (2-d array).
docstring_summary: Squared Euclidean or Frobenius norm of x.
docstring_tokens: Squared Euclidean or Frobenius norm of x .
function: def squared_norm(x):
      """Squared Euclidean or Frobenius norm of x.
  
      Faster than norm(x) ** 2.
  
      Parameters
      ----------
      x : array_like
  
      Returns
      -------
      float
          The Euclidean norm when x is a vector, the Frobenius norm when x
          is a matrix (2-d array).
      """
      x = np.ravel(x, order='K')
      if np.issubdtype(x.dtype, np.integer):
          warnings.warn('Array type is integer, np.dot may overflow. '
                        'Data should be float type to avoid this issue',
                        UserWarning)
      return np.dot(x, x)
function_tokens: def squared_norm ( x ) : x = np . ravel ( x , order = 'K' ) if np . issubdtype ( x . dtype , np . integer ) : warnings . warn ( 'Array type is integer, np.dot may overflow. ' 'Data should be float type to avoid this issue' , UserWarning ) return np . dot ( x , x )