50
50
Identity operator of order `n` and of data type `T` (defaults to `Float64`).
51
51
Change `S` to use LinearOperators on GPU.
52
52
"""
53
- function opEye (T:: DataType , n:: Int ; S = Vector{T})
53
+ function opEye (T:: Type , n:: Int ; S = Vector{T})
54
54
prod! = @closure (res, v, α, β) -> mulOpEye! (res, v, α, β, n)
55
55
LinearOperator {T} (n, n, true , true , prod!, prod!, prod!, S = S)
56
56
end
@@ -66,7 +66,7 @@ Rectangular identity operator of size `nrow`x`ncol` and of data type `T`
66
66
(defaults to `Float64`).
67
67
Change `S` to use LinearOperators on GPU.
68
68
"""
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 }
70
70
if nrow == ncol
71
71
return opEye (T, nrow; S = S)
72
72
end
@@ -92,7 +92,7 @@ Operator of all ones of size `nrow`-by-`ncol` of data type `T` (defaults to
92
92
`Float64`).
93
93
Change `S` to use LinearOperators on GPU.
94
94
"""
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 }
96
96
prod! = @closure (res, v, α, β) -> mulOpOnes! (res, v, α, β)
97
97
LinearOperator {T} (nrow, ncol, nrow == ncol, nrow == ncol, prod!, prod!, prod!, S = S)
98
98
end
@@ -115,7 +115,7 @@ Zero operator of size `nrow`-by-`ncol`, of data type `T` (defaults to
115
115
`Float64`).
116
116
Change `S` to use LinearOperators on GPU.
117
117
"""
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 }
119
119
prod! = @closure (res, v, α, β) -> mulOpZeros! (res, v, α, β)
120
120
LinearOperator {T} (nrow, ncol, nrow == ncol, nrow == ncol, prod!, prod!, prod!, S = S)
121
121
end
0 commit comments