Matrix  $Rev: 3071 $ at $LastChangedDate: 2015-03-26 15:35:47 +0100 (Thu, 26 Mar 2015) $
dgeMatrix.h File Reference
#include <R_ext/Boolean.h>
#include <R_ext/Lapack.h>
#include "Mutils.h"
Include dependency graph for dgeMatrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SEXP dgeMatrix_addDiag (SEXP x, SEXP d)
 
SEXP dgeMatrix_colsums (SEXP x, SEXP naRmP, SEXP cols, SEXP mean)
 
SEXP dgeMatrix_crossprod (SEXP x, SEXP trans)
 
SEXP dgeMatrix_determinant (SEXP x, SEXP logarithm)
 
SEXP dgeMatrix_dgeMatrix_crossprod (SEXP x, SEXP y, SEXP trans)
 
SEXP dgeMatrix_exp (SEXP x)
 Matrix exponential - based on the corrected code for Octave's expm function. More...
 
SEXP dgeMatrix_getDiag (SEXP x)
 
SEXP dgeMatrix_LU (SEXP x, SEXP warn_singularity)
 
SEXP dgeMatrix_LU_ (SEXP x, Rboolean warn_sing)
 
SEXP dgeMatrix_matrix_crossprod (SEXP x, SEXP y, SEXP trans)
 
SEXP dgeMatrix_matrix_mm (SEXP a, SEXP b, SEXP right)
 
SEXP dgeMatrix_matrix_solve (SEXP a, SEXP b)
 
SEXP dgeMatrix_norm (SEXP obj, SEXP norm)
 
SEXP dgeMatrix_rcond (SEXP obj, SEXP type)
 
SEXP dgeMatrix_Schur (SEXP x, SEXP vectors, SEXP isDGE)
 
SEXP dgeMatrix_setDiag (SEXP x, SEXP d)
 
SEXP dgeMatrix_solve (SEXP a)
 
SEXP dgeMatrix_svd (SEXP x, SEXP nu, SEXP nv)
 
SEXP dgeMatrix_validate (SEXP obj)
 
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 dMatrix_validate (SEXP obj)
 
SEXP geMatrix_crossprod (SEXP x, SEXP trans)
 
SEXP geMatrix_geMatrix_crossprod (SEXP x, SEXP y, SEXP trans)
 
SEXP geMatrix_matrix_crossprod (SEXP x, SEXP y, SEXP trans)
 
SEXP geMatrix_matrix_mm (SEXP a, SEXP b, SEXP right)
 %*% – generalized from dge to *ge(): More...
 
SEXP lgeMatrix_getDiag (SEXP x)
 
SEXP lgeMatrix_setDiag (SEXP x, SEXP d)
 

Function Documentation

SEXP dgeMatrix_addDiag ( SEXP  x,
SEXP  d 
)

Definition at line 447 of file dgeMatrix.c.

References _, Matrix_DimSym, and Matrix_xSym.

SEXP dgeMatrix_colsums ( SEXP  x,
SEXP  naRmP,
SEXP  cols,
SEXP  mean 
)

Definition at line 839 of file dgeMatrix.c.

References C_or_Alloca_TO, Matrix_DimNamesSym, Matrix_DimSym, Matrix_xSym, and SMALL_4_Alloca.

SEXP dgeMatrix_crossprod ( SEXP  x,
SEXP  trans 
)

Definition at line 76 of file dgeMatrix.c.

References DGE_CROSS_1, DGE_CROSS_DO, and Matrix_xSym.

SEXP dgeMatrix_determinant ( SEXP  x,
SEXP  logarithm 
)

Definition at line 502 of file dgeMatrix.c.

References _, as_det_obj(), dgeMatrix_LU_(), Matrix_DimSym, Matrix_permSym, and Matrix_xSym.

Here is the call graph for this function:

SEXP dgeMatrix_dgeMatrix_crossprod ( SEXP  x,
SEXP  y,
SEXP  trans 
)

Definition at line 145 of file dgeMatrix.c.

References DGE_DGE_CROSS_1, DGE_DGE_CROSS_DO, and Matrix_xSym.

SEXP dgeMatrix_exp ( SEXP  x)

Matrix exponential - based on the corrected code for Octave's expm function.

Parameters
xreal square matrix to exponentiate
Returns
matrix exponential of x

Definition at line 662 of file dgeMatrix.c.

References _, AZERO, Matrix_DimSym, Matrix_xSym, padec, and RE_PERMUTE.

SEXP dgeMatrix_getDiag ( SEXP  x)

Definition at line 374 of file dgeMatrix.c.

References geMatrix_getDiag_1, and geMatrix_getDiag_2.

SEXP dgeMatrix_LU ( SEXP  x,
SEXP  warn_singularity 
)

Definition at line 497 of file dgeMatrix.c.

References dgeMatrix_LU_().

Here is the call graph for this function:

SEXP dgeMatrix_LU_ ( SEXP  x,
Rboolean  warn_sing 
)

Definition at line 466 of file dgeMatrix.c.

References _, ALLOC_SLOT(), get_factors(), Matrix_DimNamesSym, Matrix_DimSym, Matrix_permSym, Matrix_xSym, set_factors(), and slot_dup.

Referenced by dgeMatrix_determinant(), dgeMatrix_LU(), dgeMatrix_matrix_solve(), dgeMatrix_rcond(), and dgeMatrix_solve().

Here is the call graph for this function:

Here is the caller graph for this function:

SEXP dgeMatrix_matrix_crossprod ( SEXP  x,
SEXP  y,
SEXP  trans 
)

Definition at line 211 of file dgeMatrix.c.

References DGE_MAT_CROSS_1, DGE_MAT_CROSS_DO, and Matrix_xSym.

SEXP dgeMatrix_matrix_mm ( SEXP  a,
SEXP  b,
SEXP  right 
)

Definition at line 299 of file dgeMatrix.c.

References DGE_MAT_MM_1, DGE_MAT_MM_DO, Matrix_xSym, and mMatrix_as_dgeMatrix().

Here is the call graph for this function:

SEXP dgeMatrix_matrix_solve ( SEXP  a,
SEXP  b 
)

Definition at line 583 of file dgeMatrix.c.

References _, dgeMatrix_LU_(), dup_mMatrix_as_dgeMatrix(), Matrix_DimSym, Matrix_permSym, and Matrix_xSym.

Here is the call graph for this function:

SEXP dgeMatrix_norm ( SEXP  obj,
SEXP  norm 
)

Definition at line 49 of file dgeMatrix.c.

References get_norm().

Here is the call graph for this function:

SEXP dgeMatrix_rcond ( SEXP  obj,
SEXP  type 
)

Definition at line 54 of file dgeMatrix.c.

References _, dgeMatrix_LU_(), get_norm(), La_rcond_type(), Matrix_DimSym, and Matrix_xSym.

Here is the call graph for this function:

SEXP dgeMatrix_Schur ( SEXP  x,
SEXP  vectors,
SEXP  isDGE 
)

Definition at line 792 of file dgeMatrix.c.

References _, C_or_Alloca_TO, Matrix_DimSym, Matrix_xSym, and SMALL_4_Alloca.

SEXP dgeMatrix_setDiag ( SEXP  x,
SEXP  d 
)

Definition at line 411 of file dgeMatrix.c.

References geMatrix_setDiag_1, and geMatrix_setDiag_2.

SEXP dgeMatrix_solve ( SEXP  a)

Definition at line 535 of file dgeMatrix.c.

References _, dgeMatrix_LU_(), get_norm(), Matrix_DimSym, Matrix_permSym, Matrix_xSym, and slot_dup.

Here is the call graph for this function:

SEXP dgeMatrix_svd ( SEXP  x,
SEXP  nu,
SEXP  nv 
)

Definition at line 604 of file dgeMatrix.c.

References C_or_Alloca_TO, dgesdd(), Matrix_DimSym, Matrix_xSym, and SMALL_4_Alloca.

Here is the call graph for this function:

SEXP dgeMatrix_validate ( SEXP  obj)

Definition at line 16 of file dgeMatrix.c.

References _, dense_nonpacked_validate(), dim_validate(), Matrix_DimSym, and Matrix_factorSym.

Here is the call graph for this function:

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 
)

Referenced by dgeMatrix_svd().

Here is the caller graph for this function:

SEXP dMatrix_validate ( SEXP  obj)

Definition at line 4 of file dgeMatrix.c.

References _, dim_validate(), Matrix_DimSym, and Matrix_xSym.

Here is the call graph for this function:

SEXP geMatrix_crossprod ( SEXP  x,
SEXP  trans 
)

Definition at line 137 of file dgeMatrix.c.

References _geMatrix_crossprod(), and dup_mMatrix_as_geMatrix().

Here is the call graph for this function:

SEXP geMatrix_geMatrix_crossprod ( SEXP  x,
SEXP  y,
SEXP  trans 
)

Definition at line 202 of file dgeMatrix.c.

References _geMatrix__geMatrix_crossprod(), and dup_mMatrix_as_geMatrix().

Here is the call graph for this function:

SEXP geMatrix_matrix_crossprod ( SEXP  x,
SEXP  y,
SEXP  trans 
)

Definition at line 291 of file dgeMatrix.c.

References _geMatrix_matrix_crossprod(), and dup_mMatrix_as_geMatrix().

Here is the call graph for this function:

SEXP geMatrix_matrix_mm ( SEXP  a,
SEXP  b,
SEXP  right 
)

%*% – generalized from dge to *ge():

Definition at line 363 of file dgeMatrix.c.

References _geMatrix_matrix_mm(), and dup_mMatrix_as_geMatrix().

Here is the call graph for this function:

SEXP lgeMatrix_getDiag ( SEXP  x)

Definition at line 396 of file dgeMatrix.c.

References geMatrix_getDiag_1, and geMatrix_getDiag_2.

SEXP lgeMatrix_setDiag ( SEXP  x,
SEXP  d 
)

Definition at line 436 of file dgeMatrix.c.

References geMatrix_setDiag_1, and geMatrix_setDiag_2.