File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/abstractblocksparsearray Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11name = " BlockSparseArrays"
22uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33authors = [" ITensor developers <support@itensor.org> and contributors" ]
4- version = " 0.7.8 "
4+ version = " 0.7.9 "
55
66[deps ]
77Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Original file line number Diff line number Diff line change @@ -111,9 +111,15 @@ function Base.isreal(a::AnyAbstractBlockSparseArray)
111111 return @interface interface (a) isreal (a)
112112end
113113
114+ # Helps with specialization of block operations by avoiding
115+ # having anonymous functions constructed inside the map/broadcast
116+ # code logic.
114117function Base.:* (x:: Number , a:: AnyAbstractBlockSparseArray )
115118 return map (Base. Fix1 (* , x), a)
116119end
117120function Base.:* (a:: AnyAbstractBlockSparseArray , x:: Number )
118121 return map (Base. Fix2 (* , x), a)
119122end
123+ function Base.:/ (a:: AnyAbstractBlockSparseArray , x:: Number )
124+ return map (Base. Fix2 (/ , x), a)
125+ end
You can’t perform that action at this time.
0 commit comments