public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrea Arteaga" <andyspiros@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/auto-numerical-bench:unstable commit in: /, accuracy/lapack/
Date: Sat,  6 Aug 2011 23:55:41 +0000 (UTC)	[thread overview]
Message-ID: <13b03bd8fceb7b3f575a77d5ec95be91d47814ea.spiros@gentoo> (raw)

commit:     13b03bd8fceb7b3f575a77d5ec95be91d47814ea
Author:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Sat Aug  6 23:55:21 2011 +0000
Commit:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Sat Aug  6 23:55:21 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=13b03bd8

Added some LAPACK tests.

---
 accuracy/lapack/lapack_STEV.hh |    2 +-
 lapack.py                      |    5 +++--
 testdescr.py                   |    2 ++
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/accuracy/lapack/lapack_STEV.hh b/accuracy/lapack/lapack_STEV.hh
index 0c9dea3..ab020ae 100644
--- a/accuracy/lapack/lapack_STEV.hh
+++ b/accuracy/lapack/lapack_STEV.hh
@@ -7,7 +7,7 @@
 double test_STEV(const int& N, const unsigned& seed = 0)
 {
   LinearCongruential lc(seed);
-  vector<double> A(N*N), D(N), E(N-1), Z(N*N), DD(N*N), work(2*N-2), tmp(N*N);
+  vector<double> A(N*N), D(N), E(N-1), Z(N*N), DD(N*N), work(max(1, 2*N-2)), tmp(N*N);
 
   /* Fill D, E and A */
   for (int i = 0; i < N-1; ++i) {

diff --git a/lapack.py b/lapack.py
index e618380..677603e 100644
--- a/lapack.py
+++ b/lapack.py
@@ -6,7 +6,7 @@ class Module(btlbase.BTLBase):
     def _initialize(self):
         self.libname = "lapack"
         self.avail = ['general_solve', 'least_squares', 'lu_decomp', \
-          'cholesky', 'symm_ev']
+          'cholesky', 'qr_decomp', 'svd_decomp', 'syev', 'stev', 'symm_ev']
     
     def _parse_args(self, args):     
         # Parse arguments
@@ -22,7 +22,8 @@ class Module(btlbase.BTLBase):
         
         # If no test is specified, run everything
         if len(self.tests) == 0:
-            self.tests = self.avail
+            self.tests = ['lu_decomp', 'cholesky', 'qr_decomp', 'svd_decomp',\
+                          'syev', 'stev']
         
         btlbase.BTLBase._parse_args(self, args)
     

diff --git a/testdescr.py b/testdescr.py
index 51ad714..edadd06 100644
--- a/testdescr.py
+++ b/testdescr.py
@@ -21,6 +21,8 @@ testdescr = {
 'cholesky': 'Cholesky decomposition',
 'svd_decomp': 'SVD-decomposition',
 'qr_decomp': 'QR-decomposition',
+'syev': 'Diagonalization of a symmetric matrix',
+'stev': 'Diagonalization of a tridiagonal matrix',
 'symm_ev': 'Symmetric Eigenvalue computation',
 
 # FFTW



             reply	other threads:[~2011-08-06 23:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06 23:55 Andrea Arteaga [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-06 11:44 [gentoo-commits] proj/auto-numerical-bench:unstable commit in: /, accuracy/lapack/ Andrea Arteaga
2011-08-05  1:42 Andrea Arteaga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13b03bd8fceb7b3f575a77d5ec95be91d47814ea.spiros@gentoo \
    --to=andyspiros@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox