Your IP : 216.73.216.213
(��^͊ � @ s� d Z d d l m Z m Z m Z d d l m Z d d l m Z m Z m
Z
d d g Z d Z e
e � Z d d � Z d
d � Z d d
� Z d d � Z d d � Z d d � Z d d � Z d S)z&
Implementation of optimized einsum.
� )�division�absolute_import�print_function)�c_einsum)�asarray�
asanyarray�result_type�einsum�einsum_pathZ4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZc C s) d } x | D] } | | | 9} q
W| S)a�
Computes the product of the elements in indices based on the dictionary
idx_dict.
Parameters
----------
indices : iterable
Indices to base the product on.
idx_dict : dictionary
Dictionary of index sizes
Returns
-------
ret : int
The resulting product.
Examples
--------
>>> _compute_size_by_dict('abbc', {'a': 2, 'b':3, 'c':5})
90
� � )�indices�idx_dict�ret�ir r �H/opt/alt/python35/lib64/python3.5/site-packages/numpy/core/einsumfunc.py�_compute_size_by_dict s
r c
C s� t � } | j � } g } xJ t | � D]<