mrgsolve
Functions
mrgsolve.h File Reference
#include "RcppInclude.h"
#include <R_ext/Rdynload.h>

Go to the source code of this file.

Functions

DL_FUNC tofun (SEXP a)
 
void negative_istate (int istate, int maxsteps, double rtol, double atol)
 
arma::mat MVGAUSS (Rcpp::NumericMatrix &OMEGA_, int n)
 
arma::mat MVGAUSS (arma::mat &OMEGA_, int n)
 
template<class T >
void sort_unique (T &a)
 
int find_position (const Rcpp::CharacterVector &what, const Rcpp::CharacterVector &table)
 
double digits (const double &a, const double &b)
 
void dcorr (const Rcpp::NumericMatrix &x)
 
Rcpp::NumericMatrix SUPERMATRIX (const Rcpp::List &a)
 
void from_to (const Rcpp::CharacterVector &a, const Rcpp::CharacterVector &b, std::vector< int > &ai, std::vector< int > &bi)
 
Rcpp::List get_tokens (const Rcpp::CharacterVector &code)
 
void set_omega (SEXP loc, Rcpp::NumericMatrix &omega_)
 
Rcpp::NumericMatrix EXPAND_EVENTS (const Rcpp::IntegerVector &idcol_, const Rcpp::NumericMatrix &events, const Rcpp::NumericVector &id)
 

Function Documentation

◆ dcorr()

void dcorr ( const Rcpp::NumericMatrix &  x)

◆ digits()

double digits ( const double &  a,
const double &  b 
)

Limit a number to a specific number of significant digits.

Parameters
athe number to limit
bthe number of digits

◆ EXPAND_EVENTS()

Rcpp::NumericMatrix EXPAND_EVENTS ( const Rcpp::IntegerVector &  idcol_,
const Rcpp::NumericMatrix &  events,
const Rcpp::NumericVector &  id 
)

◆ find_position()

int find_position ( const Rcpp::CharacterVector &  what,
const Rcpp::CharacterVector &  table 
)

Find the position of a string in a character vector.

Parameters
whatthe string to look for
tablewhere to look for the string
Returns
the position of the string with 0-based indexing if the string is found; -1 otherwise

◆ from_to()

void from_to ( const Rcpp::CharacterVector &  a,
const Rcpp::CharacterVector &  b,
std::vector< int > &  ai,
std::vector< int > &  bi 
)

◆ get_tokens()

Rcpp::List get_tokens ( const Rcpp::CharacterVector &  code)

◆ MVGAUSS() [1/2]

arma::mat MVGAUSS ( arma::mat &  OMEGA_,
int  n 
)

◆ MVGAUSS() [2/2]

arma::mat MVGAUSS ( Rcpp::NumericMatrix &  OMEGA_,
int  n 
)

Simulate from a multivariate normal distribution with mean 0.

Parameters
OMEGA_the covariance matrix
nthe number of variates to simulate
Returns
matrix of simulated variates

◆ negative_istate()

void negative_istate ( int  istate,
int  maxsteps,
double  rtol,
double  atol 
)

◆ set_omega()

void set_omega ( SEXP  loc,
Rcpp::NumericMatrix &  omega_ 
)

◆ sort_unique()

template<class T >
void sort_unique ( T &  a)

◆ SUPERMATRIX()

Rcpp::NumericMatrix SUPERMATRIX ( const Rcpp::List &  a)

◆ tofun()

DL_FUNC tofun ( SEXP  a)