23:4399bf266660 | 24:da6c7475dd0e |
---|---|
89 | 89 |
90 function opnorm_estimate(op::MatrixOp{T}) where T | 90 function opnorm_estimate(op::MatrixOp{T}) where T |
91 return opnorm(op.m, 2) | 91 return opnorm(op.m, 2) |
92 end | 92 end |
93 | 93 |
94 function Base.:+(a::MatrixOp{T}, b::MatrixOp{T}) where T | |
95 return MatrixOp(a.m+b.m) | |
94 end | 96 end |
97 | |
98 function Base.:-(a::MatrixOp{T}, b::MatrixOp{T}) where T | |
99 return MatrixOp(a.m-b.m) | |
100 end | |
101 | |
102 function Base.:*(a::MatrixOp{T}, b::MatrixOp{T}) where T | |
103 return MatrixOp(a.m*b.m) | |
104 end | |
105 | |
106 end |