Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
native: extend Ilaenv to call Iparmq
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Aug 18, 2016
1 parent 4644b36 commit b756eee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion native/ilaenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ package native
// 9: Maximum size of the subproblems in divide-and-conquer algorithms.
// 10: ieee NaN arithmetic can be trusted not to trap.
// 11: infinity arithmetic can be trusted not to trap.
// 12...16: parameters for Dhseqr and related functions. See Iparmq for more
// information.
//
// Ilaenv is an internal routine. It is exported for testing purposes.
func (Implementation) Ilaenv(ispec int, s string, opts string, n1, n2, n3, n4 int) int {
func (impl Implementation) Ilaenv(ispec int, s string, opts string, n1, n2, n3, n4 int) int {
// TODO(btracey): Replace this with a constant lookup? A list of constants?
sname := s[0] == 'S' || s[0] == 'D'
cname := s[0] == 'C' || s[0] == 'Z'
Expand Down Expand Up @@ -373,5 +375,8 @@ func (Implementation) Ilaenv(ispec int, s string, opts string, n1, n2, n3, n4 in
case 11:
// Go guarantees ieee
return 1
case 12, 13, 14, 15, 16:
// Dhseqr and related functions for eigenvalue problems.
return impl.Iparmq(ispec, s, opts, n1, n2, n3, n4)
}
}

0 comments on commit b756eee

Please sign in to comment.