MCPcopy
hub / github.com/mne-tools/mne-python / test_sum_squared

Function test_sum_squared

mne/utils/tests/test_numerics.py:99–102  ·  view source on GitHub ↗

Test optimized sum of squares.

()

Source from the content-addressed store, hash-verified

97
98
99def test_sum_squared():
100 """Test optimized sum of squares."""
101 X = np.random.RandomState(0).randint(0, 50, (3, 3))
102 assert np.sum(X**2) == sum_squared(X)
103
104
105def test_compute_corr():

Callers

nothing calls this directly

Calls 2

sum_squaredFunction · 0.90
sumMethod · 0.45

Tested by

no test coverage detected