Skip to content

Commit fc534b9

Browse files
committed
Wrap generalized Hermitian eigenvalue routine
1 parent c24b490 commit fc534b9

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/core/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ eltype{T}(A::ElementalMatrix{T}) = T
6060
@enum UpperOrLower LOWER UPPER
6161
@enum LeftOrRight LEFT RIGHT
6262
@enum UnitOrNonUnit NON_UNIT UNIT
63+
@enum Pencil AXBX=1 ABX=2 BAX=3
6364

6465
# Get MPIWorldComm
6566
function CommWorldValue()

src/lapack_like/spectral.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ for (elty, ext) in ((:Float32, :s),
242242
return w
243243
end
244244

245+
function eigvalsHermitian(pencil::Pencil, uplo::UpperOrLower, A::$mat{$elty}, B::$mat{$elty}, sort::SortType = ASCENDING)
246+
w = $mat(real($elty))
247+
ElError(ccall(($(string("ElHermitianGenDefEig", mattype, "_", ext)), libEl), Cuint,
248+
(Pencil, UpperOrLower, Ptr{Void}, Ptr{Void}, Ptr{Void}, SortType),
249+
pencil, uplo, A.obj, B.obj, w.obj, sort))
250+
return w
251+
end
252+
245253
function eigHermitian(uplo::UpperOrLower, A::$mat{$elty}, sort::SortType = ASCENDING)
246254
w = $mat(real($elty))
247255
Z = $mat($elty)

0 commit comments

Comments
 (0)