class_docstr: Elementwise power of matrix expressions
  
  Parameters
  ==========
  
  base : scalar or matrix
  
  exp : scalar or matrix
  
  Notes
  =====
  
  There are four definitions for the hadamard power which can be used.
  Let's consider `A, B` as `(m, n)` matrices, and `a, b` as scalars.
  
  Matrix raised to a scalar exponent:
  
  .. math::
      A^{\circ b} = \begin{bmatrix}
      A_{0, 0}^b   & A_{0, 1}^b   & \cdots & A_{0, n-1}^b   \\
      A_{1, 0}^b   & A_{1, 1}^b   & \cdots & A_{1, n-1}^b   \\
      \vdots       & \vdots       & \ddots & \vdots         \\
      A_{m-1, 0}^b & A_{m-1, 1}^b & \cdots & A_{m-1, n-1}^b
      \end{bmatrix}
  
  Scalar raised to a matrix exponent:
  
  .. math::
      a^{\circ B} = \begin{bmatrix}
      a^{B_{0, 0}}   & a^{B_{0, 1}}   & \cdots & a^{B_{0, n-1}}   \\
      a^{B_{1, 0}}   & a^{B_{1, 1}}   & \cdots & a^{B_{1, n-1}}   \\
      \vdots         & \vdots         & \ddots & \vdots           \\
      a^{B_{m-1, 0}} & a^{B_{m-1, 1}} & \cdots & a^{B_{m-1, n-1}}
      \end{bmatrix}
  
  Matrix raised to a matrix exponent:
  
  .. math::
      A^{\circ B} = \begin{bmatrix}
      A_{0, 0}^{B_{0, 0}}     & A_{0, 1}^{B_{0, 1}}     &
      \cdots & A_{0, n-1}^{B_{0, n-1}}     \\
      A_{1, 0}^{B_{1, 0}}     & A_{1, 1}^{B_{1, 1}}     &
      \cdots & A_{1, n-1}^{B_{1, n-1}}     \\
      \vdots                  & \vdots                  &
      \ddots & \vdots                      \\
      A_{m-1, 0}^{B_{m-1, 0}} & A_{m-1, 1}^{B_{m-1, 1}} &
      \cdots & A_{m-1, n-1}^{B_{m-1, n-1}}
      \end{bmatrix}
  
  Scalar raised to a scalar exponent:
  
  .. math::
      a^{\circ b} = a^b
class_docstr_tok: ["Elementwise","power","of","matrix","expressions","Parameters","==========","base",":","scalar","or","matrix","exp",":","scalar","or","matrix","Notes","=====","There","are","four","definitions","for","the","hadamard","power","which","can","be","used",".","Let","'s","consider","`","A",",","B","`","as","`","(","m",",","n",")","`","matrices",",","and","`","a",",","b","`","as","scalars",".","Matrix","raised","to","a","scalar","exponent",":","..","math",":",":","A^","{","\\circ","b","}","=","\\begin","{","bmatrix","}","A_","{","0",",","0","}","^b","&","A_","{","0",",","1","}","^b","&","\\cdots","&","A_","{","0",",","n-1","}","^b","\\\\","A_","{","1",",","0","}","^b","&","A_","{","1",",","1","}","^b","&","\\cdots","&","A_","{","1",",","n-1","}","^b","\\\\","\\vdots","&","\\vdots","&","\\ddots","&","\\vdots","\\\\","A_","{","m-1",",","0","}","^b","&","A_","{","m-1",",","1","}","^b","&","\\cdots","&","A_","{","m-1",",","n-1","}","^b","\\end","{","bmatrix","}","Scalar","raised","to","a","matrix","exponent",":","..","math",":",":","a^","{","\\circ","B","}","=","\\begin","{","bmatrix","}","a^","{","B_","{","0",",","0","}","}","&","a^","{","B_","{","0",",","1","}","}","&","\\cdots","&","a^","{","B_","{","0",",","n-1","}","}","\\\\","a^","{","B_","{","1",",","0","}","}","&","a^","{","B_","{","1",",","1","}","}","&","\\cdots","&","a^","{","B_","{","1",",","n-1","}","}","\\\\","\\vdots","&","\\vdots","&","\\ddots","&","\\vdots","\\\\","a^","{","B_","{","m-1",",","0","}","}","&","a^","{","B_","{","m-1",",","1","}","}","&","\\cdots","&","a^","{","B_","{","m-1",",","n-1","}","}","\\end","{","bmatrix","}","Matrix","raised","to","a","matrix","exponent",":","..","math",":",":","A^","{","\\circ","B","}","=","\\begin","{","bmatrix","}","A_","{","0",",","0","}","^","{","B_","{","0",",","0","}","}","&","A_","{","0",",","1","}","^","{","B_","{","0",",","1","}","}","&","\\cdots","&","A_","{","0",",","n-1","}","^","{","B_","{","0",",","n-1","}","}","\\\\","A_","{","1",",","0","}","^","{","B_","{","1",",","0","}","}","&","A_","{","1",",","1","}","^","{","B_","{","1",",","1","}","}","&","\\cdots","&","A_","{","1",",","n-1","}","^","{","B_","{","1",",","n-1","}","}","\\\\","\\vdots","&","\\vdots","&","\\ddots","&","\\vdots","\\\\","A_","{","m-1",",","0","}","^","{","B_","{","m-1",",","0","}","}","&","A_","{","m-1",",","1","}","^","{","B_","{","m-1",",","1","}","}","&","\\cdots","&","A_","{","m-1",",","n-1","}","^","{","B_","{","m-1",",","n-1","}","}","\\end","{","bmatrix","}","Scalar","raised","to","a","scalar","exponent",":","..","math",":",":","a^","{","\\circ","b","}","=","a^b"]
code: def exp(self):
      return self._args[1]
  
imports: from collections import Counter
  from sympy.core import Mul, sympify
  from sympy.core.add import Add
  from sympy.core.expr import ExprBuilder
  from sympy.core.sorting import default_sort_key
  from sympy.functions.elementary.exponential import log
  from sympy.matrices.expressions.matexpr import MatrixExpr
  from sympy.matrices.expressions._shape import validate_matadd_integer
  from sympy.matrices.expressions.special import ZeroMatrix, OneMatrix
  from sympy.strategies import unpack, flatten, condition, exhaust, rm_id, sort
  from sympy.utilities.exceptions import sympy_deprecation_warning
label_desc: Use image node_id 3 for calling the HadamardPower obj's underlying member method code with example usage: obj.exp() and returns: self