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 1
1
name = " BlockSparseArrays"
2
2
uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
3
3
authors = [
" ITensor developers <[email protected] > and contributors" ]
4
- version = " 0.7.8 "
4
+ version = " 0.7.9 "
5
5
6
6
[deps ]
7
7
Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Original file line number Diff line number Diff line change @@ -111,9 +111,15 @@ function Base.isreal(a::AnyAbstractBlockSparseArray)
111
111
return @interface interface (a) isreal (a)
112
112
end
113
113
114
+ # Helps with specialization of block operations by avoiding
115
+ # having anonymous functions constructed inside the map/broadcast
116
+ # code logic.
114
117
function Base.:* (x:: Number , a:: AnyAbstractBlockSparseArray )
115
118
return map (Base. Fix1 (* , x), a)
116
119
end
117
120
function Base.:* (a:: AnyAbstractBlockSparseArray , x:: Number )
118
121
return map (Base. Fix2 (* , x), a)
119
122
end
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