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 272, Thu Sep 2 23:14:00 2004 UTC revision 476, Wed Feb 2 11:51:24 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 cscMatrix_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[]);
# 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 33  Line 44 
44  SEXP nlme_weight_matrix_list(SEXP MLin, SEXP wts, SEXP adjst, SEXP MLout);  SEXP nlme_weight_matrix_list(SEXP MLin, SEXP wts, SEXP adjst, SEXP MLout);
45    
46                                  /* stored pointers to symbols */                                  /* stored pointers to symbols */
47                                  /* initialized in Matrix_init */                                  /* initialized in R_init_Matrix */
48  extern SEXP  extern
49      Matrix_DSym,  #include "Syms.h"
50      Matrix_DIsqrtSym,  
51      Matrix_DimSym,  /* zero an array */
52      Matrix_GpSym,  #define AZERO(x, n) {int _I_, _SZ_ = (n); for(_I_ = 0; _I_ < _SZ_; _I_++) (x)[_I_] = 0;}
53      Matrix_LSym,  
     Matrix_LiSym,  
     Matrix_LinvSym,  
     Matrix_LpSym,  
     Matrix_LxSym,  
     Matrix_OmegaSym,  
     Matrix_ParentSym,  
     Matrix_RXXSym,  
     Matrix_RZXSym,  
     Matrix_XtXSym,  
     Matrix_ZtXSym,  
     Matrix_ZZxSym,  
     Matrix_bVarSym,  
     Matrix_cnamesSym,  
     Matrix_devianceSym,  
     Matrix_devCompSym,  
     Matrix_diagSym,  
     Matrix_iSym,  
     Matrix_ipermSym,  
     Matrix_jSym,  
     Matrix_matSym,  
     Matrix_ncSym,  
     Matrix_pSym,  
     Matrix_permSym,  
     Matrix_statusSym,  
     Matrix_uploSym,  
     Matrix_xSym,  
     Matrix_zSym;  
54    
55  #endif  #endif
56    

Legend:
Removed from v.272  
changed lines
  Added in v.476

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