File: dsyevr.rb

package info (click to toggle)
ruby-lapack 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 28,572 kB
  • sloc: ansic: 191,612; ruby: 3,937; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require "numru/lapack"

jobz = "V"
range = "I"
uplo = "U"
a = NArray[[1,1,0], [1,2,1], [0,1,1]]
vl = vu = 0 # not be used in this example
il = 1
iu = 3
abstol = 0.0
lwork = 78
liwork = 30

m, w, z, isuppz, work, iwork, info, a =
  NumRu::Lapack.dsyevr(jobz, range, uplo,
                       a, vl, vu, il, iu, abstol, :lwork => lwork, :liwork => liwork)

p m
p w
p z
p isuppz
p work
p iwork
p info
p a