mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-11 16:22:13 +02:00
Merge branch 'devel' of github.com:SheffieldML/GPy into devel
This commit is contained in:
commit
050cdd9c93
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:
|
elif A.flags['F_CONTIGUOUS'] and not upper:
|
||||||
weave.inline(f_contig_code,['A','N'], extra_compile_args=['-O3'])
|
weave.inline(f_contig_code,['A','N'], extra_compile_args=['-O3'])
|
||||||
else:
|
else:
|
||||||
tmp = np.tril(A)
|
if upper:
|
||||||
|
tmp = np.tril(A.T)
|
||||||
|
else:
|
||||||
|
tmp = np.tril(A)
|
||||||
A[:] = 0.0
|
A[:] = 0.0
|
||||||
A += tmp
|
A += tmp
|
||||||
A += np.tril(tmp,-1).T
|
A += np.tril(tmp,-1).T
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue