Skip to content

Commit e3d1f29

Browse files
committed
Use matmul operator instead of the matrix class
1 parent 0ee138c commit e3d1f29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nitime/algorithms/event_related.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def fir(timeseries, design):
5555
and Unbiased Approach. Human Brain Mapping, 11:249-260
5656
5757
"""
58-
X = np.matrix(design)
59-
y = np.matrix(timeseries)
60-
h = np.array(linalg.pinv(X.T * X) * X.T * y.T)
58+
X = np.array(design)
59+
y = np.array(timeseries)
60+
h = np.array(linalg.pinv(X.T @ X) @ X.T @ y.T)
6161
return h
6262

6363

0 commit comments

Comments
 (0)