Skip to content

Commit a133255

Browse files
authored
Merge pull request #27 from pepijndevos/nthreads
set number of threads to 1
2 parents e425ff5 + 18200f4 commit a133255

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/TriangularSolve.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -205,63 +205,63 @@ function rdiv!(A::AbstractMatrix{T}, U::UpperTriangular{T}, ::Val{true} = Val(tr
205205
return A
206206
end
207207
function rdiv!(A::AbstractMatrix{T}, U::UpperTriangular{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
208-
div_dispatch!(A, A, parent(U), static(0), Val(false))
208+
div_dispatch!(A, A, parent(U), static(1), Val(false))
209209
return A
210210
end
211211
function rdiv!(C::AbstractMatrix{T}, A::AbstractMatrix{T}, U::UpperTriangular{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
212212
div_dispatch!(C, A, parent(U), _nthreads(), Val(false))
213213
return C
214214
end
215215
function rdiv!(C::AbstractMatrix{T}, A::AbstractMatrix{T}, U::UpperTriangular{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
216-
div_dispatch!(C, A, parent(U), static(0), Val(false))
216+
div_dispatch!(C, A, parent(U), static(1), Val(false))
217217
return C
218218
end
219219
function rdiv!(A::AbstractMatrix{T}, U::UnitUpperTriangular{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
220220
div_dispatch!(A, A, parent(U), _nthreads(), Val(true))
221221
return A
222222
end
223223
function rdiv!(A::AbstractMatrix{T}, U::UnitUpperTriangular{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
224-
div_dispatch!(A, A, parent(U), static(0), Val(true))
224+
div_dispatch!(A, A, parent(U), static(1), Val(true))
225225
return A
226226
end
227227
function rdiv!(C::AbstractMatrix{T}, A::AbstractMatrix{T}, U::UnitUpperTriangular{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
228228
div_dispatch!(C, A, parent(U), _nthreads(), Val(true))
229229
return C
230230
end
231231
function rdiv!(C::AbstractMatrix{T}, A::AbstractMatrix{T}, U::UnitUpperTriangular{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
232-
div_dispatch!(C, A, parent(U), static(0), Val(true))
232+
div_dispatch!(C, A, parent(U), static(1), Val(true))
233233
return C
234234
end
235235
function ldiv!(U::LowerTriangular{T}, A::AbstractMatrix{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
236236
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), _nthreads(), Val(false))
237237
return A
238238
end
239239
function ldiv!(U::LowerTriangular{T}, A::AbstractMatrix{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
240-
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), static(0), Val(false))
240+
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), static(1), Val(false))
241241
return A
242242
end
243243
function ldiv!(C::AbstractMatrix{T}, U::LowerTriangular{T}, A::AbstractMatrix{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
244244
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), _nthreads(), Val(false))
245245
return C
246246
end
247247
function ldiv!(C::AbstractMatrix{T}, U::LowerTriangular{T}, A::AbstractMatrix{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
248-
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), static(0), Val(false))
248+
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), static(1), Val(false))
249249
return C
250250
end
251251
function ldiv!(U::UnitLowerTriangular{T}, A::AbstractMatrix{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
252252
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), _nthreads(), Val(true))
253253
return A
254254
end
255255
function ldiv!(U::UnitLowerTriangular{T}, A::AbstractMatrix{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
256-
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), static(0), Val(true))
256+
div_dispatch!(transpose(A), transpose(A), transpose(parent(U)), static(1), Val(true))
257257
return A
258258
end
259259
function ldiv!(C::AbstractMatrix{T}, U::UnitLowerTriangular{T}, A::AbstractMatrix{T}, ::Val{true} = Val(true)) where {T<:Union{Float32,Float64}}
260260
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), _nthreads(), Val(true))
261261
return C
262262
end
263263
function ldiv!(C::AbstractMatrix{T}, U::UnitLowerTriangular{T}, A::AbstractMatrix{T}, ::Val{false}) where {T<:Union{Float32,Float64}}
264-
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), static(0), Val(true))
264+
div_dispatch!(transpose(C), transpose(A), transpose(parent(U)), static(1), Val(true))
265265
return C
266266
end
267267

0 commit comments

Comments
 (0)