mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-12 13:32:39 +02:00
[merge] merge master into devel
This commit is contained in:
commit
cf2673632b
12 changed files with 257 additions and 314 deletions
|
|
@ -157,7 +157,7 @@ def trace_dot(a, b):
|
|||
"""
|
||||
Efficiently compute the trace of the matrix product of a and b
|
||||
"""
|
||||
return np.sum(a * b)
|
||||
return np.einsum('ij,ji->', a, b)
|
||||
|
||||
def mdot(*args):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue