Matrix  $Rev: 3071 $ at $LastChangedDate: 2015-03-26 15:35:47 +0100 (Thu, 26 Mar 2015) $
dgeMatrix.h
Go to the documentation of this file.
1 #ifndef MATRIX_GEMATRIX_H
2 #define MATRIX_GEMATRIX_H
3 
4 #include <R_ext/Boolean.h>
5 #include <R_ext/Lapack.h>
6 #include "Mutils.h"
7 
8 SEXP dMatrix_validate(SEXP obj);
9 
10 SEXP dgeMatrix_validate(SEXP obj);
11 SEXP dgeMatrix_norm(SEXP obj, SEXP norm);
12 SEXP dgeMatrix_rcond(SEXP obj, SEXP type);
13 /* for crossprod() and tcrossprod() -- dge*() and the generalized versions: */
14 SEXP dgeMatrix_crossprod(SEXP x, SEXP trans);
15 SEXP geMatrix_crossprod(SEXP x, SEXP trans);
16 SEXP dgeMatrix_dgeMatrix_crossprod(SEXP x, SEXP y, SEXP trans);
17 SEXP geMatrix_geMatrix_crossprod(SEXP x, SEXP y, SEXP trans);
18 SEXP dgeMatrix_matrix_crossprod(SEXP x, SEXP y, SEXP trans);
19 SEXP geMatrix_matrix_crossprod(SEXP x, SEXP y, SEXP trans);
20 // %*% :
21 SEXP dgeMatrix_matrix_mm(SEXP a, SEXP b, SEXP right);
22 SEXP geMatrix_matrix_mm(SEXP a, SEXP b, SEXP right);
23 
24 SEXP dgeMatrix_addDiag(SEXP x, SEXP d);
25 SEXP dgeMatrix_getDiag(SEXP x);
26 SEXP lgeMatrix_getDiag(SEXP x);
27 SEXP dgeMatrix_setDiag(SEXP x, SEXP d);
28 SEXP lgeMatrix_setDiag(SEXP x, SEXP d);
29 SEXP dgeMatrix_LU (SEXP x, SEXP warn_singularity);
30 SEXP dgeMatrix_LU_(SEXP x, Rboolean warn_sing);
31 SEXP dgeMatrix_determinant(SEXP x, SEXP logarithm);
32 SEXP dgeMatrix_Schur(SEXP x, SEXP vectors, SEXP isDGE);
33 SEXP dgeMatrix_solve(SEXP a);
34 SEXP dgeMatrix_matrix_solve(SEXP a, SEXP b);
35 SEXP dgeMatrix_svd(SEXP x, SEXP nu, SEXP nv);
36 SEXP dgeMatrix_exp(SEXP x);
37 SEXP dgeMatrix_colsums(SEXP x, SEXP naRmP, SEXP cols, SEXP mean);
38 
39 /* DGESDD - compute the singular value decomposition (SVD); of a */
40 /* real M-by-N matrix A, optionally computing the left and/or */
41 /* right singular vectors. If singular vectors are desired, it uses a */
42 /* divide-and-conquer algorithm. */
43 void F77_NAME(dgesdd)(const char *jobz,
44  const int *m, const int *n,
45  double *a, const int *lda, double *s,
46  double *u, const int *ldu,
47  double *vt, const int *ldvt,
48  double *work, const int *lwork, int *iwork, int *info);
49 
50 
51 #endif
SEXP dgeMatrix_crossprod(SEXP x, SEXP trans)
Definition: dgeMatrix.c:76
SEXP geMatrix_geMatrix_crossprod(SEXP x, SEXP y, SEXP trans)
Definition: dgeMatrix.c:202
SEXP dgeMatrix_LU_(SEXP x, Rboolean warn_sing)
Definition: dgeMatrix.c:466
SEXP dgeMatrix_LU(SEXP x, SEXP warn_singularity)
Definition: dgeMatrix.c:497
SEXP dgeMatrix_Schur(SEXP x, SEXP vectors, SEXP isDGE)
Definition: dgeMatrix.c:792
SEXP dgeMatrix_setDiag(SEXP x, SEXP d)
Definition: dgeMatrix.c:411
void F77_NAME() dgesdd(const char *jobz, const int *m, const int *n, double *a, const int *lda, double *s, double *u, const int *ldu, double *vt, const int *ldvt, double *work, const int *lwork, int *iwork, int *info)
SEXP dgeMatrix_validate(SEXP obj)
Definition: dgeMatrix.c:16
SEXP dgeMatrix_getDiag(SEXP x)
Definition: dgeMatrix.c:374
SEXP dgeMatrix_solve(SEXP a)
Definition: dgeMatrix.c:535
SEXP dgeMatrix_norm(SEXP obj, SEXP norm)
Definition: dgeMatrix.c:49
SEXP dMatrix_validate(SEXP obj)
Definition: dgeMatrix.c:4
SEXP lgeMatrix_getDiag(SEXP x)
Definition: dgeMatrix.c:396
SEXP dgeMatrix_matrix_crossprod(SEXP x, SEXP y, SEXP trans)
Definition: dgeMatrix.c:211
SEXP dgeMatrix_colsums(SEXP x, SEXP naRmP, SEXP cols, SEXP mean)
Definition: dgeMatrix.c:839
SEXP dgeMatrix_matrix_mm(SEXP a, SEXP b, SEXP right)
Definition: dgeMatrix.c:299
SEXP dgeMatrix_svd(SEXP x, SEXP nu, SEXP nv)
Definition: dgeMatrix.c:604
SEXP dgeMatrix_exp(SEXP x)
Matrix exponential - based on the corrected code for Octave's expm function.
Definition: dgeMatrix.c:662
SEXP geMatrix_matrix_mm(SEXP a, SEXP b, SEXP right)
%*% – generalized from dge to *ge():
Definition: dgeMatrix.c:363
SEXP lgeMatrix_setDiag(SEXP x, SEXP d)
Definition: dgeMatrix.c:436
SEXP geMatrix_crossprod(SEXP x, SEXP trans)
Definition: dgeMatrix.c:137
SEXP dgeMatrix_matrix_solve(SEXP a, SEXP b)
Definition: dgeMatrix.c:583
SEXP geMatrix_matrix_crossprod(SEXP x, SEXP y, SEXP trans)
Definition: dgeMatrix.c:291
SEXP dgeMatrix_dgeMatrix_crossprod(SEXP x, SEXP y, SEXP trans)
Definition: dgeMatrix.c:145
SEXP dgeMatrix_addDiag(SEXP x, SEXP d)
Definition: dgeMatrix.c:447
SEXP dgeMatrix_determinant(SEXP x, SEXP logarithm)
Definition: dgeMatrix.c:502
SEXP dgeMatrix_rcond(SEXP obj, SEXP type)
Definition: dgeMatrix.c:54