~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/3rdParty/boost/numeric/bindings/lapack/syevd.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// 
 
2
// Copyright (c) Thomas Klimpel 2008
 
3
//
 
4
// Distributed under the Boost Software License, Version 1.0.
 
5
// (See accompanying file LICENSE_1_0.txt or copy at
 
6
// http://www.boost.org/LICENSE_1_0.txt)
 
7
//
 
8
 
 
9
#ifndef BOOST_NUMERIC_BINDINGS_LAPACK_SYEVD_HPP
 
10
#define BOOST_NUMERIC_BINDINGS_LAPACK_SYEVD_HPP
 
11
 
 
12
#include <boost/numeric/bindings/lapack/heevd.hpp>
 
13
 
 
14
namespace boost { namespace numeric { namespace bindings { 
 
15
  namespace lapack {
 
16
 
 
17
    template <typename A, typename W, typename Work>
 
18
    inline int syevd (
 
19
      char jobz, char uplo, A& a,
 
20
      W& w, Work work = optimal_workspace() ) {
 
21
 
 
22
#ifndef BOOST_NUMERIC_BINDINGS_NO_STRUCTURE_CHECK 
 
23
      typedef typename A::value_type                               value_type ;
 
24
      typedef typename traits::type_traits< value_type >::real_type real_type ;
 
25
      BOOST_STATIC_ASSERT((boost::is_same<value_type, real_type>::value));
 
26
#endif
 
27
 
 
28
      return heevd (jobz, uplo, a, w, work);
 
29
    }
 
30
  }
 
31
}}}
 
32
 
 
33
#endif