Main Page | File List | Globals

pdNatural.c File Reference

#include "Mutils.h"

Functions

void corr_from_par (const double *par, double *corr, int nc)
SEXP pdNatural_pdmatrix (SEXP x)
SEXP pdNatural_corrmatrix (SEXP x)
double * gradient (int nc, const double *param, double *value)
SEXP pdNatural_LMEgradient (SEXP x, SEXP Ain, SEXP nlev)

Function Documentation

void corr_from_par const double *  par,
double *  corr,
int  nc
[static]
 

double* gradient int  nc,
const double *  param,
double *  value
[static]
 

An internal function that calculates the gradient of the positive-definite matrix with respect to the parameters. This function is used in pdNatural_LMEgradient

Parameters:
nc number of columns (and rows) in the matrix
mat the positive definite matrix
value array into which the results are written
Returns:
the gradient in value

SEXP pdNatural_corrmatrix SEXP  x  ) 
 

SEXP pdNatural_LMEgradient SEXP  x,
SEXP  Ain,
SEXP  nlev
 

LMEgradient implementation for the pdNatural class

Parameters:
x Pointer to a pdNatural object
Ain Pointer to an upper-triangular double precision square matrix
nlev Pointer to an integer scalar giving the number of levels
Returns:
Pointer to a REAL gradient vector

SEXP pdNatural_pdmatrix SEXP  x  ) 
 

Evaluate the pdMatrix from a pdNatural object

Parameters:
x Pointer to a pdNatural object
Returns:
A newly allocated matrix


Generated on Mon May 31 14:04:37 2004 for Matrix by doxygen 1.3.6-20040222