bbdfe45618cf57386b2f84109b102fd8cf6feeb7,scipy/linalg/decomp_qr.py,,qr_multiply,#Any#Any#Any#Any#Any#Any#Any#,176

Before Change


    a = numpy.asarray(a)  // chkfinite done in qr
    M, N = a.shape
    if not (mode == "left" and
                (not overwrite_c and min(M, N) == c.shape[0] or
                     overwrite_c and M == c.shape[0]) or
            mode == "right" and M == c.shape[1]):
        raise ValueError("objects are not aligned")

After Change


    a = numpy.atleast_2d(numpy.asarray(a))  // chkfinite done in qr
    M, N = a.shape

    if mode == "left":
        if c.shape[0] != min(M, N + overwrite_c*(M-N)):
            raise ValueError("Array shapes are not compatible for Q @ c"
                             " operation: {} vs {}".format(a.shape, c.shape))
    else:
        if M != c.shape[1]:
            raise ValueError("Array shapes are not compatible for c @ Q"
                             " operation: {} vs {}".format(c.shape, a.shape))

    raw = qr(a, overwrite_a, None, "raw", pivoting)
    Q, tau = raw[0]

    gor_un_mqr, = get_lapack_funcs(("ormqr",), (Q,))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: bbdfe45618cf57386b2f84109b102fd8cf6feeb7
Time: 2018-01-16
Author: ilhanpolat@gmail.com
File Name: scipy/linalg/decomp_qr.py
Class Name:
Method Name: qr_multiply


Project Name: pantsbuild/pants
Commit Name: c0db03f4b1c0acd1a2bb2ccff7ba0405ea1f26a6
Time: 2019-03-25
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks/python_tool_prep_base.py
Class Name: PythonToolPrepBase
Method Name: execute


Project Name: rtqichen/torchdiffeq
Commit Name: 1b93cfeca5f2503eafc4ec773353254cf077fb9f
Time: 2020-07-28
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/fixed_adams.py
Class Name: AdamsBashforthMoulton
Method Name: __init__


Project Name: chartbeat-labs/textacy
Commit Name: c189af21ab9a8d64e52f395031cf0e3218fd7eac
Time: 2016-04-11
Author: burton@chartbeat.com
File Name: textacy/representations/network.py
Class Name:
Method Name: terms_to_semantic_network