67118e3d39801c6d970e1f829350e14c5df2cb29,t3f/ops.py,,quadratic_form,#Any#Any#Any#,885
Before Change
raise ValueError("The arguments should be a TT-matrix.")
// TODO: make a more efficient implementation taylored for this case.
return flat_inner(A, tt_tt_matmul(b, transpose(c) ))
def cast(tt_a, dtype):
After Change
def quadratic_form(A, b, c):
if isinstance(b, TensorTrainBatch):
return quadratic_form_batch(A, b, c)
if isinstance(b, TensorTrain):
return quadratic_form_single(A, b, c)
def quadratic_form_batch(A, b, c):
Computes the quadratic form b^t A c where A is a TT-matrix (or a batch).
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: Bihaqo/t3f
Commit Name: 67118e3d39801c6d970e1f829350e14c5df2cb29
Time: 2017-05-17
Author: novikov@bayesgroup.ru
File Name: t3f/ops.py
Class Name:
Method Name: quadratic_form
Project Name: chainer/chainercv
Commit Name: 19c8ee690ccf74947b379862a5290c9b53f96de7
Time: 2017-03-15
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/chw_to_pil_image.py
Class Name:
Method Name: chw_to_pil_image
Project Name: pymc-devs/pymc3
Commit Name: e77dda15bfd5dbc415ad63c4838a5d0ef21bd1d9
Time: 2017-10-28
Author: siobhankcronin@gmail.com
File Name: pymc3/diagnostics.py
Class Name:
Method Name: effective_n