e2155cf1906edff3b5b8adeb59558867f07b40f6,mne/morph.py,,_compute_morph_matrix,#Any#Any#Any#Any#Any#Any#Any#Any#,876
Before Change
for hemi_to in range(2): // iterate over to / block-rows of CSR matrix
hemi_from = (1 - hemi_to) if xhemi else hemi_to
idx_use = vertices_from[hemi_from]
if len(idx_use) == 0:
morpher.append(
sparse.csr_matrix((len(vertices_to[hemi_to]), 0)))
continue
e = mesh_edges(tris[hemi_from])
e.data[e.data == 2] = 1
n_vertices = e.shape[0]
e = e + sparse.eye(n_vertices, n_vertices)
m = sparse.eye(len(idx_use), len(idx_use), format="csr")
mm = _morph_buffer(m, idx_use, e, smooth, n_vertices,
vertices_to[hemi_to], maps[hemi_from], warn=warn)
assert mm.shape == (len(vertices_to[hemi_to]),
len(vertices_from[hemi_from]))
After Change
for hemi_to in range(2): // iterate over to / block-rows of CSR matrix
hemi_from = (1 - hemi_to) if xhemi else hemi_to
morpher.append(_hemi_morph(
tris[hemi_from], vertices_to[hemi_to], vertices_from[hemi_from] ,
smooth, maps[hemi_from], warn))
shape = (sum(len(v) for v in vertices_to),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: mne-tools/mne-python
Commit Name: e2155cf1906edff3b5b8adeb59558867f07b40f6
Time: 2020-03-25
Author: larson.eric.d@gmail.com
File Name: mne/morph.py
Class Name:
Method Name: _compute_morph_matrix
Project Name: RaRe-Technologies/gensim
Commit Name: a31eab99dfbc6dcb7fe2ef149c59a30910adbbbd
Time: 2011-05-15
Author: radimrehurek@seznam.cz
File Name: src/gensim/similarities/docsim.py
Class Name: SparseMatrixSimilarity
Method Name: getSimilarities
Project Name: scikit-learn/scikit-learn
Commit Name: 91a0e4041e6a7ec3752b394956473503e87a5924
Time: 2020-07-04
Author: 34657725+jeremiedbb@users.noreply.github.com
File Name: sklearn/cluster/tests/test_k_means.py
Class Name:
Method Name: test_float_precision