Skip to content

Commit

Permalink
update lodf LAPACK code
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 29, 2023
1 parent 451381c commit 9eea136
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lodf_calculations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ function _calculate_LODF_matrix_DENSE(
push!(m_V, 1.0 - ptdf_denominator_t[iline, iline])
end
end
lodf_t = LinearAlgebra.diagm(m_V) \ ptdf_denominator_t
lodf_t[LinearAlgebra.diagind(lodf_t)] .= -1.0
return lodf_t
(mV, bipiv, binfo) = getrf!(Matrix(LinearAlgebra.diagm(m_V)))
_binfo_check(binfo)
getrs!('N', mV, bipiv, ptdf_denominator_t)
ptdf_denominator_t[LinearAlgebra.diagind(ptdf_denominator_t)] .= -1.0
return ptdf_denominator_t
end

function _pardiso_sequential_LODF!(

Check warning on line 133 in src/lodf_calculations.jl

View check run for this annotation

Codecov / codecov/patch

src/lodf_calculations.jl#L133

Added line #L133 was not covered by tests
Expand Down

0 comments on commit 9eea136

Please sign in to comment.