
    _-Ph                     f   d Z ddlZddlmZ ddlmZ ej                            e          d         Zej        	                    ed          Z
 eej        	                    e
d                    Z ed eD                       Zd Zexj         d		                    d
gez             z  c_         dS )zExamples stored in files.    N)glob)loadmatexample_dataz*.matc              #   p   K   | ]1}t           j                            |          d          dd         V  2dS )   N)ospathsplit).0names     U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pyamg/gallery/example.py	<genexpr>r      s>      MMtrw}}T**1-crc2MMMMMM    c                     | t           vrt          d|            t          t          j                            t          | dz             d          S )a7  Load an example problem by name.

    Parameters
    ----------
    name : string (e.g. 'airfoil')
        Name of the example to load

    Notes
    -----
    Each example is stored in a dictionary with the following keys:
        - 'A'        : sparse matrix
        - 'B'        : near-nullspace candidates
        - 'vertices' : dense array of nodal coordinates
        - 'elements' : dense array of element indices

    Current example names are:%s

    Examples
    --------
    >>> from pyamg.gallery import load_example
    >>> ex = load_example('knot')

    zNo example with name z.matT)struct_as_record)example_names
ValueErrorr   r	   r
   joinexample_dir)r   s    r   load_exampler      sM    0 =  77788827<<TF];;dSSSSr   z	
         )__doc__r	   r   scipy.ior   r
   r   __file__base_dirr   r   example_filessortedr   r    r   r   <module>r       s      				            7==""1%gll8^44RW\\+w7788MM}MMMMMT T T>   --rd].BCC C    r   