SCM

SCM Repository

[matrix] Diff of /pkg/src/Mutils.h
ViewVC logotype

Diff of /pkg/src/Mutils.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 329, Fri Nov 12 21:01:19 2004 UTC revision 478, Wed Feb 2 14:33:51 2005 UTC
# Line 3  Line 3 
3    
4  #include <Rdefines.h>  #include <Rdefines.h>
5  #include <Rconfig.h>  #include <Rconfig.h>
6    #include "cblas.h"
7    
8    /* short forms of some enum constants from cblas.h */
9    #define RMJ CblasRowMajor
10    #define CMJ CblasColMajor
11    #define NTR CblasNoTrans
12    #define TRN CblasTrans
13    #define CTR CblasConjTrans
14    #define UPP CblasUpper
15    #define LOW CblasLower
16    #define NUN CblasNonUnit
17    #define UNT CblasUnit
18    #define LFT CblasLeft
19    #define RGT CblasRight
20    
21  char norm_type(char *typstr);  char norm_type(char *typstr);
22  char rcond_type(char *typstr);  char rcond_type(char *typstr);
23  double get_double_by_name(SEXP obj, char *nm);  double get_double_by_name(SEXP obj, char *nm);
24  SEXP set_double_by_name(SEXP obj, double val, char *nm);  SEXP set_double_by_name(SEXP obj, double val, char *nm);
25  SEXP as_det_obj(double val, int log, int sign);  SEXP as_det_obj(double val, int log, int sign);
26  SEXP get_factorization(SEXP obj, char *nm);  SEXP get_factors(SEXP obj, char *nm);
27  SEXP set_factorization(SEXP obj, SEXP val, char *nm);  SEXP set_factors(SEXP obj, SEXP val, char *nm);
28  SEXP cscMatrix_set_Dim(SEXP x, int nrow);  SEXP dgCMatrix_set_Dim(SEXP x, int nrow);
29  int csc_unsorted_columns(int ncol, const int p[], const int i[]);  int csc_unsorted_columns(int ncol, const int p[], const int i[]);
30  void csc_sort_columns(int ncol, const int p[], int i[], double x[]);  void csc_sort_columns(int ncol, const int p[], int i[], double x[]);
31  SEXP triple_as_SEXP(int nrow, int ncol, int nz,  SEXP triple_as_SEXP(int nrow, int ncol, int nz,
# Line 22  Line 36 
36                                const int xp[], const int xi[],                                const int xp[], const int xi[],
37                                const double xx[],                                const double xx[],
38                                int ap[], int ai[], double ax[]);                                int ap[], int ai[], double ax[]);
 void triplet_to_col(int nrow, int ncol, int nz,  
                     const int Ti [], const int Tj [], const double Tx [],  
                     int Ap [], int Ai [], double Ax []);  
39  void ssc_symbolic_permute(int n, int upper, const int perm[],  void ssc_symbolic_permute(int n, int upper, const int perm[],
40                            int Ap[], int Ai[]);                            int Ap[], int Ai[]);
41  double *nlme_symmetrize(double *a, const int nc);  double *nlme_symmetrize(double *a, const int nc);
# Line 37  Line 48 
48  extern  extern
49  #include "Syms.h"  #include "Syms.h"
50    
51    /* zero an array */
52    #define AZERO(x, n) {int _I_, _SZ_ = (n); for(_I_ = 0; _I_ < _SZ_; _I_++) (x)[_I_] = 0;}
53    
54    
55  #endif  #endif
56    

Legend:
Removed from v.329  
changed lines
  Added in v.478

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge