d8c8c1ac6936dc55623ea7e29efebb90420811e7,paysage/backends/python_backend/matrix.py,,tprod,#,547

Before Change


            tensor: The product of the tensor along the specified axis.

    
    return numpy.prod(x, axis=axis, keepdims=keepdims)

def tany(x: T.Tensor, axis: int=None, keepdims: bool=False) -> T.Boolean:
    
    Return True if any elements of the input tensor are true along the

After Change


            tensor: The product of the tensor along the specified axis.

    
    if axis is not None:
        tmp = numpy.prod(x, axis=axis, keepdims=True)
        if keepdims:
            return tmp
        else:
            return flatten(tmp)
    else:
        return numpy.prod(x)

def tany(x: T.Tensor, axis: int=None, keepdims: bool=False) -> T.Boolean:
    
    Return True if any elements of the input tensor are true along the
    specified axis.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 9

Instances


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tprod


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tmin


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tmax


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: var


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tall


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: std


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tsum


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: tany


Project Name: drckf/paysage
Commit Name: d8c8c1ac6936dc55623ea7e29efebb90420811e7
Time: 2017-06-20
Author: jrwalsh1@gmail.com
File Name: paysage/backends/python_backend/matrix.py
Class Name:
Method Name: mean