+
    ‹°³j–J  ã                  óî	  a € 0 t $ R t^ RIHt ^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIt^ RIHt ^ RIHt ^ R	IHt RR
./t]! R
4      t]'       Edl   ]P,                  t]P0                  t^ RIHt / ]P:                  ]P<                  b]P>                  ]P@                  b]PB                  ]PD                  b]PF                  ]PH                  b]PJ                  ]PL                  b]PN                  ]PN                  b]PP                  ]PP                  b]PR                  ]PR                  b]PT                  ]PT                  b]PV                  ]PV                  b]PX                  ]PZ                  b]P\                  ]P\                  b]P^                  ]P`                  b]Pb                  ]Pb                  b]Pd                  ]Pf                  b]Ph                  ]Pj                  b]Pl                  ]Pl                  b/ ]Pn                  ]Pp                  b]Pr                  ]Pr                  b]Pt                  ]Pv                  b]Px                  ]Px                  b]Pz                  ]P|                  b]P~                  ]P€                  b]P‚                  ]P„                  b]P†                  ]Pˆ                  b]PŠ                  ]PŠ                  b]PŒ                  ]PŒ                  b]PŽ                  ]P�                  b]P’                  ]P”                  b]P–                  ]P˜                  b]Pš                  ]Pœ                  b]Pž                  ]P                   b]P¢                  ]P¤                  b]P¦                  ]P¨                  bC]Pª                  ]P¬                  ]P®                  ]P°                  ]P²                  ]P´                  ]P¶                  ]P¸                  ]Pº                  ]P¼                  ]P¾                  PÀ                  PÂ                  R ]PÄ                  ]PÇ                  ]P<                  4      ]PÈ                  ]PÇ                  ]P@                  4      ]PÊ                  ]PÌ                  ]PÎ                  ]PÐ                  ]PÒ                  ]PÔ                  ]PÖ                  ]PÙ                  R^^ .4      /Ctm ! R R]
4      tn/ toR]pR&   RR ltqRR ltr]! RR7      RRRRRRR/R ll4       tsR# )zÏ
.. deprecated:: 1.8

  ``sympy.printing.theanocode`` is deprecated. Theano has been renamed to
  Aesara. Use ``sympy.printing.aesaracode`` instead. See
  :ref:`theanocode-deprecated` for more information.

)ÚannotationsN)ÚAny)Úimport_module)ÚPrinter)Úis_sequence)Úpartial)Údoctest_depends_on)Úsympy_deprecation_warningÚtheano)Úlinalgc                 ó.   € \         P                  ^ ^4      # ©é    )ÚttÚcomplex© ó    ÚZ/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/printing/theanocode.pyÚ<lambda>r   J   s   € ´R·Z±ZÀÀ!´_r   c                  óÈ   a € ] tR t^UtRtRtV 3R ltRR ltRR ltR t	R t
R tR	 tR
 tR t];ttR tR tR tR tR tR tR tR tR tR tR tR tR tRR ltRtV ;t # )ÚTheanoPrinterae  Code printer which creates Theano symbolic expression graphs.

Parameters
==========

cache : dict
    Cache dictionary to use. If None (default) will use
    the global cache. To create a printer which does not depend on or alter
    global state pass an empty dictionary. Note: the dictionary is not
    copied on initialization of the printer and will be updated in-place,
    so using the same dict object when creating multiple printers or making
    multiple calls to :func:`.theano_code` or :func:`.theano_function` means
    the cache is shared between all these applications.

Attributes
==========

cache : dict
    A cache of Theano variables which have been created for SymPy
    symbol-like objects (e.g. :class:`sympy.core.symbol.Symbol` or
    :class:`sympy.matrices.expressions.MatrixSymbol`). This is used to
    ensure that all references to a given symbol in an expression (or
    multiple expressions) are printed as the same Theano variable, which is
    created only once. Symbols are differentiated only by name and type. The
    format of the cache's contents should be considered opaque to the user.
Ú_theanoc                	óV   <€ VP                  R / 4      V n        \        SV `  ! V/ VB  R# )ÚcacheN)Úpopr   ÚsuperÚ__init__)ÚselfÚargsÚkwargsÚ	__class__s   &*,€r   r   ÚTheanoPrinter.__init__r   s'   ø€ Ø—Z‘Z ¨Ó,ˆŒ
Ü‰Ò˜$Ð) &Ô)r   c                óT   € Vf   VP                   pV\        V4      VP                  W43# )zÄGet the cache key for a SymPy object.

Parameters
==========

s : sympy.core.basic.Basic
    SymPy object to get key for.

name : str
    Name of object, if it does not have a ``name`` attribute.
)ÚnameÚtyper   )r   Úsr#   ÚdtypeÚbroadcastables   &&&&&r   Ú_get_keyÚTheanoPrinter._get_keyv   s)   € ð Š<Ø—6‘6ˆDà”d˜1“g˜qŸv™v uÐ<Ð<r   c                óô   € Vf   VP                   pVf   RpVf   RpV P                  WW4R7      pWPP                  9   d   V P                  V,          # \        P	                  W#VR7      pW`P                  V&   V# )z_
Get the Theano variable for a SymPy symbol from the cache, or create it
if it does not exist.
ÚfloatX©r&   r'   ©r#   r&   r'   r   )r#   r(   r   r   Útensor)r   r%   r#   r&   r'   ÚkeyÚvalues   &&&&&  r   Ú_get_or_createÚTheanoPrinter._get_or_createˆ   ss   € ð Š<Ø—6‘6ˆDØŠ=ØˆEØÒ ØˆMà�m‰m˜A¨5ˆmÓNˆà—*‘*ÔØ—:‘:˜c•?Ð"ä—	‘	˜tÀ�	ÓNˆØ�
‰
�3‰Øˆr   c                	ó¬   € VP                  R / 4      P                  V4      pVP                  R/ 4      P                  V4      pV P                  WVR7      # )ÚdtypesÚbroadcastablesr,   ©Úgetr1   )r   r%   r   r&   Úbcs   &&,  r   Ú_print_SymbolÚTheanoPrinter._print_SymbolŸ   sO   € Ø—
‘
˜8 RÓ(×,Ñ,¨QÓ/ˆØ�Z‰ZÐ(¨"Ó-×1Ñ1°!Ó4ˆØ×"Ñ" 1ÀÐ"ÓDÐDr   c                	ó$  € \        \        V4      4      R ,           \        VP                  ^ ,          4      ,           pVP                  R/ 4      P                  V4      pVP                  R/ 4      P                  V4      pV P	                  WWER7      # )Ú_r4   r5   r-   )Ústrr$   r   r7   r1   )r   r%   r   r#   r&   r8   s   &&,   r   Ú_print_AppliedUndefÚ!TheanoPrinter._print_AppliedUndef¤   sr   € Ü”4˜“7‹|˜cÕ!¤C¨¯©¨q­	£NÕ2ˆØ—
‘
˜8 RÓ(×,Ñ,¨QÓ/ˆØ�Z‰ZÐ(¨"Ó-×1Ñ1°!Ó4ˆØ×"Ñ" 1°uÐ"ÓOÐOr   c                	óš   € \         \        V4      ,          pVP                   Uu. uF  q@P                  ! V3/ VB NK  	  ppV! V!  # u upi ©N)Úmappingr$   r   Ú_print)r   Úexprr   ÚopÚargÚchildrens   &&,   r   Ú_print_BasicÚTheanoPrinter._print_Basicª   sD   € Ü”T˜$“ZÕ ˆØ:>¿)º)ÓD¹)°3—K’K Ñ. vÔ.¹)ˆÐDÙ�8‰}Ðùò Es   ¥Ac                	ó4   € \        VP                  4       4      # rA   )ÚfloatÚevalf)r   Únr   s   &&,r   Ú_print_NumberÚTheanoPrinter._print_Number¯   s   € ä�Q—W‘W“YÓÐr   c                	ój   € VP                  R / 4      P                  V4      pV P                  WRR7      # )r4   r,   ©NNr6   )r   ÚXr   r&   s   &&, r   Ú_print_MatrixSymbolÚ!TheanoPrinter._print_MatrixSymbol³   s3   € Ø—
‘
˜8 RÓ(×,Ñ,¨QÓ/ˆØ×"Ñ" 1ÀÐ"ÓNÐNr   c                	ó  € \        \        R 4      '       g   \        R4      h\        P                  VP	                  4        UUu. uF%  pV Uu. uF  q@P
                  ! V3/ VB NK  	  upNK'  	  upp4      # u upi u uppi )Ú
stacklistsz>Matrix translation not yet supported in this version of Theano)Úhasattrr   ÚNotImplementedErrorrV   ÚtolistrC   )r   rR   r   ÚLrF   s   &&,  r   Ú_print_DenseMatrixÚ TheanoPrinter._print_DenseMatrix·   sx   € Ü”r˜<×(Ò(Ü%ØOóQð Qô �}‰}à—X‘X”Zô
á�ñ 45Ó5±1¨C�[Š[˜Ñ' Ô'±1Ô5Ùò
ó ð 	ùÚ5ùó
s   Á	A<
ÁA7Á(A<
Á7A<
c                	óÂ   € VP                    Uu. uF  q0P                  ! V3/ VB NK  	  ppV^ ,          pVR,           F  p\        P                  WV4      pK  	  V# u upi )r   ºé   NN)r   rC   r   Údot)r   rD   r   rF   rG   ÚresultÚchilds   &&,    r   Ú_print_MatMulÚTheanoPrinter._print_MatMulÃ   sX   € Ø:>¿)º)ÓD¹)°3—K’K Ñ. vÔ.¹)ˆÐDØ˜!•ˆØ˜b—\�\ˆEÜ—V‘V˜FÓ*ŠFñ "àˆùò	 Es   �Ac                	ó@  € VP                    Uu. uF  q0P                  ! V3/ VB NK  	  pp^p\        V^,          \        4      '       dF   V^,          ^ 8”  d8   \	        V^,          4       F  p\
        P                  WT^ ,          4      pK!  	  V# \        R4      hu upi )r_   z^Only non-negative integer
           powers of matrices can be handled by Theano at the moment)r   rC   Ú
isinstanceÚintÚranger   r`   rX   )r   rD   r   rF   rG   ra   Úis   &&,    r   Ú_print_MatPowÚTheanoPrinter._print_MatPowÊ   s�   € Ø:>¿)º)ÓD¹)°3—K’K Ñ. vÔ.¹)ˆÐDØˆÜ�h˜q•k¤3×'Ò'¨H°Q­K¸!¬OÜ˜8 A�;Ö'�ÜŸ™ °­Ó4’ñ (ð
 ˆô &ð 'Hó Ið Iùò Es   �Bc                	óà   € V P                   ! VP                  3/ VB pV P                   ! \        VP                  !  3/ VB pV P                   ! \        VP                  !  3/ VB pW4V3,          # rA   )rC   ÚparentÚsliceÚrowsliceÚcolslice)r   rD   r   rm   ro   rp   s   &&,   r   Ú_print_MatrixSliceÚ TheanoPrinter._print_MatrixSliceÕ   s_   € Ø—’˜TŸ[™[Ñ3¨FÑ3ˆØ—;’;œu d§m¡mÑ4Ñ?¸Ñ?ˆØ—;’;œu d§m¡mÑ4Ñ?¸Ñ?ˆØ Ð(Õ)Ð)r   c                	ó~  € VP                   P                  w  r4\        V4       UUu. uFA  p\        V4       Uu. uF(  pV P                  ! VP                   WV3,          3/ VB NK*  	  upNKC  	  ppp\        P
                  ! ^ .V Uu. uF  p\        P
                  ! ^.VO5!  NK  	  upO5!  # u upi u uppi u upi r   )ÚblocksÚshaperh   rC   r   Újoin)	r   rD   r   ÚnrowsÚncolsÚrÚcrt   Úrows	   &&,      r   Ú_print_BlockMatrixÚ TheanoPrinter._print_BlockMatrixÛ   s±   € Ø—{‘{×(Ñ(‰ˆô "' u¤ô/á!-˜Aô "' u¤ó/Ù!-˜Að —;’;˜tŸ{™{¨1¨4Õ0Ñ;°FÔ;Ù!-ô/á!-ð 	ñ /ô �wŠw�qÐ@¹Ó?¹°œBŸGšG AÐ,¨Ö,¹Ñ?Ó@Ð@ùò/ùó /ùò @s   §B4¹.B/Á'B4Â!B:
Â/B4c           
     	óæ   € \        VP                  VP                  VP                  3 Uu. uF8  p\	        V\
        P                  4      '       d   V P                  ! V3/ VB MTNK:  	  up!  # u upi rA   )rn   ÚstartÚstopÚsteprf   ÚsympyÚBasicrC   )r   rD   r   ri   s   &&, r   Ú_print_sliceÚTheanoPrinter._print_sliceã   sp   € Üà"&§*¡*¨d¯i©i¸¿¹Ñ!CóEá!C˜Aô & a¬¯©×5Ò5ð —{’{ 1Ñ/¨Ò/Ø;<ò=á!CñEñ Fð 	Fùò Es   «>A.c                	ó"   € \         P                  # rA   )ÚmathÚpi©r   rD   r   s   &&,r   Ú	_print_PiÚTheanoPrinter._print_Piè   s   € Ü�w‰wˆr   c                	ó,   € \         P                  ^4      # )r_   )ÚtsÚexpr‰   s   &&,r   Ú_print_Exp1ÚTheanoPrinter._print_Exp1ë   s   € Ü�v‰v�a‹yÐr   c                	ó   € ^ RI pVP                  ^ ,          P                  w  rEV P                  ! V3/ VB pV P                  ! V3/ VB p\        VP                  4      ^8X  d!   \        P                  WgVP                  4      # V P                  ! \        P                  ! VP                  R,          !  3/ VB p\        P                  WgV4      # )r   Nr^   )	Únumpyr   rC   Úlenr   ÚswitchÚnanr‚   Ú	Piecewise)	r   rD   r   ÚnpÚeÚcondÚp_condÚp_eÚp_remainings	   &&,      r   Ú_print_PiecewiseÚTheanoPrinter._print_Piecewiseî   s    € ÛØ—)‘)˜A•,×#Ñ#‰ˆð —’˜TÑ, VÑ,ˆØ�kŠk˜!Ñ&˜vÑ&ˆô ˆt�y‰y‹>˜QÔä—9‘9˜V¨"¯&©&Ó1Ð1ð —k’k¤%§/¢/°4·9±9¸Rµ=Ñ"AÑLÀVÑLˆÜ�y‰y˜ kÓ2Ð2r   c                	óš   € \         P                  V P                  ! VP                  3/ VB V P                  ! VP                  3/ VB 4      # rA   )r   Útrue_divrC   ÚpÚqr‰   s   &&,r   Ú_print_RationalÚTheanoPrinter._print_Rationalÿ   s<   € Ü�{‰{˜4Ÿ;š; t§v¡vÑ8°Ñ8ØŸ;š; t§v¡vÑ8°Ñ8ó:ð 	:r   c                	ó   € VP                   # rA   )r¡   r‰   s   &&,r   Ú_print_IntegerÚTheanoPrinter._print_Integer  s   € Ø�v‰vˆr   c                	ó€   € V P                   ! \        P                  ! VP                  ^ ,          ^,           4      3/ VB # r   )rC   r‚   Úgammar   r‰   s   &&,r   Ú_print_factorialÚTheanoPrinter._print_factorial  s,   € Ø�{Š{œ5Ÿ;š; t§y¡y°¥|°aÕ'7Ó8ÑC¸FÑCÐCr   c                	óÞ   € V P                   ! VP                  3/ VB pVP                   F?  pV P                   ! V3/ VB p\        P	                  W4\        P                  V4      4      pKA  	  V# rA   )rC   rD   Ú	variablesr   ÚRopÚ	ones_like)r   Úderivr   ÚrvÚvars   &&,  r   Ú_print_DerivativeÚTheanoPrinter._print_Derivative	  sZ   € Ø�[Š[˜Ÿ™Ñ. vÑ.ˆØ—?”?ˆCØ—+’+˜cÑ, VÑ,ˆCÜ—‘˜¤§¡¨cÓ!2Ó3ŠBñ #ð ˆ	r   c                	ó   € V# rA   r   )r   rD   s   &&r   ÚemptyPrinterÚTheanoPrinter.emptyPrinter  s   € Øˆr   c                ó@   € Vf   / pVf   / pV P                  WVR7      # )a"  Convert a SymPy expression to a Theano graph variable.

The ``dtypes`` and ``broadcastables`` arguments are used to specify the
data type, dimension, and broadcasting behavior of the Theano variables
corresponding to the free symbols in ``expr``. Each is a mapping from
SymPy symbols to the value of the corresponding argument to
``theano.tensor.Tensor``.

See the corresponding `documentation page`__ for more information on
broadcasting in Theano.

.. __: http://deeplearning.net/software/theano/tutorial/broadcasting.html

Parameters
==========

expr : sympy.core.expr.Expr
    SymPy expression to print.

dtypes : dict
    Mapping from SymPy symbols to Theano datatypes to use when creating
    new Theano variables for those symbols. Corresponds to the ``dtype``
    argument to ``theano.tensor.Tensor``. Defaults to ``'floatX'``
    for symbols not included in the mapping.

broadcastables : dict
    Mapping from SymPy symbols to the value of the ``broadcastable``
    argument to ``theano.tensor.Tensor`` to use when creating Theano
    variables for those symbols. Defaults to the empty tuple for symbols
    not included in the mapping (resulting in a scalar).

Returns
=======

theano.gof.graph.Variable
    A variable corresponding to the expression's value in a Theano
    symbolic expression graph.

)r4   r5   )rC   )r   rD   r4   r5   s   &&&&r   ÚdoprintÚTheanoPrinter.doprint  s-   € ðP Š>ØˆFØÒ!ØˆNà�{‰{˜4¸~ˆ{ÓNÐNr   )r   ©NNNrQ   )!Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úprintmethodr   r(   r1   r9   r>   rH   rN   rS   r[   Ú_print_ImmutableMatrixÚ_print_ImmutableDenseMatrixrc   rj   rq   r|   r„   rŠ   r�   r�   r£   r¦   rª   r³   r¶   r¹   Ú__static_attributes__Ú__classcell__)r    s   @r   r   r   U   sž   ø† ñð4 €Kõ*ô=ô$ò.Eò
Pòò
 òOòð <NÐMÐÐ8òò	ò*òAòFò
òò3ò":òòDòò÷-Oò -Or   r   zdict[Any, Any]Úglobal_cachec                óœ   € \        RRRR7       \        '       g   \        R4      hVf   \        p\	        V/ R7      P
                  ! V 3/ VB # )a  
Convert a SymPy expression into a Theano graph variable.

.. deprecated:: 1.8

  ``sympy.printing.theanocode`` is deprecated. Theano has been renamed to
  Aesara. Use ``sympy.printing.aesaracode`` instead. See
  :ref:`theanocode-deprecated` for more information.

Parameters
==========

expr : sympy.core.expr.Expr
    SymPy expression object to convert.

cache : dict
    Cached Theano variables (see :class:`TheanoPrinter.cache
    <TheanoPrinter>`). Defaults to the module-level global cache.

dtypes : dict
    Passed to :meth:`.TheanoPrinter.doprint`.

broadcastables : dict
    Passed to :meth:`.TheanoPrinter.doprint`.

Returns
=======

theano.gof.graph.Variable
    A variable corresponding to the expression's value in a Theano symbolic
    expression graph.

zƒ
        sympy.printing.theanocode is deprecated. Theano has been renamed to
        Aesara. Use sympy.printing.aesaracode instead.ú1.8útheanocode-deprecated©Údeprecated_since_versionÚactive_deprecations_targetz"theano is required for theano_code)r   Úsettings)r	   r
   ÚImportErrorrÆ   r   r¹   )rD   r   r   s   &&,r   Útheano_coderÏ   F  sT   € ôD ð	:ð "'Ø6õ8÷ ‹6ÜÐ>Ó?Ð?à‚}Üˆä˜u¨rÔ2×:Ò:¸4ÑJÀ6ÑJÐJr   c           	     ó  € Ve   \         P                  V RV,          4      # VeZ   \        VP                  4       4      pVP	                  4        UUu/ uF#  w  rVVRV,          RWF,
          ,          ,           bK%  	  upp# Ve   V# / # u uppi )aÞ  
Get value of ``broadcastables`` argument to :func:`.theano_code` from
keyword arguments to :func:`.theano_function`.

Included for backwards compatibility.

Parameters
==========

inputs
    Sequence of input symbols.

dim : int
    Common number of dimensions for all inputs. Overrides other arguments
    if given.

dims : dict
    Mapping from input symbols to number of dimensions. Overrides
    ``broadcastables`` argument if given.

broadcastables : dict
    Explicit value of ``broadcastables`` argument to
    :meth:`.TheanoPrinter.doprint`. If not None function will return this value unchanged.

Returns
=======
dict
    Dictionary mapping elements of ``inputs`` to their "broadcastable"
    values (tuple of ``bool``\ s).
©F)T)ÚdictÚfromkeysÚmaxÚvaluesÚitems)ÚinputsÚdimÚdimsr5   Úmaxdimr%   Úds   &&&&   r   Údim_handlingrÜ   x  s‹   € ð> ‚Ü�}‰}˜V X°¥^Ó4Ð4àÒÜ�T—[‘[“]Ó#ˆð Ÿ
™
œô
á$‘�ð ˆx˜!�|˜g¨­Õ4Õ4Ò4Ù$ò
ð 	
ð
 Ò!ØÐà€Iùó
s   Á)B)ÚmodulesrØ   rÙ   r5   c               ó2  aa€ \        RRRR7       \        '       g   \        R4      hVP                  R/ 4      pVP                  R/ 4      p\	        WWER7      p\        \        WxVR	7      p	\        \        W�4      4      p
\        \        W‘4      4      pV Uu. uF:  p\        V\        P                  4      '       d   TM\        P                  V4      NK<  	  pp\        V4      ^8X  d
   V^ ,          p\        P                  ! W«3/ VB oSP                   Uu. uF%  p\        VP                   P"                  4      ^ 8H  NK'  	  upoV'       d   \%        S4      '       g
   SSn        S# VV3R
 lpSVn        SP*                  Vn        SVn        V# u upi u upi )a>  
Create a Theano function from SymPy expressions.

.. deprecated:: 1.8

  ``sympy.printing.theanocode`` is deprecated. Theano has been renamed to
  Aesara. Use ``sympy.printing.aesaracode`` instead. See
  :ref:`theanocode-deprecated` for more information.

The inputs and outputs are converted to Theano variables using
:func:`.theano_code` and then passed to ``theano.function``.

Parameters
==========

inputs
    Sequence of symbols which constitute the inputs of the function.

outputs
    Sequence of expressions which constitute the outputs(s) of the
    function. The free symbols of each expression must be a subset of
    ``inputs``.

scalar : bool
    Convert 0-dimensional arrays in output to scalars. This will return a
    Python wrapper function around the Theano function object.

cache : dict
    Cached Theano variables (see :class:`TheanoPrinter.cache
    <TheanoPrinter>`). Defaults to the module-level global cache.

dtypes : dict
    Passed to :meth:`.TheanoPrinter.doprint`.

broadcastables : dict
    Passed to :meth:`.TheanoPrinter.doprint`.

dims : dict
    Alternative to ``broadcastables`` argument. Mapping from elements of
    ``inputs`` to integers indicating the dimension of their associated
    arrays/tensors. Overrides ``broadcastables`` argument if given.

dim : int
    Another alternative to the ``broadcastables`` argument. Common number of
    dimensions to use for all arrays/tensors.
    ``theano_function([x, y], [...], dim=2)`` is equivalent to using
    ``broadcastables={x: (False, False), y: (False, False)}``.

Returns
=======
callable
    A callable object which takes values of ``inputs`` as positional
    arguments and returns an output array for each of the expressions
    in ``outputs``. If ``outputs`` is a single expression the function will
    return a Numpy array, if it is a list of multiple expressions the
    function will return a list of arrays. See description of the ``squeeze``
    argument above for the behavior when a single output is passed in a list.
    The returned object will either be an instance of
    ``theano.compile.function_module.Function`` or a Python wrapper
    function around one. In both cases, the returned value will have a
    ``theano_function`` attribute which points to the return value of
    ``theano.function``.

Examples
========

>>> from sympy.abc import x, y, z
>>> from sympy.printing.theanocode import theano_function

A simple function with one input and one output:

>>> f1 = theano_function([x], [x**2 - 1], scalar=True)
>>> f1(3)
8.0

A function with multiple inputs and one output:

>>> f2 = theano_function([x, y, z], [(x**z + y**z)**(1/z)], scalar=True)
>>> f2(3, 4, 2)
5.0

A function with multiple inputs and multiple outputs:

>>> f3 = theano_function([x, y], [x**2 + y**2, x**2 - y**2], scalar=True)
>>> f3(2, 3)
[13.0, -5.0]

See also
========

dim_handling

zz
        sympy.printing.theanocode is deprecated. Theano has been renamed to Aesara. Use sympy.printing.aesaracode insteadrÈ   rÉ   rÊ   z&theano is required for theano_functionr   r4   )rØ   rÙ   r5   )r   r4   r5   c                 ó¾   <€ S! V !  p\        V4      '       d8   \        V4       UUu. uF  w  r#SV,          '       d
   VR,          MTNK!  	  upp# VR,          # u uppi )Nr   )r   Ú	enumerate)r   Úoutri   ÚoÚfuncÚis_0ds   *   €€r   ÚwrapperÚ theano_function.<locals>.wrapper/  sT   ø€ Ù�D‰kˆô �s×ÒÜ9BÀ3¼ÔH¹±°˜U 1ŸXœX�A�b–E¨1Ò,¹ÒHÐHà�r•7ˆNùó Is   §%A)r	   r
   rÎ   r   rÜ   r   rÏ   ÚlistÚmaprf   ÚVariabler   Úas_tensor_variabler“   ÚfunctionÚoutputsÚvariabler'   ÚanyÚtheano_functionÚ__wrapped__rÀ   )r×   rì   ÚscalarrØ   rÙ   r5   r   r   r4   ÚcodeÚtinputsÚtoutputsÚoutputrâ   rå   rã   rä   s   &&&$$$,        @@r   rï   rï   §  sn  ù€ ô@ ð	}à!&Ø6õ	8÷ ‹6ÜÐBÓCÐCð �J‰J�w Ó#€EØ�Z‰Z˜ "Ó%€Fä!Ø˜dô€Nô
 ”; eØ"0ô2€Dä”3�tÓ$Ó%€GÜ”C˜Ó&Ó'€Hñ pxÓxÑowÐekœ* V¬V¯_©_×=Ò=‘Ä2×CXÑCXÐY_ÓC`Ò`Ñow€HÐxä
ˆ8ƒ}˜ÔØ˜A•;ˆô �?Š?˜7Ñ7°Ñ7€Dà9=¿ºÓF¹°AŒS�—‘×)Ñ)Ó*¨aÔ/¹ÑF€E÷ œ˜UŸšØ#ˆÔØˆöð €GÔØ—l‘l€G„OØ"€GÔØ€Nùò9 yùò Gs   ÂA FÄ+F)rï   )FFrA   r»   )r
   rÑ   )tÚ__conditional_annotations__rÀ   Ú
__future__r   r‡   Útypingr   Úsympy.externalr   Úsympy.printing.printerr   Úsympy.utilities.iterablesr   r‚   Ú	functoolsr   Úsympy.utilities.decoratorr   Úsympy.utilities.exceptionsr	   Ú__doctest_requires__r
   rñ   r�   r.   r   Útheano.sandboxr   ÚtlinalgÚAddÚaddÚMulÚmulÚAbsÚabs_ÚsignÚsgnÚceilingÚceilÚfloorÚlogrŽ   ÚsqrtÚcosÚacosÚarccosÚsinÚasinÚarcsinÚtanÚatanÚarctanÚatan2Úarctan2ÚcoshÚacoshÚarccoshÚsinhÚasinhÚarcsinhÚtanhÚatanhÚarctanhÚreÚrealÚimÚimagrF   ÚangleÚerfr©   ÚloggammaÚgammalnÚPowÚpowÚEqÚeqÚStrictGreaterThanÚgtÚStrictLessThanÚltÚLessThanÚleÚGreaterThanÚgeÚAndÚand_ÚOrÚor_ÚMaxÚmaximumÚMinÚminimumÚ	conjugateÚconjÚcoreÚnumbersÚImaginaryUnitÚMatAddÚElemwiseÚHadamardProductÚTraceÚtraceÚDeterminantÚdetÚInverseÚmatrix_inverseÚ	TransposeÚ
DimShufflerB   r   rÆ   Ú__annotations__rÏ   rÜ   rï   )rö   s   @r   Ú<module>rP     sK  øðôõ #Û Ý å (Ý *Ý 1Û Ý å 8Ý @ð -¨x¨jÐ9Ð ñ 
�xÓ	 €÷ 
€6Ø	�‰€BØ	�‰€BÝ0ð0Ø�I‰I�r—v‘vð0à�I‰I�r—v‘vð0ð �I‰I�r—w‘wð0ð �J‰J˜Ÿ™ð	0ð
 �M‰M˜2Ÿ7™7ð0ð �K‰K˜Ÿ™ð0ð �I‰I�r—v‘vð0ð �I‰I�r—v‘vð0ð �J‰J˜Ÿ™ð0ð �I‰I�r—v‘vð0ð �J‰J˜Ÿ	™	ð0ð �I‰I�r—v‘vð0ð �J‰J˜Ÿ	™	ð0ð �I‰I�r—v‘vð0ð �J‰J˜Ÿ	™	ð0ð  �K‰K˜Ÿ™ð!0ð" �J‰J˜Ÿ™ñ#0ð$ �K‰K˜Ÿ™ð%0ð& �J‰J˜Ÿ™ð'0ð( �K‰K˜Ÿ™ð)0ð* �J‰J˜Ÿ™ð+0ð, �K‰K˜Ÿ™ð-0ð. �H‰H�b—g‘gð/0ð0 �H‰H�b—g‘gð10ð2 �I‰I�r—x‘xð30ð4 �I‰I�r—v‘vð50ð6 �K‰K˜Ÿ™ð70ð8 �N‰N˜BŸJ™Jð90ð: �I‰I�r—v‘vð;0ð< �H‰H�b—e‘eð=0ð> ×#Ñ# R§U¡Uð?0ð@ × Ñ  "§%¡%ðA0ðB �N‰N˜BŸE™EðC0ðD ×Ñ˜rŸu™uñE0ðF �I‰I�r—w‘wØ�H‰H�b—f‘fØ�I‰I�r—z‘zØ�I‰I�r—z‘zØ�O‰O˜RŸW™WØ�J‰J×Ñ×,Ñ,Ñ.Dà�L‰L˜"Ÿ+™+ b§f¡fÓ-Ø×!Ñ! 2§;¡;¨r¯v©vÓ#6Ø�K‰K˜Ÿ™Ø×Ñ §¡Ø�M‰M˜7×1Ñ1Ø�O‰O˜RŸ]™]¨>¸A¸q¸6ÓBñ_0€GôfkO�Gô kOð\  "€ˆnÓ !ô/Kôd,ñ^ ˜KÔ(ñSØðSØðSØ,0ôSó )òSr   