Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Commit

Permalink
rm patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Oct 13, 2019
1 parent ac19600 commit df39ab7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ Base.@propagate_inbounds function unrows!(state::AbstractMatrix, inds::AbstractV
state
end

#### Yao Base patch ####
using YaoBase
function YaoBase.batched_kron!(C::Array{T, 3}, A::AbstractArray{T1, 3}, B::AbstractArray{T2, 3}) where {T, T1, T2}
YaoBase.batched_kron!(C, convert(Array{T,3}, A), convert(Array{T,3}, B))
end

using LinearAlgebra: Transpose
Base.convert(::Type{Transpose{T, Matrix{T}}}, arr::AbstractMatrix{T}) where T = transpose(Matrix(transpose(arr)))
Base.convert(t::Type{Transpose{T, Matrix{T}}}, arr::Transpose{T}) where T = invoke(convert, Tuple{Type{Transpose{T, Matrix{T}}}, Transpose}, t, arr)
Expand Down

0 comments on commit df39ab7

Please sign in to comment.