Skip to content

Commit

Permalink
Update distance.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gcattan authored Dec 17, 2024
1 parent 95c0ed1 commit 9232b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyriemann_qiskit/utils/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def weights_logeuclid_to_convex_hull(A, B, optimizer=ClassicalOptimizer()):
matrices = range(n_matrices)

def log_prod(m1, m2):
return np.nansum(logm(m1).flatten() * logm(m2).flatten())
return np.trace(logm(m1) @ logm(m2))

prob = Model()
optimizer = get_global_optimizer(optimizer)
Expand Down

0 comments on commit 9232b73

Please sign in to comment.