Skip to content

Commit f33cc10

Browse files
authored
Use generic axpy! instead of calling BLAS.axpy! (#1968)
1 parent e055f7a commit f33cc10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mixtures/mixturemodel.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function mean(d::MultivariateMixture)
186186
pi = p[i]
187187
if pi > 0.0
188188
c = component(d, i)
189-
BLAS.axpy!(pi, mean(c), m)
189+
axpy!(pi, mean(c), m)
190190
end
191191
end
192192
return m
@@ -236,8 +236,8 @@ function cov(d::MultivariateMixture)
236236
pi = p[i]
237237
if pi > 0.0
238238
c = component(d, i)
239-
BLAS.axpy!(pi, mean(c), m)
240-
BLAS.axpy!(pi, cov(c), V)
239+
axpy!(pi, mean(c), m)
240+
axpy!(pi, cov(c), V)
241241
end
242242
end
243243
for i = 1:K
@@ -246,7 +246,7 @@ function cov(d::MultivariateMixture)
246246
c = component(d, i)
247247
# todo: use more in-place operations
248248
md = mean(c) - m
249-
BLAS.axpy!(pi, md*md', V)
249+
axpy!(pi, md*md', V)
250250
end
251251
end
252252
return V
@@ -303,7 +303,7 @@ function _mixpdf!(r::AbstractArray, d::AbstractMixtureModel, x)
303303
else
304304
pdf!(t, component(d, i), x)
305305
end
306-
BLAS.axpy!(pi, t, r)
306+
axpy!(pi, t, r)
307307
end
308308
end
309309
return r

0 commit comments

Comments
 (0)