Markus Mottl avatar Markus Mottl committed 7d0f9ae

Fixed work space calculation for sbev

Comments (0)

Files changed (3)

+2011-08-09:  Fixed a bug in the work space calculation of sbev.
+
+             Thanks to Yichen Xie <yxie@cs.stanford.edu> for contributing
+             this function!
+
 2011-06-25:  Added new function:
 
                * sbev
 name="lacaml"
-version="5.5.1"
+version="5.5.2"
 description="LACAML - BLAS/LAPACK-interface for OCaml"
 
 requires="lacaml.core"
       | n -> raise (InternalError (sprintf "%s: error code %d" loc n)) in
     invalid_arg (sprintf "%s: %s" loc msg)
 
-let sbev_min_lwork n = max 1 (n + n - 2)
+let sbev_min_lwork n = max 1 (3*n - 2)
 
 let sbev ?n ?kd ?(zr = 1) ?(zc = 1) ?z ?(up = true) ?work ?(ofsw = 1) ?w
     ?(abr = 1) ?(abc = 1) ab =
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.