mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 13:02:38 +02:00
[core] updating system, security branching
This commit is contained in:
parent
938cc49aed
commit
70a9a26d7e
15 changed files with 366 additions and 65 deletions
|
|
@ -46,6 +46,8 @@ def offdiag_view(A, offset=0):
|
|||
return as_strided(Af[(1+offset):], shape=(A.shape[0]-1, A.shape[1]), strides=(A.strides[0] + A.itemsize, A.strides[1]))
|
||||
|
||||
def _diag_ufunc(A,b,offset,func):
|
||||
b = np.squeeze(b)
|
||||
assert b.ndim <= 1, "only implemented for one dimensional arrays"
|
||||
dA = view(A, offset); func(dA,b,dA)
|
||||
return A
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue