# HG changeset patch # User Tuomo Valkonen # Date 1613856401 18000 # Node ID 4399bf2666609e242864442d1268ebc463bcb55b # Parent d5e10d963303ee510051b1d095ebf0c69fd05848 Improve MatrixOp parametrisation diff -r d5e10d963303 -r 4399bf266660 src/LinOps.jl --- a/src/LinOps.jl Sat Feb 20 16:26:31 2021 -0500 +++ b/src/LinOps.jl Sat Feb 20 16:26:41 2021 -0500 @@ -8,7 +8,7 @@ module LinOps -export LinOp, IdOp, AdjointOp, AdjointableOp, +export LinOp, IdOp, AdjointOp, AdjointableOp, MatrixOp, calc_adjoint, calc_adjoint!, inplace!, opnorm_estimate @@ -75,8 +75,8 @@ # Matrix operator -struct MatrixOp{T<:Real} - m :: AbstractArray{T, 2} +struct MatrixOp{T<:Real} <: LinOp{Vector{T}, Vector{T}} + m :: Matrix{T} end function (op::MatrixOp{T})(v::Vector{T}) where T