ó
    Eñiž  ã                   ó   •  " S  S5      r g)c                   ó  ^ • \ rS rSrSrSr\S 5       r\S 5       r\S 5       r	\S 5       r
\S 5       r\S	 5       r\S
 5       rS rS rS rS rS r\" \\SS9rS rS rS rSS jrS rS rS rSU 4S jjr\S 5       rSrU =r$ )Úspmatrixé   z‰This class provides a base class for all sparse matrix classes.

It cannot be instantiated.  Most of the work is provided by subclasses.
)é   c                 ó   • SSK Jn  U$ )Nr   )Ú
bsr_matrix)Ú_bsrr   )Úselfr   s     ÚQ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/scipy/sparse/_matrix.pyÚ_bsr_containerÚspmatrix._bsr_container   ó   € å$ØÐó    c                 ó   • SSK Jn  U$ )Nr   )Ú
coo_matrix)Ú_coor   )r	   r   s     r
   Ú_coo_containerÚspmatrix._coo_container   r   r   c                 ó   • SSK Jn  U$ )Nr   )Ú
csc_matrix)Ú_cscr   )r	   r   s     r
   Ú_csc_containerÚspmatrix._csc_container   r   r   c                 ó   • SSK Jn  U$ )Nr   )Ú
csr_matrix)Ú_csrr   )r	   r   s     r
   Ú_csr_containerÚspmatrix._csr_container   r   r   c                 ó   • SSK Jn  U$ )Nr   )Ú
dia_matrix)Ú_diar   )r	   r   s     r
   Ú_dia_containerÚspmatrix._dia_container   r   r   c                 ó   • SSK Jn  U$ )Nr   )Ú
dok_matrix)Ú_dokr$   )r	   r$   s     r
   Ú_dok_containerÚspmatrix._dok_container!   r   r   c                 ó   • SSK Jn  U$ )Nr   )Ú
lil_matrix)Ú_lilr)   )r	   r)   s     r
   Ú_lil_containerÚspmatrix._lil_container&   r   r   c                 ó$   • U R                  U5      $ ©N)Ú_matmul_dispatch©r	   Úothers     r
   Ú__mul__Úspmatrix.__mul__,   s   € Ø×$Ñ$ UÓ+Ð+r   c                 ó$   • U R                  U5      $ r.   )Ú_rmatmul_dispatchr0   s     r
   Ú__rmul__Úspmatrix.__rmul__/   s   € Ø×%Ñ% eÓ,Ð,r   c                 ó   • SSK Jn  U" X5      $ )Nr   )Úmatrix_power)Úlinalgr9   )r	   Úpowerr9   s      r
   Ú__pow__Úspmatrix.__pow__3   s   € Ý(á˜DÓ(Ð(r   c                 óx   • U R                  USS9R                  U R                  5      nUR                  U l        g)z$Set the shape of the matrix in-placeF)ÚcopyN)ÚreshapeÚasformatÚformatÚ__dict__)r	   ÚshapeÚnew_selfs      r
   Ú	set_shapeÚspmatrix.set_shape:   s2   € ð —<‘< ¨E�<Ð2×;Ñ;¸D¿K¹KÓHˆØ ×)Ñ)ˆ�r   c                 ó   • U R                   $ )zGet the shape of the matrix)Ú_shape©r	   s    r
   Ú	get_shapeÚspmatrix.get_shapeA   ó   € à�{‰{Ðr   zShape of the matrix)ÚfgetÚfsetÚdocc                 ó"   • U R                  5       $ )z7Upcast matrix to a floating point format (if necessary))Ú	_asfptyperJ   s    r
   ÚasfptypeÚspmatrix.asfptypeH   s   € à�~‰~ÓÐr   c                 ó"   • U R                  5       $ )z3Maximum number of elements to display when printed.)Ú_getmaxprintrJ   s    r
   ÚgetmaxprintÚspmatrix.getmaxprintL   s   € à× Ñ Ó"Ð"r   c                 ó   • U R                   $ )zMatrix storage format)rB   rJ   s    r
   Ú	getformatÚspmatrix.getformatP   rM   r   c                 ó    • U R                  US9$ )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	   r]   s     r
   ÚgetnnzÚspmatrix.getnnzT   s   € ð �|‰| ˆ|Ð&Ð&r   c                 ó>   • U R                  5       R                  5       $ )z„Return the Hermitian transpose of this matrix.

See Also
--------
numpy.matrix.getH : NumPy's implementation of `getH` for matrices
)Ú	conjugateÚ	transposerJ   s    r
   ÚgetHÚspmatrix.getH_   s   € ð �~‰~Ó×)Ñ)Ó+Ð+r   c                 ó$   • U R                  U5      $ )zWReturns a copy of column j of the matrix, as an (m x 1) sparse
matrix (column vector).
)Ú_getcol)r	   Újs     r
   ÚgetcolÚspmatrix.getcolh   ó   € ð �|‰|˜A‹Ðr   c                 ó$   • U R                  U5      $ )zPReturns a copy of row i of the matrix, as a (1 x n) sparse
matrix (row vector).
)Ú_getrow)r	   Úis     r
   ÚgetrowÚspmatrix.getrown   rk   r   c                 ó"   >• [         TU ]  X5      $ )aý  
Return a dense representation of this sparse matrix.

Parameters
----------
order : {'C', 'F'}, optional
    Whether to store multi-dimensional data in C (row-major)
    or Fortran (column-major) order in memory. The default
    is 'None', which provides no ordering guarantees.
    Cannot be specified in conjunction with the `out`
    argument.

out : ndarray, 2-D, optional
    If specified, uses this array (or `numpy.matrix`) as the
    output buffer instead of allocating a new array to
    return. The provided array must have the same shape and
    dtype as the sparse matrix on which you are calling the
    method.

Returns
-------
arr : numpy.matrix, 2-D
    A NumPy matrix object with the same shape and containing
    the same data represented by the sparse matrix, with the
    requested memory order. If `out` was passed and was an
    array (rather than a `numpy.matrix`), it will be filled
    with the appropriate values and returned wrapped in a
    `numpy.matrix` object that shares the same memory.
)ÚsuperÚtodense)r	   ÚorderÚoutÚ	__class__s      €r
   rs   Úspmatrix.todenset   s   ø€ ô< ‰w‰˜uÓ*Ð*r   c                ó   • SSK Jn  U" X5      $ )aU  
Return a parametrized wrapper around the `~scipy.sparse.spmatrix` type.

.. versionadded:: 1.16.0

Returns
-------
alias : types.GenericAlias
    A parametrized `~scipy.sparse.spmatrix` type.

Examples
--------
>>> import numpy as np
>>> from scipy.sparse import coo_matrix

>>> coo_matrix[np.int8]
scipy.sparse._coo.coo_matrix[numpy.int8]
é    )ÚGenericAlias)Útypesrz   )ÚclsÚargrz   s      r
   Ú__class_getitem__Úspmatrix.__class_getitem__”   s   € õ( 	'Ù˜CÓ%Ð%r   )rC   r.   )NN) Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	_allow_ndÚpropertyr   r   r   r   r!   r&   r+   r2   r6   r<   rF   rK   rD   rS   rW   rZ   r_   rd   ri   ro   rs   Úclassmethodr~   Ú__static_attributes__Ú__classcell__)rv   s   @r
   r   r      s  ø† ñð €Iàñó ðð ñó ðð ñó ðð ñó ðð ñó ðð ñó ðð ñó ðò
,ò-ò)ò*òñ ˜)¨)Ø.ñ0€Eò ò#òô	'ò,òò÷+ð@ ñ&ó ö&r   r   N)r   © r   r
   Ú<module>r‹      s   ð÷h&ò h&r   