~ubuntu-branches/ubuntu/trusty/r-cran-rcpparmadillo/trusty-proposed

« back to all changes in this revision

Viewing changes to inst/include/armadillo_bits/arpack_bones.hpp

  • Committer: Package Import Robot
  • Author(s): Dirk Eddelbuettel
  • Date: 2014-01-05 07:49:39 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20140105074939-dwxho57ujap094yj
Tags: 0.4.000-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2013 Ryan Curtin
 
2
//
 
3
// This Source Code Form is subject to the terms of the Mozilla Public
 
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
 
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
6
 
 
7
 
 
8
#ifdef ARMA_USE_ARPACK
 
9
 
 
10
// I'm not sure this is necessary.
 
11
#if !defined(ARMA_BLAS_CAPITALS)
 
12
 
 
13
  #define arma_snaupd snaupd
 
14
  #define arma_dnaupd dnaupd
 
15
  #define arma_cnaupd cnaupd
 
16
  #define arma_znaupd znaupd
 
17
 
 
18
  #define arma_sneupd sneupd
 
19
  #define arma_dneupd dneupd
 
20
  #define arma_cneupd cneupd
 
21
  #define arma_zneupd zneupd
 
22
 
 
23
  #define arma_ssaupd ssaupd
 
24
  #define arma_dsaupd dsaupd
 
25
 
 
26
  #define arma_sseupd sseupd
 
27
  #define arma_dseupd dseupd
 
28
 
 
29
#else
 
30
 
 
31
  #define arma_snaupd SNAUPD
 
32
  #define arma_dnaupd DNAUPD
 
33
  #define arma_cnaupd CNAUPD
 
34
  #define arma_znaupd ZNAUPD
 
35
 
 
36
  #define arma_sneupd SNEUPD
 
37
  #define arma_dneupd DNEUPD
 
38
  #define arma_cneupd CNEUPD
 
39
  #define arma_zneupd ZNEUPD
 
40
 
 
41
  #define arma_ssaupd SSAUPD
 
42
  #define arma_dsaupd DSAUPD
 
43
 
 
44
  #define arma_sseupd SSEUPD
 
45
  #define arma_dseupd DSEUPD
 
46
 
 
47
#endif
 
48
 
 
49
extern "C"
 
50
  {
 
51
  // eigendecomposition of non-symmetric positive semi-definite matrices
 
52
  void arma_fortran(arma_snaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,  float* resid, blas_int* ncv,  float* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,  float* workd,  float* workl, blas_int* lworkl, blas_int* info);
 
53
  void arma_fortran(arma_dnaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol, double* resid, blas_int* ncv, double* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr, double* workd, double* workl, blas_int* lworkl, blas_int* info);
 
54
  void arma_fortran(arma_cnaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,   void* resid, blas_int* ncv,   void* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,   void* workd,   void* workl, blas_int* lworkl, float* rwork, blas_int* info);
 
55
  void arma_fortran(arma_znaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol,   void* resid, blas_int* ncv,   void* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,   void* workd,   void* workl, blas_int* lworkl, double* rwork, blas_int* info);
 
56
 
 
57
  // eigendecomposition of symmetric positive semi-definite matrices
 
58
  void arma_fortran(arma_ssaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,  float* resid, blas_int* ncv,  float* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,  float* workd,  float* workl, blas_int* lworkl, blas_int* info);
 
59
  void arma_fortran(arma_dsaupd)(blas_int* ido, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol, double* resid, blas_int* ncv, double* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr, double* workd, double* workl, blas_int* lworkl, blas_int* info);
 
60
 
 
61
  // recovery of eigenvectors after naupd(); uses blas_int for LOGICAL types
 
62
  void arma_fortran(arma_sneupd)(blas_int* rvec, char* howmny, blas_int* select,  float* dr,  float* di,  float* z, blas_int* ldz,  float* sigmar,  float* sigmai,  float* workev, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,  float* resid, blas_int* ncv,  float* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,  float* workd,  float* workl, blas_int* lworkl, blas_int* info);
 
63
  void arma_fortran(arma_dneupd)(blas_int* rvec, char* howmny, blas_int* select, double* dr, double* di, double* z, blas_int* ldz, double* sigmar, double* sigmai, double* workev, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol, double* resid, blas_int* ncv, double* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr, double* workd, double* workl, blas_int* lworkl, blas_int* info);
 
64
  void arma_fortran(arma_cneupd)(blas_int* rvec, char* howmny, blas_int* select, void* d,   void* z, blas_int* ldz,   void* sigma,   void* workev, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,   void* resid, blas_int* ncv,   void* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,   void* workd, void* workl, blas_int* lworkl,  float* rwork, blas_int* info);
 
65
  void arma_fortran(arma_zneupd)(blas_int* rvec, char* howmny, blas_int* select, void* d,   void* z, blas_int* ldz,   void* sigma,   void* workev, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol,   void* resid, blas_int* ncv,   void* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,   void* workd, void* workl, blas_int* lworkl, double* rwork, blas_int* info);
 
66
 
 
67
  // recovery of eigenvectors after saupd(); uses blas_int for LOGICAL types
 
68
  void arma_fortran(arma_sseupd)(blas_int* rvec, char* howmny, blas_int* select,  float* d,  float* z, blas_int* ldz,  float* sigma, char* bmat, blas_int* n, char* which, blas_int* nev,  float* tol,  float* resid, blas_int* ncv,  float* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr,  float* workd,  float* workl, blas_int* lworkl, blas_int* info);
 
69
  void arma_fortran(arma_dseupd)(blas_int* rvec, char* howmny, blas_int* select, double* d, double* z, blas_int* ldz, double* sigma, char* bmat, blas_int* n, char* which, blas_int* nev, double* tol, double* resid, blas_int* ncv, double* v, blas_int* ldv, blas_int* iparam, blas_int* ipntr, double* workd, double* workl, blas_int* lworkl, blas_int* info);
 
70
  }
 
71
 
 
72
#endif