mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 09:42:39 +02:00
Fixed symmetrify for when C/F compiler doesn't work
This commit is contained in:
parent
a491b52371
commit
3853721355
1 changed files with 4 additions and 1 deletions
|
|
@ -313,7 +313,10 @@ def symmetrify(A,upper=False):
|
|||
elif A.flags['F_CONTIGUOUS'] and not upper:
|
||||
weave.inline(f_contig_code,['A','N'], extra_compile_args=['-O3'])
|
||||
else:
|
||||
tmp = np.tril(A)
|
||||
if upper:
|
||||
tmp = np.tril(A.T)
|
||||
else:
|
||||
tmp = np.tril(A)
|
||||
A[:] = 0.0
|
||||
A += tmp
|
||||
A += np.tril(tmp,-1).T
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue