Skip to content

Commit 1b5718a

Browse files
Apply suggestions
1 parent 2740bb5 commit 1b5718a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/qobj/superoperators.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ _sprepost(A::AbstractMatrix, B::AbstractMatrix) = kron(transpose(sparse(B)), spa
1414
_sprepost(A::AbstractMatrix, B::AbstractSparseMatrix) = kron(transpose(B), sparse(A))
1515
_sprepost(A::AbstractSparseMatrix, B::AbstractMatrix) = kron(transpose(sparse(B)), A)
1616
_sprepost(A::AbstractSparseMatrix, B::AbstractSparseMatrix) = kron(transpose(B), A)
17-
function _sprepost(A, B) # for any other input types
18-
return _spre(A) * _spost(B)
19-
end
17+
_sprepost(A, B) = _spre(A) * _spost(B) # for any other input types
2018

2119
## if input is AbstractSciMLOperator
2220
## some of them are optimized to speed things up

0 commit comments

Comments
 (0)