src/LinOps.jl

changeset 26
f075aca8485b
parent 24
da6c7475dd0e
equal deleted inserted replaced
25:90f92ee9cb81 26:f075aca8485b
74 end 74 end
75 75
76 # Matrix operator 76 # Matrix operator
77 77
78 struct MatrixOp{T<:Real} <: LinOp{Vector{T}, Vector{T}} 78 struct MatrixOp{T<:Real} <: LinOp{Vector{T}, Vector{T}}
79 m :: Matrix{T} 79 m :: AbstractMatrix{T}
80 end 80 end
81 81
82 function (op::MatrixOp{T})(v::Vector{T}) where T 82 function (op::MatrixOp{T})(v::Vector{T}) where T
83 return op.m*v 83 return op.m*v
84 end 84 end

mercurial