관리-도구
편집 파일: getlimits.cpython-37.pyc
B ��Fd�G � @ s� d Z ddlmZmZmZ ddgZddlZddlmZ ddl m Z dd l mZ dd l m Z mZ ddlmZmZ ddl mZ d d� Zdd� ZejejejejejejiZdZejeejde�d�d�ejeej de�d�d�ej!eej"de�d�d�ej#eej$de�d�d�iZ%G dd� de&�Z'ej(Z)e'e)dddd d!d"d#d"dee)d��ee)d��e)d$�e)d%�d&�Z*ej+Z,e'e,d'd(d)d*d+d,d#d"dee,d'��ee,d(��e,d-d#d* �ee,d)��d&�Z-ej.Z/d.Z0d/Z1e'e/d0d1d2d3d4d5d#d"dd6e0d7e0 e1 e/d8� e1d&�Z2ej!Z3ee3d9��Z4ee3d:��Z5e j6d;d<�� e3d�e4 e5 e3d8� Z7W dQ R X e'e3d=d9d:d>d?d@d#d"dee3d=��e4e7e5d&�Z8ee3dA��Z9ee3d:��Z:e j6d;d<�� e3d�e9 e: e3d8� Z;W dQ R X e'e3dBdAd:d>dCd@d#d"dee3dB��e9e;e:d&�Z<e=edD��r�e�>e3e�e3d��ne2j?Z@e'e3dEdFd2d3dGd5d#d"dee3dE��ee3dF��e@ee3d2��d&�ZAe2e-e*e<eAeAe8dH�ZBdIdJ� ZCdKdL� ZDG dMd� de&�ZEG dNd� de&�ZFdS )OzJMachine limits for Float32 and Float64 and (long double) if available... � )�division�absolute_import�print_function�finfo�iinfoN� )�MachAr)�numeric)�numerictypes)�array�inf)�log10�exp2)�umathc C s | j dkr| �� } d| _| S )zfix rank-0 --> rank-1r )r )�ndim�copy�shape)�a� r �G/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/getlimits.py�_fr0 s r c C s | j dkr| �� } d| _| S )zfix rank > 0 --> rank-0r r )�sizer r )r r r r �_fr1 s r z(numpy {} precision floating point numberz%24.16e�double)�itype�fmt�titlez%15.7e�singlez%szlong doublez%12.5e�halfc @ sT e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zed d� �Z edd � �Z dS )� MachArLikez$ Object to simulate MachAr instance c s� t � ��fdd�� � fdd�}��fdd�| _�d | _||�d�� | _| _||�d��| _||�d�� | _| _||�d �� | _ | _ �d |�d��| _| j� |� tt| j� �| _|� d�| j �| _d S ) Nc s t | g� �S )N)r )�v)�ftyper r �<lambda>E � z%MachArLike.__init__.<locals>.<lambda>c s t � | ��S )N)r )r )� float_convr r r"