Skip to content

Commit dec6683

Browse files
FrankWolfe.fast_dot -> LA.dot
1 parent b0c91fc commit dec6683

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/types.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,21 +249,21 @@ Base.@propagate_inbounds function Base.getindex(ps::PureState{T, N}, x::Vararg{I
249249
return @inbounds prod(getindex(ps.tensors[n], x[n]) for n in 1:N)
250250
end
251251

252-
FrankWolfe.fast_dot(A::Array, ps::PureState) = conj(FrankWolfe.fast_dot(ps, A))
252+
LA.dot(A::Array, ps::PureState) = conj(LA.dot(ps, A))
253253

254-
function FrankWolfe.fast_dot(ps::PureState{T, 2}, A::Array{T, 2}) where {T <: Real}
254+
function LA.dot(ps::PureState{T, 2}, A::Array{T, 2}) where {T <: Real}
255255
LA.mul!(ps.lmo.tmp, A, ps.tensors[2])
256256
return LA.dot(ps.tensors[1], ps.lmo.tmp)
257257
end
258258

259-
function FrankWolfe.fast_dot(ps::PureState{T, N}, A::Array{T, N}) where {T <: Real} where {N}
259+
function LA.dot(ps::PureState{T, N}, A::Array{T, N}) where {T <: Real} where {N}
260260
return LA.dot(ps, A)
261261
end
262262

263-
function FrankWolfe.fast_dot(ps1::PureState{T, 2}, ps2::PureState{T, 2}) where {T <: Real}
263+
function LA.dot(ps1::PureState{T, 2}, ps2::PureState{T, 2}) where {T <: Real}
264264
return LA.dot(ps1.tensors[1], ps2.tensors[1]) * LA.dot(ps1.tensors[2], ps2.tensors[2])
265265
end
266266

267-
function FrankWolfe.fast_dot(ps1::PureState{T, N}, ps2::PureState{T, N}) where {T <: Real, N}
267+
function LA.dot(ps1::PureState{T, N}, ps2::PureState{T, N}) where {T <: Real, N}
268268
return prod(LA.dot(ps1.tensors[n], ps2.tensors[n]) for n in 1:N)
269269
end

0 commit comments

Comments
 (0)