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
_sprepost(A::AbstractSparseMatrix, B::AbstractMatrix) =kron(transpose(sparse(B)), A)
16
16
_sprepost(A::AbstractSparseMatrix, B::AbstractSparseMatrix) =kron(transpose(B), A)
17
-
function_sprepost(A, B) # for any other input types
18
-
#TODO: use the commented code (since it is optimized for certain types of SciMLOperators, and was able to give correct results before `SciMLOperators v1.0.0`)
19
-
# Id_cache = I(size(A, 1))
20
-
# return _spre(A, Id_cache) * _spost(B, Id_cache)
21
-
22
-
returnkron(transpose(B), A)
23
-
end
24
17
25
18
## if input is AbstractSciMLOperator
26
19
## some of them are optimized to speed things up
27
20
## the rest of the SciMLOperators will just use lazy tensor (and prompt a warning)
0 commit comments