Skip to content

Commit e1a8e71

Browse files
committed
Allows symmetric and hermitian options for all PreallocatedLinearOperator
1 parent 4eb3c4f commit e1a8e71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PreallocatedLinearOperators.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Constructs a linear operator from a symmetric tridiagonal matrix. If
117117
its elements are real, it is also Hermitian, otherwise complex
118118
symmetric.
119119
"""
120-
function PreallocatedLinearOperator(M :: SymTridiagonal{T}; storagetype=Vector{T}) where T
120+
function PreallocatedLinearOperator(M :: SymTridiagonal{T}; storagetype=Vector{T}, kwargs...) where T
121121
nrow, ncol = size(M)
122122
Mv = storagetype(undef, nrow)
123123
hermitian = eltype(M) <: Real
@@ -132,7 +132,7 @@ Constructs a linear operator from a symmetric matrix. If
132132
its elements are real, it is also Hermitian, otherwise complex
133133
symmetric.
134134
"""
135-
function PreallocatedLinearOperator(M :: Symmetric{T}; storagetype=Vector{T}) where T
135+
function PreallocatedLinearOperator(M :: Symmetric{T}; storagetype=Vector{T}, kwargs...) where T
136136
nrow, ncol = size(M)
137137
Mv = storagetype(undef, nrow)
138138
hermitian = eltype(M) <: Real
@@ -146,7 +146,7 @@ end
146146
Constructs a linear operator from a Hermitian matrix. If
147147
its elements are real, it is also symmetric.
148148
"""
149-
function PreallocatedLinearOperator(M :: Hermitian{T}; storagetype=Vector{T}) where T
149+
function PreallocatedLinearOperator(M :: Hermitian{T}; storagetype=Vector{T}, kwargs...) where T
150150
nrow, ncol = size(M)
151151
Mv = storagetype(undef, nrow)
152152
symmetric = eltype(M) <: Real

0 commit comments

Comments
 (0)