Fix Linops to use AbstractMatrix instead of Matrix

Tue, 13 Apr 2021 15:51:28 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 13 Apr 2021 15:51:28 -0500
changeset 26
f075aca8485b
parent 25
90f92ee9cb81
child 27
62c62f451a41

Fix Linops to use AbstractMatrix instead of Matrix

src/LinOps.jl file | annotate | diff | comparison | revisions
--- a/src/LinOps.jl	Mon Mar 22 22:26:08 2021 -0500
+++ b/src/LinOps.jl	Tue Apr 13 15:51:28 2021 -0500
@@ -76,7 +76,7 @@
 # Matrix operator
 
 struct MatrixOp{T<:Real} <: LinOp{Vector{T}, Vector{T}}
-    m :: Matrix{T}
+    m :: AbstractMatrix{T}
 end
 
 function (op::MatrixOp{T})(v::Vector{T}) where T

mercurial