File: Matrix.h

package info (click to toggle)
rmatrix 0.9975-6-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,136 kB
  • ctags: 2,162
  • sloc: ansic: 35,914; makefile: 225; fortran: 151; sh: 67
file content (22 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MATRIX_H
#define MATRIX_H
#include <Rdefines.h>
#include <Rconfig.h>
#include "cholmod.h"

#ifdef HAVE_VISIBILITY_ATTRIBUTE
# define attribute_hidden __attribute__ ((visibility ("hidden")))
#else
# define attribute_hidden
#endif

cholmod_sparse* M_as_cholmod_sparse(SEXP x);
cholmod_dense* M_as_cholmod_dense(SEXP x);
cholmod_dense* M_numeric_as_chm_dense(double *v, int n);
cholmod_factor* M_as_cholmod_factor(SEXP x);
SEXP M_chm_factor_to_SEXP(cholmod_factor *f, int dofree);
SEXP M_chm_sparse_to_SEXP(cholmod_sparse *a, int dofree,
			  int uploT, int Rkind, char *diag, SEXP dn);
SEXP M_dpoMatrix_chol(SEXP x);

#endif /* MATRIX_H */