You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct KroneckerPower{T,TA<:AbstractMatrix{T}} <:AbstractKroneckerProduct{T}
A::TA
pow::IntfunctionKroneckerPower(A::AbstractMatrix, pow::Integer)
@assert pow ≥2"KroneckerPower only makes sense for powers greater than 1"returnnew{eltype(A),typeof(A)}(A, Int(pow))
endend
Currently, the Kronecker power is only implemented for integers greater than one, but isn't it natural to have M⊗1 equal to M?
The text was updated successfully, but these errors were encountered:
It might, but the problem is that M⊗1would be a Matrix rather than a KroneckerProduct, which would be a type instability. I have implemented this in #138
Currently, the Kronecker power is only implemented for integers greater than one, but isn't it natural to have
M⊗1
equal toM
?The text was updated successfully, but these errors were encountered: