
    uki                     J    d dl mZ d dlmZ dddededej                  fdZy)	    )Any)coreNmemory_spaceinit_valr   returnc                0    t        j                  | |      S )a  Create a mutable array reference with initial value ``init_val``.

  For more discussion, see the `Ref guide`_.

  Args:
    init_val: A :class:`jax.Array` representing the initial state
      of the buffer.
    memory_space: An optional memory space attribute for the Ref.

  Returns:
    A :class:`jax.ref.Ref` containing a reference to a mutable buffer.

  .. _Ref guide: https://docs.jax.dev/en/latest/array_refs.html
  r   )r   new_ref)r   r   s     G/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/jax/_src/ref.pyr
   r
      s     
h\	::    )typingr   jax._srcr   Refr
    r   r   <module>r      s0      37 ;c ;C ;488 ;r   