§
    ¡éUg	  ã                   ó    —  G d „ d¦  «        Z dS )c                   ó  — e Zd ZdZed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Z	ed„ ¦   «         Z
ed„ ¦   «         Zd	„ Zd
„ Zd„ Zd„ Zd„ Z eeed¬¦  «        Zd„ Zd„ Zd„ Zdd„Zd„ Zd„ Zd„ ZdS )Úspmatrixz‘This class provides a base class for all sparse matrix classes.

    It cannot be instantiated.  Most of the work is provided by subclasses.
    c                 ó   — ddl m} |S )Né   )Ú
bsr_matrix)Ú_bsrr   )Úselfr   s     úS/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/scipy/sparse/_matrix.pyÚ_bsr_containerzspmatrix._bsr_container   ó   € à$Ð$Ð$Ð$Ð$Ð$ØÐó    c                 ó   — ddl m} |S )Nr   )Ú
coo_matrix)Ú_coor   )r   r   s     r	   Ú_coo_containerzspmatrix._coo_container   r   r   c                 ó   — ddl m} |S )Nr   )Ú
csc_matrix)Ú_cscr   )r   r   s     r	   Ú_csc_containerzspmatrix._csc_container   r   r   c                 ó   — ddl m} |S )Nr   )Ú
csr_matrix)Ú_csrr   )r   r   s     r	   Ú_csr_containerzspmatrix._csr_container   r   r   c                 ó   — ddl m} |S )Nr   )Ú
dia_matrix)Ú_diar   )r   r   s     r	   Ú_dia_containerzspmatrix._dia_container   r   r   c                 ó   — ddl m} |S )Nr   )Ú
dok_matrix)Ú_dokr   )r   r   s     r	   Ú_dok_containerzspmatrix._dok_container    r   r   c                 ó   — ddl m} |S )Nr   )Ú
lil_matrix)Ú_lilr"   )r   r"   s     r	   Ú_lil_containerzspmatrix._lil_container%   r   r   c                 ó,   — |                       |¦  «        S ©N)Ú_matmul_dispatch©r   Úothers     r	   Ú__mul__zspmatrix.__mul__+   s   € Ø×$Ò$ UÑ+Ô+Ð+r   c                 ó,   — |                       |¦  «        S r&   )Ú_rmatmul_dispatchr(   s     r	   Ú__rmul__zspmatrix.__rmul__.   s   € Ø×%Ò% eÑ,Ô,Ð,r   c                 ó&   — ddl m}  || |¦  «        S )Nr   )Úmatrix_power)Úlinalgr/   )r   Úpowerr/   s      r	   Ú__pow__zspmatrix.__pow__2   s&   € Ø(Ð(Ð(Ð(Ð(Ð(àˆ|˜D %Ñ(Ô(Ð(r   c                 ó|   — |                       |d¬¦  «                             | j        ¦  «        }|j        | _        dS )z$Set the shape of the matrix in-placeF)ÚcopyN)ÚreshapeÚasformatÚformatÚ__dict__)r   ÚshapeÚnew_selfs      r	   Ú	set_shapezspmatrix.set_shape9   s7   € ð —<’< ¨E�<Ñ2Ô2×;Ò;¸D¼KÑHÔHˆØ Ô)ˆŒˆˆr   c                 ó   — | j         S )zGet the shape of the matrix)Ú_shape©r   s    r	   Ú	get_shapezspmatrix.get_shape@   ó
   € àŒ{Ðr   zShape of the matrix)ÚfgetÚfsetÚdocc                 ó*   — |                       ¦   «         S )z7Upcast matrix to a floating point format (if necessary))Ú	_asfptyper>   s    r	   Úasfptypezspmatrix.asfptypeG   s   € à�~Š~ÑÔÐr   c                 ó*   — |                       ¦   «         S )z3Maximum number of elements to display when printed.)Ú_getmaxprintr>   s    r	   Úgetmaxprintzspmatrix.getmaxprintK   s   € à× Ò Ñ"Ô"Ð"r   c                 ó   — | j         S )zMatrix storage format)r7   r>   s    r	   Ú	getformatzspmatrix.getformatO   r@   r   Nc                 ó.   — |                       |¬¦  «        S )zóNumber of stored values, including explicit zeros.

        Parameters
        ----------
        axis : None, 0, or 1
            Select between the number of values across the whole array, in
            each column, or in each row.
        )Úaxis)Ú_getnnz)r   rM   s     r	   Úgetnnzzspmatrix.getnnzS   s   € ð �|Š| ˆ|Ñ&Ô&Ð&r   c                 óN   — |                       ¦   «                              ¦   «         S )z¤Return the Hermitian transpose of this matrix.

        See Also
        --------
        numpy.matrix.getH : NumPy's implementation of `getH` for matrices
        )Ú	conjugateÚ	transposer>   s    r	   ÚgetHzspmatrix.getH^   s    € ð �~Š~ÑÔ×)Ò)Ñ+Ô+Ð+r   c                 ó,   — |                       |¦  «        S )zgReturns a copy of column j of the matrix, as an (m x 1) sparse
        matrix (column vector).
        )Ú_getcol)r   Újs     r	   Úgetcolzspmatrix.getcolg   ó   € ð �|Š|˜A‰ŒÐr   c                 ó,   — |                       |¦  «        S )z`Returns a copy of row i of the matrix, as a (1 x n) sparse
        matrix (row vector).
        )Ú_getrow)r   Úis     r	   Úgetrowzspmatrix.getrowm   rX   r   r&   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr
   r   r   r   r   r    r$   r*   r-   r2   r;   r?   r9   rF   rI   rK   rO   rS   rW   r\   © r   r	   r   r      s³  € € € € € ðð ð
 ðð ñ „Xðð ðð ñ „Xðð ðð ñ „Xðð ðð ñ „Xðð ðð ñ „Xðð ðð ñ „Xðð ðð ñ „Xðð
,ð ,ð ,ð-ð -ð -ð)ð )ð )ð*ð *ð *ðð ð ð ˆH˜)¨)Ø.ð0ñ 0ô 0€Eð ð  ð  ð#ð #ð #ðð ð ð	'ð 	'ð 	'ð 	'ð,ð ,ð ,ðð ð ðð ð ð ð r   r   N)r   rb   r   r	   ú<module>rc      sA   ððpð pð pð pð pñ pô pð pð pð pr   