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 10, Mon Mar 22 20:20:05 2004 UTC revision 493, Thu Feb 3 18:47:20 2005 UTC
# Line 2  Line 2 
2  #define MATRIX_MUTILS_H  #define MATRIX_MUTILS_H
3    
4  #include <Rdefines.h>  #include <Rdefines.h>
5    #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 21  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);
42  void nlme_check_Lapack_error(int info, const char *laName);  void nlme_check_Lapack_error(int info, const char *laName);
43  double *  SEXP nlme_replaceSlot(SEXP obj, SEXP names, SEXP value);
44  LMEgradient(const double* factor, const double* A, const int nlev,  SEXP nlme_weight_matrix_list(SEXP MLin, SEXP wts, SEXP adjst, SEXP MLout);
45              const int nc, const double* pdgradient, const int plen,  SEXP Matrix_make_named(int TYP, char **names);
             double* value);  
   
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_LIiSym,  
     Matrix_LIpSym,  
     Matrix_LIxSym,  
     Matrix_LiSym,  
     Matrix_LpSym,  
     Matrix_LxSym,  
     Matrix_OmegaSym,  
     Matrix_ParentSym,  
     Matrix_RXXSym,  
     Matrix_RZXSym,  
     Matrix_XtXSym,  
     Matrix_ZtXSym,  
     Matrix_bVarSym,  
     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.10  
changed lines
  Added in v.493

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