5050Identity operator of order `n` and of data type `T` (defaults to `Float64`).
5151Change `S` to use LinearOperators on GPU.
5252"""
53- function opEye (T:: DataType , n:: Int ; S = Vector{T})
53+ function opEye (T:: Type , n:: Int ; S = Vector{T})
5454 prod! = @closure (res, v, α, β) -> mulOpEye! (res, v, α, β, n)
5555 LinearOperator {T} (n, n, true , true , prod!, prod!, prod!, S = S)
5656end
@@ -66,7 +66,7 @@ Rectangular identity operator of size `nrow`x`ncol` and of data type `T`
6666(defaults to `Float64`).
6767Change `S` to use LinearOperators on GPU.
6868"""
69- function opEye (T:: DataType , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
69+ function opEye (T:: Type , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
7070 if nrow == ncol
7171 return opEye (T, nrow; S = S)
7272 end
@@ -92,7 +92,7 @@ Operator of all ones of size `nrow`-by-`ncol` of data type `T` (defaults to
9292`Float64`).
9393Change `S` to use LinearOperators on GPU.
9494"""
95- function opOnes (T:: DataType , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
95+ function opOnes (T:: Type , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
9696 prod! = @closure (res, v, α, β) -> mulOpOnes! (res, v, α, β)
9797 LinearOperator {T} (nrow, ncol, nrow == ncol, nrow == ncol, prod!, prod!, prod!, S = S)
9898end
@@ -115,7 +115,7 @@ Zero operator of size `nrow`-by-`ncol`, of data type `T` (defaults to
115115`Float64`).
116116Change `S` to use LinearOperators on GPU.
117117"""
118- function opZeros (T:: DataType , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
118+ function opZeros (T:: Type , nrow:: I , ncol:: I ; S = Vector{T}) where {I <: Integer }
119119 prod! = @closure (res, v, α, β) -> mulOpZeros! (res, v, α, β)
120120 LinearOperator {T} (nrow, ncol, nrow == ncol, nrow == ncol, prod!, prod!, prod!, S = S)
121121end
0 commit comments