We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71142f7 commit 5b8e73dCopy full SHA for 5b8e73d
src/pardiso.jl
@@ -40,7 +40,17 @@ function init_cacheval(alg::PardisoJL, cache::LinearCache)
40
41
Pardiso.pardisoinit(solver) # default initialization
42
43
- matrix_type !== nothing && Pardiso.set_matrixtype!(solver, matrix_type)
+ if matrix_type !== nothing
44
+ Pardiso.set_matrixtype!(solver, matrix_type)
45
+ else
46
+ if eltype(A) <: Real
47
+ Pardiso.set_matrixtype!(solver, Pardiso.REAL_NONSYM)
48
+ elseif eltype(A) <: Complex
49
+ Pardiso.set_matrixtype!(solver, Pardiso.COMPLEX_NONSYM)
50
51
+ error("Number type not supported by Pardiso")
52
+ end
53
54
cache.verbose && Pardiso.set_msglvl!(solver, Pardiso.MESSAGE_LEVEL_ON)
55
56
# pass in vector of tuples like [(iparm::Int, key::Int) ...]
0 commit comments