Main Page | Directories | File List | Globals

bCrosstab.c File Reference

#include "bCrosstab.h"

Functions

static void symbolic_right_unit_sm (int anc, const int Parent[], SEXP C)
static void symbolic_right_unit_mm_trans (int anc, const int Parent[], SEXP C)
static void block_update (SEXP L, SEXP ZZpO, int j, int k, int i)
static void bCrosstab_permute (SEXP ctab, int nf, int jj, const int nlev[], const int iperm[])
static void symmetric_permute (SEXP A, int nlev, const int iperm[])
static void factor_levels_permute (SEXP dest, SEXP src, const int perm[], const int iperm[])
void lmer_populate (SEXP val)

Function Documentation

static void bCrosstab_permute SEXP  ctab,
int  nf,
int  jj,
const int  nlev[],
const int  iperm[]
[static]
 

Permute the levels of one of the grouping factors in a bCrosstab object

Parameters:
ctab Pointer to a bCrosstab object
nf number of factors in ctab
jj index (0-based) of the factor levels to permute
nlev number of levels of the grouping factors
iperm inverse of the permutation

static void block_update SEXP  L,
SEXP  ZZpO,
int  j,
int  k,
int  i
[static]
 

Update a block of L in the blocked crosstabulation

Parameters:
L pointer to a unit lower triangular list of logical compressed sparse column-oriented matrices
ZZpO pointer to a list of upper triangular diagonal blocks stored as compressed sparse column-oriented matrices.
j index of updating column block
k column index of block to be updated
i row index of block to be updated (j < k <= i)

static void factor_levels_permute SEXP  dest,
SEXP  src,
const int  perm[],
const int  iperm[]
[static]
 

Apply a permutation vector to the levels of a factor.

The dest pointer is assumed to point to a copy of the src pointer's contents.

Parameters:
dest pointer to the destination factor
src pointer to the source factor
perm permutation vector (0-based)
iperm inverse permutation vector (0-based)

void lmer_populate SEXP  val  ) 
 

Create and populate slots in an lmer object from the blocked crosstabulation.

Parameters:
val Pointer to an lmer object

static void symbolic_right_unit_mm_trans int  anc,
const int  Parent[],
SEXP  C
[static]
 

Replace the structure of C by the structure of CA^{-T}

Parameters:
anc number of column blocks in A
Parent parent array for column blocks of A
C a dgBCMatrix object to be updated

static void symbolic_right_unit_sm int  anc,
const int  Parent[],
SEXP  C
[static]
 

Replace the structure of C by the structure of CL^{-1} where L is the unit lower triangular sparse matrix from an LDL' Cholesky decomposition

Parameters:
anc number of columns in A
Parent parent array for A
C a dgBCMatrix object to be updated

static void symmetric_permute SEXP  A,
int  nlev,
const int  iperm[]
[static]
 


Generated on Tue Mar 1 16:58:10 2005 for Matrix by  doxygen 1.4.1