We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08356a7 commit 851e4afCopy full SHA for 851e4af
test/composition.jl
@@ -157,22 +157,6 @@ using LinearMaps: LinearMapVector, LinearMapTuple
157
@test P isa LinearMaps.CompositeMap{<:Any,<:LinearMapVector}
158
@test P * ones(3) == (LowerTriangular(ones(3,3))^i) * ones(3)
159
end
160
- # test product of 2-arg FunctionMaps
161
- N = 100
162
- function plan()
163
- y = zeros(N) # workspace
164
- A = LinearMap{Float64}(x -> (y .= x; y), N)
165
- return A, y
166
- end
167
- A, ya = plan()
168
- B, yb = plan()
169
- x = zeros(N)
170
- C = @inferred A*B
171
- @test C*x === ya
172
- @test (@allocated C*x) == 0
173
- mul!(deepcopy(ya), C, x)
174
- y = deepcopy(ya)
175
- @test (@allocated mul!(y, C, x)) == 0
176
177
178
# test product of 2-arg FunctionMaps
0 commit comments