# Calling Lapack's Jacobi SVD - dgesvj

**URL:** https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602
**Category:** General Usage
**Created:** [February 9, 2019, 6:04am UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602 "2019-02-09T06:04:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Snir\_Gazit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/snir_gazit/32/11027_2.png) [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)
#### Post date: [February 9, 2019, 6:04am UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602/1 "2019-02-09T06:04:46Z")

</div>

The current Julia SVD interface appears to support only “simple” and “divide and conquer”. Is there any simple way to call Jacobi’s methods – (dgesvj Lapack function)?  
If wrapping the Lapack function is the only viable solution, I would appreciate any help in getting started with this non-trivial “ccall”.

Thanks!

---

<div class="post-metadata">

### Author: ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)
#### Post date: [February 10, 2019, 8:46pm UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602/2 "2019-02-10T20:46:49Z")

</div>

By coincidence a related issue led me to want this too: [here’s a draft.](https://gist.github.com/RalphAS/6a80a1dd4039153c8c94fc27a4938665)

---

<div class="post-metadata">

### Author: ![Snir\_Gazit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/snir_gazit/32/11027_2.png) [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)
#### Post date: [February 11, 2019, 4:51am UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602/3 "2019-02-11T04:51:42Z")

</div>

great! I’ll give it a try.

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [February 13, 2019, 9:55am UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602/4 "2019-02-13T09:55:11Z")

</div>

See my [related PR](https://github.com/JuliaLang/julia/pull/31057) which adds an `alg` keyword to `svd` and `svd!`.

It would be nice to also have `:jacobi` supported. @Ralph_Smith, maybe you could polish and PR your draft?

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [February 15, 2019, 9:15am UTC](https://discourse.julialang.org/t/calling-lapacks-jacobi-svd-dgesvj/20602/5 "2019-02-15T09:15:40Z")

</div>

@Ralph_Smith, I opened an issue on github about this: [https://github.com/JuliaLang/julia/issues/31080](https://github.com/JuliaLang/julia/issues/31080).
